Skip to contentSkip to conversation

linux-next: build failure after merge of the kbuild tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Mar 28, 2018 – Mar 29, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Masahiro,

After merging the kbuild tree, today's linux-next build (x86_64 allmodconfig) failed like this:

net/ipv4/netfilter/nf_nat_snmp_basic_main.c:57:10: fatal err
or: nf_nat_snmp_basic.asn1.h: No such file or directory

 #include "nf_nat_snmp_basic.asn1.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~

Presuambly caused by commit

9ee1b1bb8743 ("kbuild: rename *-asn1.[ch] to *.asn1.[ch]")

though I am not sure why it didn't fail yesterday.

I reverted that commit (and the following one because of a conflict) for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Stephen,

2018-03-29 6:58 GMT+09:00 Stephen Rothwell <[email protected]>:

Quoted 14 lines

Hi Masahiro,

After merging the kbuild tree, today's linux-next build (x86_64 allmodconfig) failed like this:

net/ipv4/netfilter/nf_nat_snmp_basic_main.c:57:10: fatal err
or: nf_nat_snmp_basic.asn1.h: No such file or directory

 #include "nf_nat_snmp_basic.asn1.h"
          ^~~~~~~~~~~~~~~~~~~~~~~~~~

Presuambly caused by commit

9ee1b1bb8743 ("kbuild: rename *-asn1.[ch] to *.asn1.[ch]")

Quoted 8 lines

though I am not sure why it didn't fail yesterday.

I reverted that commit (and the following one because of a conflict) for today.

--
Cheers,
Stephen Rothwell

Thanks for the report.

I think my patch is just a coincidence.

The netfilter Makefile seems weird.

I queued up the following fix-up to my kbuild tree. Hopefully linux-next will be OK tomorrow.

commit 28913ee8191adf4bbc01cbfb9ee18cca782ab141

Author: Masahiro Yamada <[email protected]>
Date:   Thu Mar 29 09:24:28 2018 +0900

netfilter: nf_nat_snmp_basic: add correct dependency to Makefile

nf_nat_snmp_basic_main.c includes a generated header, but the necessary dependency is missing in Makefile. This could cause build error in parallel building.

Remove a weird line, and add a correct one.

Fixes cc2d58634e0f ("netfilter: nf_nat_snmp_basic: use asn1

decoder library")

net/ipv4/netfilter/Makefile +1 -1
index 2dad20e..9bd19cd 100644
@@ -29,7 +29,7 @@ obj-$(CONFIG_NF_NAT_H323) += nf_nat_h323.o
 obj-$(CONFIG_NF_NAT_PPTP) += nf_nat_pptp.o
 
 nf_nat_snmp_basic-y := nf_nat_snmp_basic-asn1.o nf_nat_snmp_basic_main.o
-nf_nat_snmp_basic-y : nf_nat_snmp_basic-asn1.h nf_nat_snmp_basic-asn1.c
+$(obj)/nf_nat_snmp_basic_main.o: $(obj)/nf_nat_snmp_basic-asn1.h
 obj-$(CONFIG_NF_NAT_SNMP_BASIC) += nf_nat_snmp_basic.o
 clean-files := nf_nat_snmp_basic-asn1.c nf_nat_snmp_basic-asn1.h
 
Signature · 2 lines
Best Regards
Masahiro Yamada