chap 6.14 GCC build, failed

Howard Wang hwang at circadiant.com
Tue Oct 25 10:19:38 PDT 2005


thanks all for the help. the tool adjustment is ok, since it's chap6.14, it
should be looking at /usr/include, the confusion is: it's gcc pass 3 or 4,
not gcc pass 2. anyway, I checked the glibc header and found out that the 
correct header is not there. now, gcc build passed.

thanks
howard


-----Original Message-----
From:	Dan Nicholson [mailto:dbn.lists at gmail.com]
Sent:	Tue 10/25/2005 12:20 PM
To:	LFS Support List
Cc:	
Subject:	Re: chap 6.14 GCC build, failed
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
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page






More information about the lfs-support mailing list