NeddySeagoon wrote:mDup,
Is it a USE flag issue?
Code: Select all
# emerge -pv sys-devel/llvm
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R *] sys-devel/llvm-6.0.0:6::gentoo USE="libffi ncurses xml -debug (-doc) -gold -libedit {-test} -xar" LLVM_TARGETS="(AArch64) BPF -AMDGPU -ARM -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -X86 -XCore" 0 KiB
Total: 1 package (1 reinstall), Size of downloads: 0 KiB
That's with the /17.0/ desktop profile, gcc-7.3.0, the gold linker and binutils 2.30.
If you post how you are building your llvm, I'll try to make mine fail.
Thanks for attention. My setup looks similar to yours. Only use flag I do not have is xml. It does not help however.
Perhaps you have ARCH in env (I don't)?
I looked in the code and bmi looks Intel specific (I am not sure).
Code: Select all
(desktop) kvim2-gentoo ~ # emerge -pv sys-devel/llvm
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild NS ] sys-devel/llvm-6.0.0:6::gentoo [5.0.1:5::gentoo] USE="libffi ncurses -debug (-doc) -gold -libedit {-test} -xar -xml" LLVM_TARGETS="(AArch64) BPF -AMDGPU -ARM -Hexagon -Lanai -MSP430 -Mips -NVPTX -PowerPC -Sparc -SystemZ -X86 -XCore" 101 KiB
Total: 1 package (1 in new slot), Size of downloads: 101 KiB
(desktop) kvim2-gentoo ~ # eselect profile list | grep '*'
[6] default/linux/arm64/17.0 (dev) *
(desktop) kvim2-gentoo ~ # eselect gcc list | grep '*'
[2] aarch64-unknown-linux-gnu-7.3.0 *
(desktop) kvim2-gentoo ~ # eselect binutils list | grep '*'
[2] aarch64-unknown-linux-gnu-2.30 *
Can you try:
Code: Select all
# echo > test.c
# gcc -mno-bmi -c test.c
gcc: error: unrecognized command line option ‘-mno-bmi’; did you mean ‘-Wno-abi’?