Configure error for Android x86_64: String '' cannot be converted to int
Meson fails when trying to cross compile for Android x86_64. It works fine for Android armv7 and aarch64 though.
gmodule/meson.build:34:7: ERROR: String '' cannot be converted to int
Here's my cross.txt:
[binaries]
ar = 'llvm-ar'
as = 'x86_64-linux-android-clang'
c = 'x86_64-linux-android-clang'
cpp = 'x86_64-linux-android-clang++'
rust = ['rustc', '--target', 'x86_64-linux-android', '-C', 'linker=x86_64-linux-android-clang']
ranlib = 'x86_64-linux-android-ranlib'
strip = 'llvm-strip'
exe_wrapper = 'true' # trick the sanity check
[built-in options]
c_args = ['-march=x86-64', '-msse4.2', '-mpopcnt', '-mtune=generic', '-Os', '-pipe', '-I/home/embybuilder/Buildbot/x64_android/staging/include']
cpp_args = ['-march=x86-64', '-msse4.2', '-mpopcnt', '-mtune=generic', '-Os', '-pipe', '-I/home/embybuilder/Buildbot/x64_android/staging/include']
c_link_args = ['-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now', '-fuse-ld=gold', '-static-libstdc++', '-L/home/embybuilder/Buildbot/x64_android/staging/lib', '-Wl,-rpath-link,/home/embybuilder/Buildbot/x64_android/staging/lib']
cpp_link_args = ['-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now', '-fuse-ld=gold', '-static-libstdc++', '-L/home/embybuilder/Buildbot/x64_android/staging/lib', '-Wl,-rpath-link,/home/embybuilder/Buildbot/x64_android/staging/lib']
[properties]
root = '/home/embybuilder/Buildbot/x64_android/toolchain/x86_64-linux-android'
sys_root = '/home/embybuilder/Buildbot/x64_android/toolchain/sysroot'
has_function_printf = true
needs_exe_wrapper = true
[host_machine]
system = 'linux'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'
Any idea what I could be missing? Happy to provide additional info/logs.