Skip to contentSkip to conversation

genksyms: Include scripts/Makefile.lib

PATCH In review Guido Günther 2 participants 3 messages May 23, 2014 – Jun 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 genksyms: Include scripts/Makefile.lib

Otherwise when building out of tree like

make V=1 O=/var/scratch/kernel/

it fails like

make -f /home/agx/linux/scripts/Makefile.build obj=scripts
make -f /home/agx/linux/scripts/Makefile.build obj=scripts/genksyms
(cat /dev/null; ) > scripts/genksyms/modules.order
gcc -Wp,-MD,scripts/genksyms/.lex.lex.o.d -Iscripts/genksyms -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -I/home/agx/linux/scripts/genksyms -Iscripts/genksyms -c -o scripts/genksyms/lex.lex.o scripts/genksyms/lex.lex.c
scripts/genksyms/lex.lex.c_shipped:567:23: fatal error: parse.tab.h: No such file or directory
compilation terminated.
scripts/Makefile.host:134: recipe for target 'scripts/genksyms/lex.lex.o' failed
make[3]: *** [scripts/genksyms/lex.lex.o] Error 1
/home/agx/linux/scripts/Makefile.build:465: recipe for target 'scripts/genksyms' failed
make[2]: *** [scripts/genksyms] Error 2
/home/agx/linux/Makefile:542: recipe for target 'scripts' failed

---

I'm not sure wether this is the root cause and would be happy any input on where to dig. GNU make is version 4.0.

 scripts/genksyms/Makefile | 1 +
 1 file changed, 1 insertion(+)
scripts/genksyms/Makefile +1 -0
index aca33b9..1d86d14 100644
@@ -1,3 +1,4 @@
+include scripts/Makefile.lib
 
 hostprogs-y	:= genksyms
 always		:= $(hostprogs-y)
Signature · 1 line
2.0.0.rc0
#1 lore raw

Dne 23.5.2014 15:15, Guido Günther napsal(a):

Quoted 32 lines

Otherwise when building out of tree like

make V=1 O=/var/scratch/kernel/

it fails like

make -f /home/agx/linux/scripts/Makefile.build obj=scripts
make -f /home/agx/linux/scripts/Makefile.build obj=scripts/genksyms
(cat /dev/null; ) > scripts/genksyms/modules.order
gcc -Wp,-MD,scripts/genksyms/.lex.lex.o.d -Iscripts/genksyms -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -I/home/agx/linux/scripts/genksyms -Iscripts/genksyms -c -o scripts/genksyms/lex.lex.o scripts/genksyms/lex.lex.c
scripts/genksyms/lex.lex.c_shipped:567:23: fatal error: parse.tab.h: No such file or directory
compilation terminated.
scripts/Makefile.host:134: recipe for target 'scripts/genksyms/lex.lex.o' failed
make[3]: *** [scripts/genksyms/lex.lex.o] Error 1
/home/agx/linux/scripts/Makefile.build:465: recipe for target 'scripts/genksyms' failed
make[2]: *** [scripts/genksyms] Error 2
/home/agx/linux/Makefile:542: recipe for target 'scripts' failed

---

I'm not sure wether this is the root cause and would be happy any input on where to dig. GNU make is version 4.0.

 scripts/genksyms/Makefile | 1 +
 1 file changed, 1 insertion(+)
scripts/genksyms/Makefile +0 -0
index aca33b9..1d86d14 100644

scripts/genksyms/Makefile line 4

Quoted 4 lines
scripts/genksyms/Makefile +1 -0
@@ -1,3 +1,4 @@
+include scripts/Makefile.lib
 
 hostprogs-y	:= genksyms
 always		:= $(hostprogs-y)

scripts/Makefile.lib is included by the Makefile that includes scripts/genksyms/Makefile. So this is certainly not the right fix. With which kernel version are you seeing this and what are the exact steps to reproduce? Also please attach the full log leading to the failure. Needless to say, I can't reproduce it.

Thanks,
Michal

#2 lore raw
Quoted 35 lines · Michal Marek

Dne 23.5.2014 15:15, Guido Günther napsal(a):

Quoted 34 lines

Otherwise when building out of tree like

make V=1 O=/var/scratch/kernel/

it fails like

make -f /home/agx/linux/scripts/Makefile.build obj=scripts
make -f /home/agx/linux/scripts/Makefile.build obj=scripts/genksyms
(cat /dev/null; ) > scripts/genksyms/modules.order
gcc -Wp,-MD,scripts/genksyms/.lex.lex.o.d -Iscripts/genksyms -Wall -Wmissing-prototypes -Wstrict-prototypes -O2 -fomit-frame-pointer -I/home/agx/linux/scripts/genksyms -Iscripts/genksyms -c -o scripts/genksyms/lex.lex.o scripts/genksyms/lex.lex.c
scripts/genksyms/lex.lex.c_shipped:567:23: fatal error: parse.tab.h: No such file or directory
compilation terminated.
scripts/Makefile.host:134: recipe for target 'scripts/genksyms/lex.lex.o' failed
make[3]: *** [scripts/genksyms/lex.lex.o] Error 1
/home/agx/linux/scripts/Makefile.build:465: recipe for target 'scripts/genksyms' failed
make[2]: *** [scripts/genksyms] Error 2
/home/agx/linux/Makefile:542: recipe for target 'scripts' failed

---

I'm not sure wether this is the root cause and would be happy any input on where to dig. GNU make is version 4.0.

 scripts/genksyms/Makefile | 1 +
 1 file changed, 1 insertion(+)
scripts/genksyms/Makefile +1 -0
index aca33b9..1d86d14 100644
@@ -1,3 +1,4 @@
+include scripts/Makefile.lib
 
Quoted 8 lines

scripts/genksyms/Makefile line 4

Quoted 2 lines
scripts/genksyms/Makefile +0 -0
 hostprogs-y	:= genksyms
 always		:= $(hostprogs-y)

scripts/Makefile.lib is included by the Makefile that includes scripts/genksyms/Makefile. So this is certainly not the right fix. With which kernel version are you seeing this and what are the exact steps to reproduce? Also please attach the full log leading to the failure. Needless to say, I can't reproduce it.

Hmm....this was v3.15-rc6 but I can't reproduce this either with a current Debian sid. In case this pops up again I'll send the full log. Thanks,
-- Guido