I was setting up a cross-compile chain using crossdev for aarch64 musl device. The exact target is: aarch64-gentoo-linux-musl. The host was a glibc amd64 gentoo. After setting up the cross compiler, attempting to emerge almost any package using the cross-compile chain `emerge-aarch64-gentoo-linux-musl`, including updating system packages, fails with the message: ``` [code] * Messages for package app-crypt/libb2-0.98.1-r3 merged to /usr/aarch64-gentoo-linux-musl/: * Your current compiler does not support OpenMP! * Enable OpenMP support by building sys-devel/gcc with USE="openmp". * ERROR: app-crypt/libb2-0.98.1-r3::gentoo failed (pretend phase): * Active compiler does not have required support for OpenMP [/code] ``` However, attempting to do as the error message does not work either. After running `USE="openmp" emerge-aarch64-gentoo-linux-musl sys-devel/gcc` does not fix the issue. I ended up fixing this issue by adding the "openmp" USE flag to the cross compiler, running `USE="openmp" emerge --oneshot cross-aarch64-gentoo-linux-musl/gcc` Maybe this should be set as a default flag?
Apologies for not providing a `emerge --info`. I had already fixed the problem when I made this bug report, but thought it would be good to post here for visibility and adding a permanent fix