error building uclibc 0.9.30 with kernel 2.6.28.1

Rob Landley rob at landley.net
Fri Jan 30 23:26:19 UTC 2009


On Friday 23 January 2009 02:42:36 Mikael Lund Jepsen, ICCC wrote:
> Khem Raj wrote:
> > you need to install kernel-headers
> >
> > On Thu, Jan 22, 2009 at 10:03 AM,  <mailinglists at openelec.tv> wrote:
> >> Hi,
> >>
> >> when i build uclibc-0.9.30 with kernel 2.6.28.1 i have follow error (not
> >> with 2.6.27.10):
> >>
> >> make: Entering directory
> >> `/home/stephan/OpenElec.test/build.i386.uClibc/uClibc-0.9.30'
> >>  AS lib/crt1.o
> >>  AS lib/Scrt1.o
> >>  AS lib/crti.o
> >>  AS lib/crtn.o
> >>  CC ldso/ldso/ldso.oS
> >> In file included from ./include/bits/errno.h:25,
> >>                from ./include/errno.h:36,
> >>                from ./include/bits/syscalls.h:14,
> >>                from ./include/sys/syscall.h:34,
> >>                from ./ldso/ldso/i386/dl-syscalls.h:3,
> >>                from ./ldso/include/dl-syscall.h:12,
> >>                from ./ldso/include/ldso.h:36,
> >>                from ldso/ldso/ldso.c:33:
> >> /home/stephan/OpenElec.test/build.i386.uClibc/linux-2.6.28.1/include/lin
> >>ux/errno.h:4:23: error: asm/errno.h: No such file or directory
> >
> > you need to install kernel-headers properly before you build uclibc.
>
> To save you (and anyone else) some grief - those kernel headers needs to
> be "sanitized" kernel headers for your target kernel version.
> That is - they have certain symbols stripped out. Building uClibc with
> standard kernel headers is not supported (and I have never got that to
> work either).
> If you are building with Buildroot, it can fetch sanitized headers for
> you automatically (snapshot after Jan 19. is updated with 2.6.28).

Or you could just grab any Linux kernel tarball for the past ~3 years and go 
"make headers_install ARCH=sh4 INSTALL_HDR_PATH=/blah/blah/blah"

The need for "sanitized" headers is supplied quite well by the kernel itself 
these days, and has been for years.

Rob


More information about the uClibc mailing list