Skip to contentSkip to conversation

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

DISCUSSION Stephen Rothwell 2 participants 3 messages Jul 16, 2019

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

Hi all,

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

make[1]: *** No rule to make target 'modules.order', needed by 'autoksyms_recursive'. Stop.

Starting with commit

  656c0ac3cb4b ("kbuild: modpost: read modules.order instead of $(MODVERDIR)/*.mod")

i.e. after reverting just:

25a55e249bc0 Revert "kbuild: create *.mod with full directory path and remove MODVERDIR" 15657d9eceb6 Revert "kbuild: remove the first line of *.mod files" 8c21f4122839 Revert "kbuild: remove 'prepare1' target"
35bc41d44d2d Revert "kbuild: split out *.mod out of {single,multi}-used-m rules"

I get

cat: modules.order: No such file or directory

near the end of the allnoconfig build (but it does not fail).

and when I remove 25a55e249bc0 i.e. stop reverting

0539f970a842 ("kbuild: create *.mod with full directory path and remove MODVERDIR")

the build fails.

So, for today I have reverted these 4 commits:

56dce8121e97 ("kbuild: split out *.mod out of {single,multi}-used-m rules") fbe0b5eb7890 ("kbuild: remove 'prepare1' target")
008fa222d268 ("kbuild: remove the first line of *.mod files") 0539f970a842 ("kbuild: create *.mod with full directory path and remove MODVERDIR")

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

Hi Stephen,

Quoted 29 lines · Stephen Rothwell

Hi all,

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

make[1]: *** No rule to make target 'modules.order', needed by 'autoksyms_recursive'. Stop.

Starting with commit

  656c0ac3cb4b ("kbuild: modpost: read modules.order instead of $(MODVERDIR)/*.mod")

i.e. after reverting just:

25a55e249bc0 Revert "kbuild: create *.mod with full directory path and remove MODVERDIR" 15657d9eceb6 Revert "kbuild: remove the first line of *.mod files" 8c21f4122839 Revert "kbuild: remove 'prepare1' target"
35bc41d44d2d Revert "kbuild: split out *.mod out of {single,multi}-used-m rules"

I get

cat: modules.order: No such file or directory

near the end of the allnoconfig build (but it does not fail).

and when I remove 25a55e249bc0 i.e. stop reverting

0539f970a842 ("kbuild: create *.mod with full directory path and remove MODVERDIR")

Quoted 9 lines

the build fails.

So, for today I have reverted these 4 commits:

56dce8121e97 ("kbuild: split out *.mod out of {single,multi}-used-m rules") fbe0b5eb7890 ("kbuild: remove 'prepare1' target")
008fa222d268 ("kbuild: remove the first line of *.mod files") 0539f970a842 ("kbuild: create *.mod with full directory path and remove MODVERDIR")

Ugh, sorry for the breakage.

For the build error, I will fix it as follows for tomorrow's linux-next:

Makefile +0 -0
index bfb08cc647f8..5f3daca90862 100644
@@ -1028,8 +1028,8 @@ vmlinux-deps := $(KBUILD_LDS)

$(KBUILD_VMLINUX_OBJS) $(KBUILD_VMLINUX_LIBS)

# Recurse until adjust_autoksyms.sh is satisfied PHONY += autoksyms_recursive
-autoksyms_recursive: $(vmlinux-deps) modules.order
ifdef CONFIG_TRIM_UNUSED_KSYMS
+autoksyms_recursive: $(vmlinux-deps) modules.order

        $(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh \
          "$(MAKE) -f $(srctree)/Makefile vmlinux"

endif

For the warning, I will fix it as follows for tomorrow's linux-next:

scripts/Makefile.modpost +2 -0
index 3e229d4f4d72..6b19c1a4eae5 100644
@@ -64,7 +64,9 @@ modulesymfile := $(firstword $(KBUILD_EXTMOD))/Module.symvers
 modorder := $(if $(KBUILD_EXTMOD),$(KBUILD_EXTMOD)/)modules.order
 
 # Step 1), find all modules listed in modules.order
+ifdef CONFIG_MODULES
 modules := $(sort $(shell cat $(modorder)))
+endif
 
 # Stop after building .o files if NOFINAL is set. Makes compile tests quicker
 _modpost: $(if $(KBUILD_MODPOST_NOFINAL), $(modules:.ko:.o),$(modules))

Thanks!

Signature · 2 lines
Best Regards
Masahiro Yamada
#2 lore raw

Hi Masahiro,

Quoted 2 lines · On Tue, 16 Jul 2019 13:59:51 +0900 Masahiro Yamada…

For the build error, I will fix it as follows for tomorrow's linux-next:

Thanks for the quick response.

Signature · 2 lines
Cheers,
Stephen Rothwell