[MacPorts] #60987: meson: not finding pkg-config when building universal when using cross-files
MacPorts
noreply at macports.org
Thu Aug 13 13:59:08 UTC 2020
#60987: meson: not finding pkg-config when building universal when using cross-
files
-----------------------------+--------------------
Reporter: kencu | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: meson graphene |
-----------------------------+--------------------
Comment (by Gcenx):
Yes the crossfiles are undesirable due to this but that's meson.
I decided to properly test out meson when patched with
{{{allow_default_for_cross=True}}}
{{{
[target_machine]
system = 'linux'
cpu_family = 'x86'
cpu = 'i386'
endian = 'little'
[binaries]
c = '/usr/bin/clang'
}}}
{{{
MacBook-Pro:~ gcenx$ meson /Users/gcenx/Downloads/graphene
/Users/gcenx/Downloads/graphene_build --cross-file i386-linux
The Meson build system
Version: 0.55.0
Source dir: /Users/gcenx/Downloads/graphene
Build dir: /Users/gcenx/Downloads/graphene_build
Build type: cross build
Project name: graphene
Project version: 1.10.2
C compiler for the build machine: cc (clang 11.0.3 "Apple clang version
11.0.3 (clang-1103.0.32.62)")
C linker for the build machine: cc ld64 556.6
C compiler for the host machine: /usr/bin/clang (clang 11.0.3 "Apple clang
version 11.0.3 (clang-1103.0.32.62)")
C linker for the host machine: /usr/bin/clang ld64 556.6
Build machine cpu family: x86_64
Build machine cpu: x86_64
Host machine cpu family: x86_64
Host machine cpu: x86_64
Target machine cpu family: x86
Target machine cpu: i386
Compiler for C supports arguments -ffast-math: YES
Compiler for C supports arguments -fstrict-aliasing: YES
Compiler for C supports arguments -Wpointer-arith: YES
Compiler for C supports arguments -Wstrict-prototypes: YES
Compiler for C supports arguments -Wnested-externs: YES
Compiler for C supports arguments -Wold-style-definition: YES
Compiler for C supports arguments -Wunused: YES
Compiler for C supports arguments -Wmissing-noreturn: YES
Compiler for C supports arguments -Wmissing-format-attribute: YES
Compiler for C supports arguments -Wlogical-op: NO
Compiler for C supports arguments -Wcast-align: YES
Compiler for C supports arguments -Wno-unused-local-typedefs: YES
Compiler for C supports arguments -Werror=float-conversion: YES
Compiler for C supports arguments -Werror=float-equal: YES
Compiler for C supports arguments -Werror=redundant-decls: YES
Compiler for C supports arguments -Werror=missing-prototypes: YES
Compiler for C supports arguments -Werror=missing-declarations: YES
Compiler for C supports arguments -Werror=format=2: YES
Compiler for C supports arguments -Werror=uninitialized: YES
Compiler for C supports arguments -Werror=shadow: YES
Compiler for C supports arguments -Werror=implicit: YES
Compiler for C supports arguments -Werror=init-self: YES
Compiler for C supports arguments -Werror=main: YES
Compiler for C supports arguments -Werror=missing-braces: YES
Compiler for C supports arguments -Werror=return-type: YES
Compiler for C supports arguments -Werror=array-bounds: YES
Compiler for C supports arguments -Werror=write-strings: YES
Compiler for C supports arguments -Werror=undef: YES
Library m found: YES
Run-time dependency threads found: YES
Has header "stdlib.h" : YES
Has header "stdint.h" : YES
Has header "stdbool.h" : YES
Has header "memory.h" : YES
Has header "pthread.h" with dependency threads: YES
Checking for function "memalign" : NO
Checking for function "_aligned_malloc" : NO
Checking for function "aligned_alloc" : NO
Checking for function "posix_memalign" : YES
Checking for function "sincosf" with dependency -lm: NO
Checking for function "isinff" with dependency -lm: NO
Checking for function "isnanf" with dependency -lm: NO
Message: Enabling various debug infrastructure
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency gobject-2.0 found: NO (tried pkgconfig, framework and
cmake)
Looking for a fallback subproject for the dependency gobject-2.0
Subproject directory not found and glib.wrap file not found
Subproject subprojects/glib is buildable: NO (disabling)
Dependency gobject-2.0 from subproject subprojects/glib found: NO
Checking if "SSE intrinsics" compiles: YES
Checking if "GCC vector intrinsics" compiles: NO
Checking if "ARM NEON intrinsics" compiles: NO
WARNING: Project targeting '>= 0.50.1' but tried to use feature deprecated
since '0.48.0': python3 module.
Configuring graphene-config.h using configuration
Configuring graphene-version.h using configuration
Configuring config.h using configuration
Run-time dependency mutest-1 found: NO (tried pkgconfig, framework and
cmake)
Looking for a fallback subproject for the dependency mutest-1
Subproject exists but has no meson.build file
Subproject subprojects/mutest is buildable: NO (disabling)
Dependency mutest-1 from subproject subprojects/mutest found: NO
Build targets in project: 1
WARNING: Deprecated features used:
* 0.48.0: {'python3 module'}
graphene 1.10.2
Subprojects
glib: NO Subproject directory not found and glib.wrap file not found
mutest: NO Subproject exists but has no meson.build file
Found ninja-1.10.0 at /opt/local/bin/ninja
WARNING: Cross file does not specify strip binary, result will not be
stripped.
WARNING: Cross file does not specify strip binary, result will not be
stripped.
}}}
As can be seen from these results pkg-config is not found when cross-
compiling for a different target, it's only found if both host and target
match.
--
Ticket URL: <https://trac.macports.org/ticket/60987#comment:26>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list