gcc-4.0.3 pass 1 missing headers

Hero_xbd!.RRR heroxbd at 126.com
Mon Jul 9 00:44:07 PDT 2007

Hi! I just started my advanture on LFS 6.2

My box have Debian sid, so I used VirtualBox to emulate a virtual
machine with Debian Sarge to satisfy the version requirements of LFS.

I have carefully followed the book, but stuck with gcc-4.0.3 pass 1

It seems that some essential headers can't be found.

I can see all the headers in /usr/include and I noticed that immediatly
before the error, fixinc.sh was called to fixinclude from /usr/include
to $LFS/sources/gcc-build/gcc/include

So I went into
$LFS/sources/gcc-build/build-i686-pc-linux-gnu/fixincludes and executed

TARGET_MACHINE=i686-pc-linux-gnu sh fixinc.sh
$LFS/sources/gcc-build/gcc/include /usr/include

/And it stucked with nmi.h and its size increases without bound in

/So I suspected that fixinc.sh have some error, so in
/$LFS/sources/gcc-build/build-i686-pc-linux-gnu/fixincludes /
I executed:

$ make clean && make check

It reported an error "No newline at end of file"

Am I on the right way handling the problem? I am puzzled of what to do
next to debug.

//lastest output of "make bootstrap"

make[1]: Entering directory `/mnt/lfs/sources/gcc-build/zlib'
true "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CFLAGS=-g -O2 " "CXXFLAGS=-g -O2"
"INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644"
"INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install
"MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 " "PICFLAG="
"PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "EXPECT=expect" "RUNTEST=runtest"
"RUNTESTFLAGS=" "exec_prefix=/tools" "infodir=/tools/info"
"libdir=/tools/lib" "prefix=/tools" "tooldir=/tools/i686-pc-linux-gnu"
"AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=ld" "LIBCFLAGS=-g -O2 " "NM=nm"
"PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/zlib'
Bootstrapping the compiler
make[1]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
make CC="gcc" libdir=/tools/lib LANGUAGES="c " \
MAKEINFO="makeinfo --split-size=5000000" MAKEINFOFLAGS="--no-split" \
COVERAGE_FLAGS= OBJS-onestep="tree-chrec.o tree-scalar-evolution.o
tree-data-ref.o tree-cfg.o tree-dfa.o tree-eh.o tree-ssa.o
tree-optimize.o tree-gimple.o gimplify.o tree-pretty-print.o
tree-into-ssa.o tree-outof-ssa.o tree-ssa-ccp.o tree-vn.o tree-ssa-dce.o
tree-ssa-copy.o tree-nrv.o tree-ssa-copyrename.o tree-ssa-pre.o
tree-ssa-live.o tree-ssa-operands.o tree-ssa-alias.o tree-ssa-phiopt.o
tree-ssa-forwprop.o tree-nested.o tree-ssa-dse.o tree-ssa-dom.o
domwalk.o tree-tailcall.o gimple-low.o tree-iterator.o tree-phinodes.o
tree-ssanames.o tree-sra.o tree-complex.o tree-ssa-loop.o
tree-ssa-loop-niter.o tree-ssa-loop-manip.o tree-ssa-threadupdate.o
tree-vectorizer.o tree-vect-analyze.o tree-vect-transform.o
tree-ssa-loop-ivcanon.o tree-ssa-propagate.o tree-ssa-loop-ivopts.o
tree-if-conv.o tree-ssa-loop-unswitch.o alias.o bb-reorder.o bitmap.o
builtins.o caller-save.o calls.o cfg.o cfganal.o cfgbuild.o cfgcleanup.o
cfglayout.o cfgloop.o cfgloopanal.o cfgloopmanip.o loop-init.o
loop-unswitch.o loop-unroll.o cfgrtl.o combine.o conflict.o convert.o
coverage.o cse.o cselib.o dbxout.o ddg.o tree-ssa-loop-ch.o
loop-invariant.o tree-ssa-loop-im.o debug.o df.o diagnostic.o dojump.o
dominance.o loop-doloop.o dwarf2asm.o dwarf2out.o emit-rtl.o except.o
explow.o loop-iv.o expmed.o expr.o final.o flow.o fold-const.o
function.o gcse.o genrtl.o ggc-common.o global.o graph.o gtype-desc.o
haifa-sched.o hooks.o ifcvt.o insn-attrtab.o insn-emit.o insn-modes.o
insn-extract.o insn-opinit.o insn-output.o insn-peep.o insn-recog.o
integrate.o intl.o jump.o langhooks.o lcm.o lists.o local-alloc.o loop.o
modulo-sched.o optabs.o options.o opts.o params.o postreload.o
postreload-gcse.o predict.o insn-preds.o pointer-set.o postreload.o
print-rtl.o print-tree.o profile.o value-prof.o var-tracking.o real.o
recog.o reg-stack.o regclass.o regmove.o regrename.o reload.o reload1.o
reorg.o resource.o rtl.o rtlanal.o rtl-error.o sbitmap.o sched-deps.o
sched-ebb.o sched-rgn.o sched-vis.o sdbout.o simplify-rtx.o sreal.o
stmt.o stor-layout.o stringpool.o targhooks.o timevar.o toplev.o
tracer.o tree.o tree-dump.o varasm.o varray.o vec.o version.o
vmsdbgout.o xcoffout.o alloc-pool.o et-forest.o cfghooks.o bt-load.o
pretty-print.o ggc-page.o web.o passes.o rtl-profile.o tree-profile.o
rtlhooks.o cfgexpand.o lambda-mat.o lambda-trans.o lambda-code.o
tree-loop-linear.o i386.o host-linux.o tree-inline.o cgraph.o
cgraphunit.o tree-nomudflap.o"
make[2]: Entering directory `/mnt/lfs/sources/gcc-build/gcc'
./xgcc -B./ -B/tools/i686-pc-linux-gnu/bin/ -isystem
/tools/i686-pc-linux-gnu/include -isystem
-L/mnt/lfs/sources/gcc-build/gcc/../ld -O2 -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -I. -I.-I../../g cc-4.0.3/gcc
-I../../gcc-4.0.3/gcc/. -I../../gcc-4.0.3/gcc/../include
-I../../gcc-4.0.3/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.0.3/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from ../../gcc-4.0.3/gcc/crtstuff.c:64:
../../gcc-4.0.3/gcc/tsystem.h:90:19: error: stdio.h: No such file or
../../gcc-4.0.3/gcc/tsystem.h:93:23: error: sys/types.h: No such file or
../../gcc-4.0.3/gcc/tsystem.h:96:19: error: errno.h: No such file or
../../gcc-4.0.3/gcc/tsystem.h:103:20: error: string.h: No such file or
../../gcc-4.0.3/gcc/tsystem.h:104:20: error: stdlib.h: No such file or
../../gcc-4.0.3/gcc/tsystem.h:105:20: error: unistd.h: No such file or
In file included from ./include/syslimits.h:7,
from ./include/limits.h:11,
from ../../gcc-4.0.3/gcc/tsystem.h:108,
from ../../gcc-4.0.3/gcc/crtstuff.c:64:
./include/limits.h:122:61: error: limits.h: No such file or directory
In file included from ../../gcc-4.0.3/gcc/crtstuff.c:64:
../../gcc-4.0.3/gcc/tsystem.h:111:18: error: time.h: No such file or
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/gcc'
make: *** [bootstrap] Error 2

Xu, Benda (续本达)

Fundamental Science of Mathematics and Physics,
Tsinghua University, Beijing, P.R.China


More information about the lfs-support mailing list