Closed dslm4515 closed 1 year ago
Source for TableGen builds fine if built with the stage0 clang
Perhaps, stage1 should have been compiled from source that wasn't patched to use the dynamic loader at /llvmtools/lib
and the packages built for llvmtools will then need to have the executables patched with the dynamic loader at /llvmtools/lib
^ Tried it. Same exact errors.
Tried the GCC+libstdc++ built for llvmtools: Same error.
But yet, stage0 clang can be reconfigured to build stage2 for the final system.
If so, was there a reason for building stage1 clang?
For now, stage0 will build stage2 clang. This change is introduced with commit 550cf2c3fc9990ea85f367d0215912214f7e0eb2
I may end up moving stage0 clang from cgnutools to llvmtools:
If successful, this would reduce build time as clang [& friends] will be built only twice as stage0 and final system compiler... instead of 3 times.
Interestingly, stage0 clang runs both on the host [glibc] and under chroot [musl]
Under chroot, LLD and clang will not compile because
llvm-tblgen
fails to compile: