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

From: Stephen Rothwell <[email-masked]>
Date: Thu, 26 Aug 2021 19:13:30 +1000

Hi all,

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

make[2]: *** No rule to make target 'scripts/mod/empty.o', needed by '__build'.

Caused by commit

  624a912f84bc ("kbuild: detect objtool changes correctly and remove .SECONDEXPANSION")

(at least, reverting that commit fixes it)

I use a separate object directory and, in this case, it is newly created.

A build with V=1 and -s removed (and no -j) gives this around the
failure:

make -f /home/sfr/next/next/scripts/Makefile.build obj=scripts/mod
make[2]: *** No rule to make target 'scripts/mod/empty.o', needed by '__build'.  Stop.
make[1]: *** [/home/sfr/next/next/Makefile:1309: prepare0] Error 2

I have reverted that commit for today.
-- 
Cheers,
Stephen Rothwell