[lfs-support] Error building gcc pass 2 in ch.5

hans kaper spakyelj at xs4all.nl
Wed Sep 18 12:39:01 PDT 2013


After failing to be able to use the tools from LFS 7.3 in 7.4, I decided to build the tools from the book 7.4. I soon ran into another problem: after building the tools up and until Binutils pass 2 without errors,  I got the following error building GCC, pass 2:

i686-lfs-linux-gnu-g++ -c -fomit-frame-pointer  -g -O2 -DIN_GCC   -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I../../gcc-4.8.1/gcc -I../../gcc-4.8.1/gcc/build -I../../gcc-4.8.1/gcc/../include -I../../gcc-4.8.1/gcc/../libcpp/include -I/mnt/lfs/sources/gcc-build/./gmp -I/mnt/lfs/sources/gcc-4.8.1/gmp -I/mnt/lfs/sources/gcc-build/../gcc-4.8.1/mpfr/src -I/mnt/lfs/sources/gcc-4.8.1/mpc/src  -I../../gcc-4.8.1/gcc/../libdecnumber -I../../gcc-4.8.1/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc-4.8.1/gcc/../libbacktrace    \
		-o build/genconstants.o ../../gcc-4.8.1/gcc/genconstants.c
In file included from ../../gcc-4.8.1/gcc/genconstants.c:28:0:
../../gcc-4.8.1/gcc/system.h:205:20: fatal error: cstring: No such file or directory
  # include <cstring>
                     ^
compilation terminated.


The file cstring is not found. I assume it has to be somewhere in the gcc-build but I don't know why not.

I deleted the tools and started anew, with the same result. The md5sum for GCC is correct and so are the system-requirements. The build-directories were deleted from /source after the pass 1-build.

Any idea what is wrong?



Hans.



More information about the lfs-support mailing list