chap 6.14 GCC build, failed

Chris Staub chris at beaker67.com
Tue Oct 25 07:59:59 PDT 2005


Howard Wang wrote:
> Hi All,
> 
> while building gcc pass 2, it failed for the following:
> 
> /usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
> 
> I checked both LFS /usr/include/ and /tools/include dir, the entire dir
> asm-generic is missing.
> 
> do we need this dir ? can I copy the entire dir from my suse 9.3 host ?
> 
> thanks
> 
> howard
> 
> 
> 
> /bin/sh ../../gcc-3.4.3/gcc/mkconfig.sh tconfig.h
> /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 -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-3.4.3/gcc -I../../gcc-3.4.3/gcc/. -I../../gcc-3.4.3/gcc/../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-3.4.3/gcc/crtstuff.c -DCRT_BEGIN \
>   -o crtbegin.o
> In file included from /usr/include/linux/errno.h:4,
>                  from /usr/include/bits/errno.h:25,
>                  from /usr/include/errno.h:36,
>                  from ../../gcc-3.4.3/gcc/tsystem.h:85,
>                  from ../../gcc-3.4.3/gcc/crtstuff.c:62:
> /usr/include/asm/errno.h:4:31: asm-generic/errno.h: No such file or directory
> make[1]: *** [crtbegin.o] Error 1
> make[1]: Leaving directory `/sources/gcc-build/gcc'
> make: *** [all-gcc] Error 2
> root:/sources/gcc-build#       

gcc pass 2 shouldn't even be looking in /usr/include. My /tools dir 
doesn't have an asm-generic directory either, so it's not needed. Check 
to see that you did the toolchain adjustment correctly, and check that 
you installed linux-libc-headers correctly.



More information about the lfs-support mailing list