On Wed, Jan 26, 2011 at 12:03:20PM -0500, Pat Barnhill wrote: > Hello, > > I'm trying to compile the first pass of gcc. However, I'm getting the > following error: > > /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ > -B/tools/i686-lfs-linux-gnu/bin/ -B/tools/i686-lfs-linux-gnu/lib/ -isystem > /tools/i686-lfs-linux-gnu/include -isystem > /tools/i686-lfs-linux-gnu/sys-include -g -O2 -O2 -g -O2 -DIN_GCC > -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wcast-qual > -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem > ./include -fPIC -g -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc > -I. -I. -I../.././gcc -I../../../gcc-4.5.1/libgcc > -I../../../gcc-4.5.1/libgcc/. -I../../../gcc-4.5.1/libgcc/../gcc > -I../../../gcc-4.5.1/libgcc/../include > -I../../../gcc-4.5.1/libgcc/../libdecnumber/no > -I../../../gcc-4.5.1/libgcc/../libdecnumber -DHAVE_CC_TLS -DUSE_TLS -o > decContext.o -MT decContext.o -MD -MP -MF decContext.dep -c > ../../../gcc-4.5.1/libgcc/../libdecnumber/decContext.c > ../../../gcc-4.5.1/libgcc/../libdecnumber/decContext.c:33:43: fatal error: > string.h: No such file or directory
Your host system does not have the required headers. This is odd, because usually when gcc is installed the glibc headers will be installed along with it. On ubuntu, I think you need 'build-essentials'. On fedora and similar distros, you will need any -devel versions (if they exist) of the packages listed in 'Host System Requirements' in the preface. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
