Created attachment 799461 [details] failed build and emerge --info I cannot crosscompile sys-devel/llvm-14.0.6-r2 for arm64 I'm using crossdev with default/linux/arm64/17.0 profile. My CHOST and CBUILD: CHOST=aarch64-unknown-linux-gnu CBUILD=x86_64-pc-linux-gnu I'm attaching log with build errors and aarch64-unknown-linux-gnu-emerge --info llvm
Thanks. The issue is we need LLVM installed on CBUILD and we can't guarantee that with BDEPEND (see e.g. discussion at https://bugs.gentoo.org/847910#c8). We need to build a mini LLVM for CBUILD when cross-compiling if LLVM is not already installed on CBUILD. (We do the same in many ebuilds, e.g. dev-lang/python). A workaround for now is to emerge LLVM on CBUILD (i.e. non-cross).
yes thats correct, you need to have the same llvm slot emerged on your host system as you want to emerge into your /usr/aarch64-unknown-linux-gnu/
*** This bug has been marked as a duplicate of bug 731264 ***