Chpt 6.14 GCC no such file (Repost of question)

Dan Nicholson dbn.lists at
Mon May 15 06:06:48 PDT 2006

On 5/14/06, Michael <creznedmick at> wrote:
> On Sun, 2006-05-14 at 19:42 -0700, Dan Nicholson wrote:
> > On 5/14/06, Michael <creznedmick at> wrote:
> > >
> > > In file included from ../../gcc-3.4.3/gcc/crtstuff.c:62:
> > > ../../gcc-3.4.3/gcc/tsystem.h:79:19: stdio.h: No such file or directory
> >
> > Could you show the command that was run by make leading to this
> > failure?
> I copy and pasted the command into the terminal
> root:/sources/gcc-build# ../gcc-3.4.3/configure --prefix=/usr     --
> libexecdir=/usr/lib --enable-shared     --enable-threads=posix --enable-
> __cxa_atexit     --enable-clocale=gnu --enable-languages=c,c++

I wasn't explicit enough here.  I don't mean the command that you ran,
but the command that was in the Makefile leading to this.  Correct me
if I'm wrong, but I think it's something like this:

/tools/src/build/gcc-build/gcc/xgcc -B/tools/src/build/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 -DIN_GCC    -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -I. -I.
-I../../gcc-4.0.2/gcc -I../../gcc-4.0.2/gcc/.
-I../../gcc-4.0.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.0.2/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o

except that the paths you have are different (/sources/gcc-build/...
instead of /tools/src/build/gcc-build/...) since this was from my
build log.  The important thing is that xgcc is being run, not the gcc
in /tools.  Is that right?  Just paste the lines before the "no such
file" error from the build log.  If you don't have a build log, then
rerun the gcc build until the error since we'll be testing xgcc


More information about the lfs-support mailing list