Closed owl4ce closed 2 years ago
Ah, I forgot..
Change the configure step into these.
Because the linker (lld) will error if the stack size
is applied to CFLAGS, it should be at CXXFLAGS.
CFLAGS="-Wno-error -Wno-null-dereference -DFNM_EXTMATCH=0" \
CXXFLAGS="-Wno-error -Wl,-z,stack-size=2097152" \
./configure --prefix=/usr \
--disable-debuginfod \
--disable-libdebuginfod
I am currently doing another build of CMLFS to check for typo's and mistakes before i create the 2.0.0 tag and release... just in time, as I can try this patch as soon as i finish llvmtools.
Also, I corrected this. https://github.com/dslm4515/CMLFS/blob/a482599d86cc55489abc7fe780577f38c4636bdc/3-chroot/075-iproute2#L13
I built with clang but failed, should have implemented -D_GNU_SOURCE
.
make CC=clang CCOPTS="-D_GNU_SOURCE"
Also, I corrected this.
I built with clang but failed, should have implemented
-D_GNU_SOURCE
.make CC=clang CCOPTS="-D_GNU_SOURCE"
Commit 822d0f6
I am currently doing another build of CMLFS to check for typo's and mistakes before i create the 2.0.0 tag and release... just in time, as I can try this patch as soon as i finish llvmtools.
Using LLVM-12.0.1 is fine, but the bug with lld
(mach-o) which requires the libunwind header is still there. š
I did include scripts to switch between LLVM and GCC+Binutils and LLVM+Binutils for both llvmtools and the final system.
Since libelf can be 'clang-built' ... then the only purpose of GCC in llvmtools is to build GCC for the final system, if I remember correctly.
I still havent found a way to clang-build GRUB without corrupted images (diskboot.img & boot.img)
I did include scripts to switch between LLVM and GCC+Binutils and LLVM+Binutils for both llvmtools and the final system.
Since libelf can be 'clang-built' ... then the only purpose of GCC in llvmtools is to build GCC for the final system, if I remember correctly.
I still havent found a way to clang-build GRUB without corrupted images (diskboot.img & boot.img)
Yeah, but I don't use GRUB btw š
Yeah, but I don't use GRUB btw smile
I usually use rEFInd to boot my UEFI laptop, but I couldn't get rEFInd to boot my UEFI Desktop PC. ... If building on ARM64, then likely not grub, lol
Updated libelf build.
commit 5a0c01b
Confirmed patch worked. Cleaning up build: 845b946
After so many days of searching .. I finally found it.
elfutils-musl-clang.patch
Apply above patch before
autoreconf
step, then the magic appears.