I worked out what the problem was: I was using an old gcc-build directory and an old unzipped version of the source that I had edited with sed. I rm -rfed both directories, unzipped the source again, made a new build directory and everything went smoothly.
James On Mon, 2007-10-22 at 11:30 -0600, James wrote: > Hi folks, > > I *thought* that I was following the book's steps to the letter, but > clearly I'm not. > > I'm on section > http://www.linuxfromscratch.org/lfs/view/stable/chapter06/gcc.html > > I typed make and it ran for a while before outputting this: > > SHLIB_INSTALL='$(mkinstalldirs) > $(DESTDIR)$(slibdir)@shlib_slibdir_qual@; /tools/bin/install -c -m 644 > @multilib_dir@/@[EMAIL PROTECTED] > $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@[EMAIL PROTECTED]; rm -f > $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@[EMAIL PROTECTED]; ln -s > @[EMAIL PROTECTED] > $(DESTDIR)$(slibdir)@shlib_slibdir_qual@/@[EMAIL PROTECTED]' \ > SHLIB_EXT='.so' \ > SHLIB_MULTILIB='' \ > SHLIB_MKMAP='../../gcc-4.1.2/gcc/mkmap-symver.awk' \ > SHLIB_MKMAP_OPTS='' \ > > SHLIB_MAPFILES='../../gcc-4.1.2/gcc/libgcc-std.ver > ../../gcc-4.1.2/gcc/config/libgcc-glibc.ver' \ > SHLIB_NM_FLAGS='-pg' \ > MULTILIB_OSDIRNAMES='' \ > ASM_HIDDEN_OP='' \ > GCC_FOR_TARGET='/sources/gcc-build/./gcc/xgcc > -B/sources/gcc-build/./gcc/ -B/usr/i686-pc-linux-gnu/bin/ > -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include > -isystem /usr/i686-pc-linux-gnu/sys-include' \ > mkinstalldirs='/bin/sh ../../gcc-4.1.2/gcc/../mkinstalldirs' \ > /bin/sh mklibgcc > tmp-libgcc.mk > mv tmp-libgcc.mk libgcc.mk > TARGET_CPU_DEFAULT="" \ > HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \ > /bin/sh ../../gcc-4.1.2/gcc/mkconfig.sh tconfig.h > tconfig.h is unchanged > /sources/gcc-build/./gcc/xgcc -B/sources/gcc-build/./gcc/ > -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ > -isystem /usr/i686-pc-linux-gnu/include > -isystem /usr/i686-pc-linux-gnu/sys-include -O2 -O2 -g -O2 -DIN_GCC > -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes > -Wold-style-definition -isystem ./include -I. -I. > -I../../gcc-4.1.2/gcc -I../../gcc-4.1.2/gcc/. > -I../../gcc-4.1.2/gcc/../include > -I../../gcc-4.1.2/gcc/../libcpp/include -g0 -finhibit-size-directive > -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss > -fno-unit-at-a-time -fno-omit-frame-pointer \ > -c ../../gcc-4.1.2/gcc/crtstuff.c -DCRT_BEGIN \ > -o crtbegin.o > In file included from ../../gcc-4.1.2/gcc/crtstuff.c:68: > ../../gcc-4.1.2/gcc/tsystem.h:90:19: error: stdio.h: No such file or > directory > ../../gcc-4.1.2/gcc/tsystem.h:93:23: error: sys/types.h: No such file > or directory > ../../gcc-4.1.2/gcc/tsystem.h:96:19: error: errno.h: No such file or > directory > ../../gcc-4.1.2/gcc/tsystem.h:103:20: error: string.h: No such file or > directory > ../../gcc-4.1.2/gcc/tsystem.h:104:20: error: stdlib.h: No such file or > directory > ../../gcc-4.1.2/gcc/tsystem.h:105:20: error: unistd.h: No such file or > directory > In file included from /sources/gcc-build/./gcc/include/syslimits.h:7, > from /sources/gcc-build/./gcc/include/limits.h:11, > from ../../gcc-4.1.2/gcc/tsystem.h:108, > from ../../gcc-4.1.2/gcc/crtstuff.c:68: > /sources/gcc-build/./gcc/include/limits.h:122:61: error: limits.h: No > such file or directory > In file included from ../../gcc-4.1.2/gcc/crtstuff.c:68: > ../../gcc-4.1.2/gcc/tsystem.h:111:18: error: time.h: No such file or > directory > make[2]: *** [crtbegin.o] Error 1 > make[2]: Leaving directory `/sources/gcc-build/gcc' > make[1]: *** [all-gcc] Error 2 > make[1]: Leaving directory `/sources/gcc-build' > make: *** [all] Error 2 > > > Any ideas as to what step I've missed/mistyped earlier? > > James -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
