[klibc] [PATCH] Update header locations for uapi & generated

Robin H. Johnson robbat2 at gentoo.org
Thu Dec 26 20:49:02 PST 2013

On Thu, Dec 26, 2013 at 08:31:48PM -0800, H. Peter Anvin wrote:
> > In the end, demanding that I use a copy of the installed kernel headers,
> > when I'm passing a specific kernel source to the klibc build and that
> > kernel source is most probably not the same as the kernel that's running
> > seems like a bad idea. I want to build against a known kernel source,
> > and not expose klibc to the crazy kernels used by some gentoo users.
> Please read the *current* version of usr/klibc/README.klibc and come back.
Those instructions fail, unless my patch is included:
S is ${WORKDIR}/klibc-2.0.3
${S}/linux is a symlink to ${WORKDIR}/linux-3.12, copy of the kernel sources,

in the kernel dir: 
emake headers_install INSTALL_HDR_PATH="${WORKDIR}"/linux-headers/ 
in the klibc dir:
emake V=1 KLIBCKERNELSRC="${S}/linux/usr"  (plus the rest of the opts)

and the failure:

  x86_64-pc-linux-gnu-gcc -Wp,-MD,usr/klibc/.vsprintf.o.d  -nostdinc -iwithprefix include -I/dev/shm/portage/dev-libs/klibc-2.0.3-r1/work/klibc-2.0.3/usr/include/arch/x86_64 -Iusr/include/arch/x86_64 -I/dev/shm/portage/dev-libs/klibc-2.0.3-r1/work/klibc-2.0.3/usr/include/bits64 -Iusr/include/bits64 -I/dev/shm/portage/dev-libs/klibc-2.0.3-r1/work/klibc-2.0.3/usr/klibc/../include -Iusr/klibc/../include -I/dev/shm/portage/dev-libs/klibc-2.0.3-r1/work/klibc-2.0.3/usr/include -Iusr/include  -I/dev/shm/portage/dev-libs/klibc-2.0.3-r1/work/klibc-2.0.3/linux/usr/include  -I/dev/shm/portage/dev-libs/klibc-2.0.3-r1/work/klibc-2.0.3/linux/usr/arch/x86/include -D__KLIBC__=2 -D__KLIBC_MINOR__=0 -D_BITSIZE=64 -fno-stack-protector -fwrapv -m64 -nostdlib -W -Wall -Wno-sign-compare -Wno-unused-parameter -c -o usr/klibc/vsprintf.o usr/klibc/vsprintf.c
In file included from usr/klibc/vsnprintf.c:12:0:
/dev/shm/portage/dev-libs/klibc-2.0.3-r1/work/klibc-2.0.3/usr/klibc/../include/limits.h:43:26: fatal error: linux/limits.h: No such file or directory
 #include <linux/limits.h>

Robin Hugh Johnson
Gentoo Linux: Developer, Infrastructure Lead
E-Mail     : robbat2 at gentoo.org
GnuPG FP   : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85

More information about the klibc mailing list