chap 6.14 GCC build, failed

Dan Nicholson dbn.lists at gmail.com
Tue Oct 25 09:20:47 PDT 2005


On 10/25/05, Chris Staub <chris at beaker67.com> wrote:
> 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.
> > 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:
>
> 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.

I think you're right about the tools adjustment (Ch. 5.7). gcc pass 2
shouldn't be looking at /usr/include (which obviously has weird
#include's on the host).  Make sure 5.7 gives the right output and
that you've applied the appropriate patches and sed's in 5.11.

--
Dan



More information about the lfs-support mailing list