cross-compiling mesa using crossdev (in this case, from x86_64-pc-linux-gnu aarch64-unknown-linux-musl) fails in various ways. 1. failure during src_compile by trying to execute `/usr/aarch64-unknown-linux-musl/usr/lib/llvm/10/bin/aarch64-unknown-linux-musl-llvm-config` (its an arm64 binary). 2. with qemu-binfmt running meson seems unable to deal with it at all. 3. editing llvm.eclass (no qemu) to use get_llvm_prefix in llvm_pkg_setup with the -b (for BROOT) flag gets past src_configure to src_compile but fails, using headers from the BROOT. /usr/lib/llvm/10/include/llvm/Config/llvm-config.h:51:3: error: #error "No ABI matched, please report a bug to bugs.gentoo.org", same error with binfmt. Didn't actually expect this to work. Reproducible: Always Steps to Reproduce: 1. set up aarch64-unknown-linux-musl crossdev tree 2. set the profile to a hybrid musl+desktop profile (achieved with make.profile as an actual directory containing a parent file with these contents: gentoo:targets/desktop gentoo:default/linux/arm64/17.0/musl 3. attempt to emerge media-libs/musl Actual Results: Varying cross-compilation errors. Expected Results: Successfull cross-compile
Created attachment 653836 [details] build.log, unedited eclass, qemu-binfmt not active.
Created attachment 653838 [details] build.log, unedited eclass, qemu-binfmt active
Created attachment 653840 [details] build.log, edited llvm.eclass
Created attachment 653842 [details] aarch64-unknown-linux-musl-emerge --info media-libs/mesa
(In reply to hanetzer from comment #0) > 3. attempt to emerge media-libs/musl media-libs/mesa
Sorry for marking as a duplicate, since you have valuable information posted here. Please post it in the other bug as well. *** This bug has been marked as a duplicate of bug 662722 ***