Hello,
I am currently trying to build Linux From Scratch - Version 11.2
Everything has gone fairly smoothly up until this point but I have run into an issue in section 6.18.1. Installation of GCC (pass 2)
When I run make I get the following error
Code:
Checking multilib configuration for libgcc...
make[2]: Entering directory '/media/mark/LFS/sources/gcc/gcc-11.2.0/build/x86_64-lfs-linux-gnu/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
x86_64-lfs-linux-gnu-gcc --sysroot=/media/mark/LFS -g -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=format-diag -Wstrict-prototypes -Wmissing-prototypes -Wno-error=format-diag -Wold-style-definition -isystem ./include -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc -I../../../libgcc/../include -g0 -finhibit-size-directive -fno-inline -fno-exceptions -fno-zero-initialized-in-bss -fno-toplevel-reorder -fno-tree-vectorize -fbuilding-libgcc -fno-stack-protector -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc -I../../../libgcc/../include -o crtend.o -MT crtend.o -MD -MP -MF crtend.dep -fno-omit-frame-pointer -fno-asynchronous-unwind-tables -fcf-protection -mshstk -c ../../../libgcc/crtstuff.c -DCRT_END
../../../libgcc/crtstuff.c: In function '__do_global_ctors_aux':
../../../libgcc/crtstuff.c:695:12: error: '__CTOR_END__' undeclared (first use in this function); did you mean '__TMC_END__'?
695 | for (p = __CTOR_END__ - 1; *p != (func_ptr) -1; p--)
| ^~~~~~~~~~~~
| __TMC_END__
../../../libgcc/crtstuff.c:695:12: note: each undeclared identifier is reported only once for each function it appears in
Makefile:1029: recipe for target 'crtend.o' failed
make[2]: *** [crtend.o] Error 1
make[2]: Leaving directory '/media/mark/LFS/sources/gcc/gcc-11.2.0/build/x86_64-lfs-linux-gnu/libgcc'
Makefile:14433: recipe for target 'all-target-libgcc' failed
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory '/media/mark/LFS/sources/gcc/gcc-11.2.0/build'
Makefile:964: recipe for target 'all' failed
make: *** [all] Error 2
I really can't make any sense of the above error, so I really haven't tried anything yet. The only thing I have tried is re-running 'make' but I get the same error.
Any help would be greatly appreciated