Hi All, I was trying to build gcc/g++-4.0.3 on i686-GNU-Linux, kernel 2.6.13-15 using
gcc --version
gcc (GCC) 4.0.2 20050901 (prerelease) (SUSE Linux) I did the following: mkdir gcc-build ;cd gcc-build ../configure --enable-languages=c,c++ --enable-bootstrap=lean make CFLAGS='-g3 -O0' LIBCFLAGS='-g3 -O0' LIBCXXFLAGS='-g3 -O0' bootstrap I want to trace cc1[plus] using gdb ,thats the reason for -g3 and -O0 I can see the following executables in gcc-build/gcc cc1,collect2,g++,cpp,xgcc If these executables are there Why is the compile failing then ? The error is pasted below.. ------------------------------------------------------------------------------------------------------------------------- Bootstrapping the compiler make[1]: Entering directory `/lfs/sources/gcc-4.0.3/gcc-build/gcc' make CC="gcc" libdir=/usr/local/lib LANGUAGES="c " \ CFLAGS="-g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING" \ MAKEINFO="/lfs/sources/gcc-4.0.3/missing 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 `/lfs/sources/gcc-4.0.3/gcc-build/gcc' ./xgcc -B./ -B/usr/local/i686-pc-linux-gnu/bin/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include -L/lfs/sources/gcc-4.0.3/gcc-build/gcc/../ld -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/../include -I../../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/crtstuff.c -DCRT_BEGIN \ -o crtbegin.o In file included from ../../gcc/crtstuff.c:64: ../../gcc/tsystem.h:90:19: error: stdio.h: No such file or directory ../../gcc/tsystem.h:93:23: error: sys/types.h: No such file or directory ../../gcc/tsystem.h:96:19: error: errno.h: No such file or directory ../../gcc/tsystem.h:103:20: error: string.h: No such file or directory ../../gcc/tsystem.h:104:20: error: stdlib.h: No such file or directory ../../gcc/tsystem.h:105:20: error: unistd.h: No such file or directory In file included from ./include/syslimits.h:7, from ./include/limits.h:11, from ../../gcc/tsystem.h:108, from ../../gcc/crtstuff.c:64: ./include/limits.h:122:61: error: limits.h: No such file or directory In file included from ../../gcc/crtstuff.c:64: ../../gcc/tsystem.h:111:18: error: time.h: No such file or directory make[2]: *** [crtbegin.o] Error 1 make[2]: Leaving directory `/lfs/sources/gcc-4.0.3/gcc-build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/lfs/sources/gcc-4.0.3/gcc-build/gcc' make: *** [bootstrap] Error 2