Gcc-3.3.2 build fails

Ken Moffat ken at kenmoffat.uklinux.net
Fri Feb 27 14:11:32 PST 2004


On Fri, 27 Feb 2004, Daryl Lee wrote:

> The following is the last bit of output from "make" on gcc-3.3.2 in
> Chapter 6.  I'm building on a SuSE 9.0 host, using LFS 5.0 pre1.  I ran
> this step twice, to make sure I was starting in the right directory and
> running the right command.
>
 I hope `5.0 pre1' is a typo, although I don't remember any major
gotchas with it.
>
> /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/include -O2 -DIN_GCC
>   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
>   ./include  -I. -I. -I../../gcc-3.3.2/gcc -I../../gcc-3.3.2/gcc/.
>   -I../../gcc-3.3.2/gcc/config -I../../gcc-3.3.2/gcc/../include  -g0
>   -finhibit-size-directive -fno-inline-functions -fno-exceptions
>   -fno-zero-initialized-in-bss -fno-omit-frame-pointer \
>   -c ../../gcc-3.3.2/gcc/crtstuff.c -DCRT_BEGIN \
>   -o crtbegin.o
> In file included from ../../gcc-3.3.2/gcc/crtstuff.c:62:
> ../../gcc-3.3.2/gcc/tsystem.h:72:19: stdio.h: No such file or directory
> ../../gcc-3.3.2/gcc/tsystem.h:75:23: sys/types.h: No such file or directory

On the face of it, you don't have /usr/include/{stdio,h,sys/types.h} in
chroot.  This sounds unlikely, they would have been put there by glibc
if it succeeded (and if it didn't succeed, but you carried on without
noticing and adjusted the linker and the specfile then I think binutils
would have failed because the C compiler can't create executables).

 I think you've missed one of the steps in chapter 6, but I don't know
which one.

Ken
-- 
Brighton tops UK Jedi league
http://www.theregister.co.uk/content/28/35186.html




More information about the lfs-support mailing list