dslm4515 / CMLFS

Clang-Built Musl Linux From Scratch
MIT License
99 stars 18 forks source link

Stage 3-chroot/018-binutils - hanging in llvm mode #62

Closed Cerberios closed 1 year ago

Cerberios commented 2 years ago

Stage 3-chroot/018-binutils Issue: on configure stage, system hanging with huge load and memory leaks at stage: checking whether compiler driver understands Ada... It taken a hour, then I break process. Tried to switch from ( set-llvm-mode && set-llvm-bin-mode ) --> ( set-gcc-mode && set-gnu-bin-mode ) Configuration stage completed pretty fast and OK checking whether compiler driver understands Ada... no But compilation failed with:

../../bfd/compress.c:22:10: fatal error: 'zlib.h' file not found

locate zlib.h(out of chroot)

/mnt/cmlfs/llvmtools/include/bzlib.h /mnt/cmlfs/usr/include/zlib.h

Cerberios commented 2 years ago

Problem seems in "gold" section. I tried to change --disable-gold and compilation was OK

dslm4515 commented 1 year ago

closing... current master branch no longer uses GCC to build any package for CMLFS.... therefore no need to swich between "llvm mode" and "GCC mode"

Additionally, current build method only uses binutils when building the mussel toolchain.