GCC compilation problem

Ken Moffat ken at linuxfromscratch.org
Tue Jan 16 05:38:58 PST 2007

On Tue, Jan 16, 2007 at 09:01:33AM +0530, Deepak Barua wrote:
> Hi,
>     Here is some more information regarding the error
> /sources/gcc-build-3/gcc/xgcc -B/sources/gcc-build-3/gcc/

 That directory name is unusual.  The name of the separate 'build'
directory isn't important, but I'd better ask - did you delete the
gcc source directory, and re-extract it for this build ?  In theory,
the source directory shouldn't be updated during a build, but I
wouldn't bet on it.

> -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.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 directory
> ../../gcc-4.0.3/gcc/tsystem.h:93:23: error: sys/types.h: No such file
> or directory
[ snip ]

 On the face of it, you don't have the headers.  These should have
been installed with glibc.  So, either glibc didn't get installed
properly (do you have these headers in chroot?), or else the build
system is looking in the wrong place.

das eine Mal als Tragödie, das andere Mal als Farce

More information about the lfs-support mailing list