[klibc] Build problems: klibc with Linux 3.10.7
maks at stro.at
Wed Aug 21 09:48:08 PDT 2013
On Wed, Aug 21, 2013 at 06:03:41PM +0200, leroy christophe wrote:
> >>>>A) cd ~/src/linux
> >>>> make defconfig
> >>>> make headers_install
> >>>>B) cd ~/src/klibc
> >>>> make KLIBCKERNELSRC=`pwd`/../linux/usr/
> >>>Sorry, but without my patchs, 'make install' fails with the
> >>>following message (complete messages file attached)
> >>># make install V=1 KLIBCARCH=ppc CROSS_COMPILE=ppc-linux-
> >>have you done step A previously?
> >>It seems you are not compiling against the preconfigured linux headers
> >>otherwise the headers_install wouldn't fail.
> >Yes, step A is done.
> >But the Makefile in src/linux/usr doesn't contain any target
> >`headers_install' so the below command with -C to src/linux/usr
> >make -C /root/gen/trunk/knl/linux/usr/ ARCH=ppc
> >INSTALL_HDR_PATH=/tmp/klibc-install/lib/klibc/ headers_install
> >make: *** No rule to make target `headers_install'. Stop.
> >make: *** [header] Error 2
> Note that step B is working well.
> It is step C, the 'make install', which fails.
right, it is the toplevel Makefile one needs to poke for the target.
how about belows diff, and changing step a) too
now, the right Makefile should be called on the install step c.
diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
index f500d53..dcfa7d7 100644
@@ -113,7 +113,7 @@ KLIBCCPPFLAGS := -nostdinc -iwithprefix include \
# kernel include paths
KLIBCKERNELSRC ?= $(srctree)
KLIBCKERNELOBJ ?= $(objtree)
-KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/include \
+KLIBCCPPFLAGS += -I$(KLIBCKERNELSRC)/usr/include \
$(if $(KBUILD_SRC),-I$(KLIBCKERNELOBJ)/include2 \
-I$(KLIBCKERNELOBJ)/include -I$(srctree)/include) \
More information about the klibc