crosscompilation fails at configure stage: mix a host machine library with a build machine target
On Void Linux https://github.com/void-linux/void-packages/pull/39796 , there's this error when crosscompiling mesa-asahi from x86_64 to aarch64:
Compiler for C supports arguments -Werror=switch: YES
src/asahi/clc/meson.build:4:17: ERROR: Tried to tied to mix a host machine library ("asahi_compiler") with a build machine target "asahi_clc" This is not possible in a cross build.
A full log can be found at /builddir/mesa-asahi-24.2.0/build/meson-logs/meson-log.txt
=> ERROR: mesa-asahi-24.2.0_1: do_configure: 'PYTHONUNBUFFERED=1 ${meson_cmd} setup --prefix=/usr --libdir=/usr/lib${XBPS_TARGET_WORDSIZE} --libexecdir=/usr/libexec --bindir=/usr/bin --sbindir=/usr/bin --includedir=/usr/include --datadir=/usr/share --mandir=/usr/share/man --infodir=/usr/share/info --localedir=/usr/share/locale --sysconfdir=/etc --localstatedir=/var --sharedstatedir=/var/lib --buildtype=plain --auto-features=auto --wrap-mode=nodownload -Db_lto=true -Db_ndebug=true -Db_staticpic=true ${configure_args} . ${meson_builddir}' exited with 1
=> ERROR: in do_configure() at common/build-style/meson.sh:23
The full log: meson-log.txt Any suggestion how to fix this? Void Linux builders for aarch64 currently are cross compiling (no native), so this could be helpful in merging asahi-mesa there.