On Wed, Aug 21, 2013 at 06:48:08PM +0200, maximilian attems wrote:> On Wed, Aug 21, 2013 at 06:03:41PM +0200, leroy christophe wrote: > > > > 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. >see belows proper patch:>From 20dddc47f1e92d2daeb0780e558a88279381d1ef Mon Sep 17 00:00:00 2001From: maximilian attems <max at stro.at> Date: Wed, 21 Aug 2013 22:17:47 +0200 Subject: [PATCH] Kbuild: Use topdir kernel directory path * Add usr directory to the include path for the linux kernel headers. * Adapt documentation This fixes 'make install', which fails due to headers_install target target beeing in the toplevel Linux Makefile. Reported-by: leroy christophe <christophe.leroy at c-s.fr> Signed-off-by: maximilian attems <max at stro.at> --- Makefile | 2 +- scripts/Kbuild.klibc | 2 +- usr/klibc/README.klibc | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 0a3ee69..8870bd6 100644 --- a/Makefile +++ b/Makefile @@ -136,7 +136,7 @@ help: @echo 'make V=2 [targets] 2 => give reason for rebuild of target' @echo @echo 'Sample invocation:' - @echo 'make KLIBCKERNELSRC=`pwd`/../linux/usr/' + @echo 'make KLIBCKERNELSRC=`pwd`/../linux/' ### # allow one to say make dir/file.o diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index f500d53..dcfa7d7 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -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) \ $(KLIBCARCHINCFLAGS) diff --git a/usr/klibc/README.klibc b/usr/klibc/README.klibc index 7de5fea..3575ec9 100644 --- a/usr/klibc/README.klibc +++ b/usr/klibc/README.klibc @@ -9,9 +9,8 @@ this: a) Extract a recent Linux kernel into a directory and run "make headers_install". - Now enter the klibc dir and point KLIBCKERNELSRC to the - path of the configured linux tree - "make KLIBCKERNELSRC=`pwd`/../linux/usr/". + Now enter the klibc dir and point KLIBCKERNELSRC to the path of the + configured linux tree: "make KLIBCKERNELSRC=`pwd`/../linux/". b) If you're cross-compiling, you need to set KLIBCARCH to the @@ -65,7 +64,7 @@ b) If you're cross-compiling, you need to set KLIBCARCH to the Note that even the "working" ones likely have bugs. Please report them if you run into them. -c) Try the test programs in the tests/ directory. They should run... +d) Try the test programs in the tests/ directory. They should run... Contact the klibc mailing list: -- 1.8.4.rc3
Le 21/08/2013 22:22, maximilian attems a ?crit :> On Wed, Aug 21, 2013 at 06:48:08PM +0200, maximilian attems wrote: >> On Wed, Aug 21, 2013 at 06:03:41PM +0200, leroy christophe wrote: >>> 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. >> > see belows proper patch:Any plan to include this patch ? It seems it is not yet included in 2.0.4> > From 20dddc47f1e92d2daeb0780e558a88279381d1ef Mon Sep 17 00:00:00 2001 > From: maximilian attems <max at stro.at> > Date: Wed, 21 Aug 2013 22:17:47 +0200 > Subject: [PATCH] Kbuild: Use topdir kernel directory path > > * Add usr directory to the include path for the linux kernel headers. > > * Adapt documentation > > This fixes 'make install', which fails due to headers_install target > target beeing in the toplevel Linux Makefile. > > Reported-by: leroy christophe <christophe.leroy at c-s.fr> > Signed-off-by: maximilian attems <max at stro.at> > --- > Makefile | 2 +- > scripts/Kbuild.klibc | 2 +- > usr/klibc/README.klibc | 7 +++---- > 3 files changed, 5 insertions(+), 6 deletions(-) > > diff --git a/Makefile b/Makefile > index 0a3ee69..8870bd6 100644 > --- a/Makefile > +++ b/Makefile > @@ -136,7 +136,7 @@ help: > @echo 'make V=2 [targets] 2 => give reason for rebuild of target' > @echo > @echo 'Sample invocation:' > - @echo 'make KLIBCKERNELSRC=`pwd`/../linux/usr/' > + @echo 'make KLIBCKERNELSRC=`pwd`/../linux/' > > ### > # allow one to say make dir/file.o > diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc > index f500d53..dcfa7d7 100644 > --- a/scripts/Kbuild.klibc > +++ b/scripts/Kbuild.klibc > @@ -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) \ > $(KLIBCARCHINCFLAGS) > diff --git a/usr/klibc/README.klibc b/usr/klibc/README.klibc > index 7de5fea..3575ec9 100644 > --- a/usr/klibc/README.klibc > +++ b/usr/klibc/README.klibc > @@ -9,9 +9,8 @@ this: > > a) Extract a recent Linux kernel into a directory and run > "make headers_install". > - Now enter the klibc dir and point KLIBCKERNELSRC to the > - path of the configured linux tree > - "make KLIBCKERNELSRC=`pwd`/../linux/usr/". > + Now enter the klibc dir and point KLIBCKERNELSRC to the path of the > + configured linux tree: "make KLIBCKERNELSRC=`pwd`/../linux/". > > > b) If you're cross-compiling, you need to set KLIBCARCH to the > @@ -65,7 +64,7 @@ b) If you're cross-compiling, you need to set KLIBCARCH to the > Note that even the "working" ones likely have bugs. Please report > them if you run into them. > > -c) Try the test programs in the tests/ directory. They should run... > +d) Try the test programs in the tests/ directory. They should run... > > Contact the klibc mailing list: >
Christophe Leroy
2019-Jan-21 16:31 UTC
[klibc] Fwd: Re: Build problems: klibc with Linux 3.10.7
Hi Ben Looks like the patch from Maximilian below is still missing in klibc 2.0.5 Could you please apply it ? Thanks Christophe -------- Message transf?r? -------- Sujet?: Re: [klibc] Build problems: klibc with Linux 3.10.7 Date?: Wed, 21 Aug 2013 22:22:32 +0200 De?: maximilian attems <maks at stro.at> Pour?: leroy christophe <christophe.leroy at c-s.fr> Copie ??: klibc at zytor.com On Wed, Aug 21, 2013 at 06:48:08PM +0200, maximilian attems wrote:> On Wed, Aug 21, 2013 at 06:03:41PM +0200, leroy christophe wrote: > > > > 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. >see belows proper patch: From 20dddc47f1e92d2daeb0780e558a88279381d1ef Mon Sep 17 00:00:00 2001 From: maximilian attems <max at stro.at> Date: Wed, 21 Aug 2013 22:17:47 +0200 Subject: [PATCH] Kbuild: Use topdir kernel directory path * Add usr directory to the include path for the linux kernel headers. * Adapt documentation This fixes 'make install', which fails due to headers_install target target beeing in the toplevel Linux Makefile. Reported-by: leroy christophe <christophe.leroy at c-s.fr> Signed-off-by: maximilian attems <max at stro.at> --- Makefile | 2 +- scripts/Kbuild.klibc | 2 +- usr/klibc/README.klibc | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 0a3ee69..8870bd6 100644 --- a/Makefile +++ b/Makefile @@ -136,7 +136,7 @@ help: @echo 'make V=2 [targets] 2 => give reason for rebuild of target' @echo @echo 'Sample invocation:' - @echo 'make KLIBCKERNELSRC=`pwd`/../linux/usr/' + @echo 'make KLIBCKERNELSRC=`pwd`/../linux/' ### # allow one to say make dir/file.o diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index f500d53..dcfa7d7 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -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) \ $(KLIBCARCHINCFLAGS) diff --git a/usr/klibc/README.klibc b/usr/klibc/README.klibc index 7de5fea..3575ec9 100644 --- a/usr/klibc/README.klibc +++ b/usr/klibc/README.klibc @@ -9,9 +9,8 @@ this: a) Extract a recent Linux kernel into a directory and run "make headers_install". - Now enter the klibc dir and point KLIBCKERNELSRC to the - path of the configured linux tree - "make KLIBCKERNELSRC=`pwd`/../linux/usr/". + Now enter the klibc dir and point KLIBCKERNELSRC to the path of the + configured linux tree: "make KLIBCKERNELSRC=`pwd`/../linux/". b) If you're cross-compiling, you need to set KLIBCARCH to the @@ -65,7 +64,7 @@ b) If you're cross-compiling, you need to set KLIBCARCH to the Note that even the "working" ones likely have bugs. Please report them if you run into them. -c) Try the test programs in the tests/ directory. They should run... +d) Try the test programs in the tests/ directory. They should run... Contact the klibc mailing list: -- 1.8.4.rc3
Ben Hutchings
2019-Jan-21 18:41 UTC
[klibc] Fwd: Re: Build problems: klibc with Linux 3.10.7
On Mon, 2019-01-21 at 17:31 +0100, Christophe Leroy wrote:> Hi Ben > > Looks like the patch from Maximilian below is still missing in klibc 2.0.5 > > Could you please apply it ?I wasn't aware of this patch and chose to fix this problem differently in 2.0.5. You need to put the UAPI headers in linux/include, typically using one of the following commands: * make -C ../linux headers_install && ln -s ../linux/usr linux * make -C ../linux headers_install INSTALL_HDR_PATH=$PWD/linux * ln -s /usr linux Ben. -- Ben Hutchings Klipstein's 4th Law of Prototyping and Production: A fail-safe circuit will destroy others. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: This is a digitally signed message part URL: <http://www.zytor.com/pipermail/klibc/attachments/20190121/66b916a0/attachment.sig>