Closed darkgeek closed 2 years ago
Hi, this is a known problem; it seems the bootstrapped toolchain has some very deep bug that doesn't exist in the cross-compiled toolchains. I tried but haven't had any clue yet.
I find that, by removing AMDGPU
and ARM
targets from the ebuild, llvm
can be built successfully:
--- /var/gentoo/repos/local/sys-devel/llvm/llvm-11.1.0.ebuild 2021-12-31 21:35:09.243898899 +0800
+++ llvm-11.1.0.ebuild 2022-01-08 18:16:26.386040612 +0800
@@ -13,7 +13,7 @@
# Those are in lib/Targets, without explicit CMakeLists.txt mention
ALL_LLVM_EXPERIMENTAL_TARGETS=( ARC VE )
# Keep in sync with CMakeLists.txt
-ALL_LLVM_TARGETS=( AArch64 AMDGPU ARM AVR BPF Hexagon Lanai LoongArch Mips MSP430
+ALL_LLVM_TARGETS=( AArch64 AVR BPF Hexagon Lanai LoongArch Mips MSP430
NVPTX PowerPC RISCV Sparc SystemZ WebAssembly X86 XCore
"${ALL_LLVM_EXPERIMENTAL_TARGETS[@]}" )
ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" )
Although it works for some people like me (who don't need AMDGPU
and ARM
), it's only a dirty workaround and far from perfect.
Fixed by loongson/gcc#77, can confirm llvm builds flawlessly now. Thanks!
Hi,
I use your 1205 version of stage3 on my 3A5000, and have upgraded my world to the latest. However, when I tried to build llvm-11.1.0 (introduced by mesa), it failed with the following errors:
Here's some information of my system:
Not sure how to figure it out. Could you help me, please? If you need more information, I'd provide ASAP. Thanks.