Closed dslm4515 closed 4 years ago
Looking at Alpine Linux's build of GCC 10.2.0, I'm missing an extra library during musl libc build:
# provide minimal libssp_nonshared.a so we don't need libssp from gcc
/tools/bin/aarch64-mlfs-linux-musleabihf-gcc -fpie -c ../files/__stack_chk_fail_local.c -o __stack_chk_fail_local.o
/tools/bin/aarch64-mlfs-linux-musleabihf-gcc-ar r libssp_nonshared.a __stack_chk_fail_local.o
cp -v libssp_noshared.a /usr/lib/
__stack_chk_fail_local.c:
extern void __stack_chk_fail(void);
void __attribute__((visibility ("hidden"))) __stack_chk_fail_local(void) { __stack_chk_fail(); }
Looks like build progresses further, but stops again:
vtv_start.c:56:1: warning: constructor priorities from 0 to 100 are reserved for the implementation [-Wprio-ctor-dtor]
56 | {
| ^
../../../libvtv/vtv_rts.cc:128:10: fatal error: execinfo.h: No such file or directory
128 | #include <execinfo.h>
| ^~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:604: vtv_rts.lo] Error 1
The "execinfo" error went out for me when applying the "execinfo" patch from Void Linux, with it, I managed to compile GCC 10.2.0 even though the patch is made for an older version of GCC.
@Yul3n, I'll try that! Thanks!
Use mussel, which is a script that I wrote to create cross compilation toolchains targetting musl libc with a single GCC build.
It produces working ABIs, supports many architectures, uses the latest upstream packages, supports LTO via zstd and is fully documented.
@Yul3n, Awesome! I forgot to check void linux. That patched fixed it.
@firasuke, WOW. That would come in very handy!
I got the Raspberry Pi 4 (4GB RAM) that I can test your project on. :P
@firasuke, I just quickly looked over mussel ... you got lastest version of ISL working with GCC! My builds are still stuck on isl-0.19. Definitely, will check that out further!
Thanks!
Please do, and let me know if it works for you.
Shouldn't the issue be closed now?
Running the GCC testsuite. at the moment... But yes, should be closed.
Current host: Raspberry Pi 4 (4GB RAM) Distro: MLFS-6.00 (GCC 9.2.0) Truple: aarch64-linux-musleabihf
Compilation errors out with libgomp of GCC failing:
Checking config.log for libgomp shows:
My original configure command fo GCC:
Initially, the last 3 flags in my configure command also yielded a failed build with a different error. I forgot to document the error when I used the same configure flags from previous branch (6.00, GCC 9.2.0). I am currently upgrading branch 7.00 with package versions used in LFS-10RC1