Chpt 6.14 GCC no such file (Repost of question)

Michael creznedmick at gmail.com
Mon May 15 17:27:08 PDT 2006


On Mon, 2006-05-15 at 06:06 -0700, Dan Nicholson wrote:
> On 5/14/06, Michael <creznedmick at gmail.com> wrote:
> > On Sun, 2006-05-14 at 19:42 -0700, Dan Nicholson wrote:
> > > On 5/14/06, Michael <creznedmick at gmail.com> 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/../include
> -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
> anyway.
> 
> --
> Dan


Sorry I misread your request. I think this is what you are after and if
I read it right, make is using the correct version of gcc
`
/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/in
clude -isystem /usr/i686-pc-linux-gnu/sys-include -O2 -DIN_GCC    -W -
Wall
 -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-
defi
nition  -isystem ./include  -I. -I. -I../../gcc-3.4.3/gcc -
I../../gcc-3.4.
3/gcc/. -I../../gcc-3.4.3/gcc/../include   -g0 -finhibit-size-directive
-f
no-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-
unit
-at-a-time -fno-omit-frame-pointer \
   -c ../../gcc-3.4.3/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
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
../../gcc-3.4.3/gcc/tsystem.h:82:23: sys/types.h: No such file or
directory
../../gcc-3.4.3/gcc/tsystem.h:85:19: errno.h: No such file or directory
../../gcc-3.4.3/gcc/tsystem.h:92:20: string.h: No such file or directory
../../gcc-3.4.3/gcc/tsystem.h:93:20: stdlib.h: No such file or directory
../../gcc-3.4.3/gcc/tsystem.h:94:20: unistd.h: No such file or directory

Michael




More information about the lfs-support mailing list