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

From: Stephen Rothwell
Date: Fri Sep 09 2022 - 02:14:03 EST


Hi,

On Fri, 9 Sep 2022 15:24:53 +1000 Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:
>
> On Fri, 9 Sep 2022 14:10:06 +0900 Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote:
> >
> > Hmm, I am testing allmodconfig in my tree,
> > but it is not reproducible so far.
> >
> > Do you have any more hint?
> > (which commit exactly?, and what build command did you use? etc.)
>
> I was trying your top of tree commit
>
> 99ea8da56dca "kbuild: use objtool-args-y to clean up objtool arguments"
>
> (merged with Linus' tree and some fix patches).
>
> I am doing a cross build with an out of tree object directory:
>
> $ make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- O=../x86_64_allmodconfig -s allmodconfig
> $ make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- O=../x86_64_allmodconfig -j100 -O -s

So it seems to be related to doing an incremental build. I have just
built my "pending-fixes" branch (which I have pushed out to the
linux-next tree on git.kernel.org), then merged your tree and then
built again:

$ make ARCH=x86_64 CROSS_COMPILE=x86_64-linux-gnu- O=../obj -j15 -O
make[1]: Entering directory '/home/sfr/kernels/obj'
GEN Makefile
make[1]: Leaving directory '/home/sfr/kernels/obj'
make[1]: Entering directory '/home/sfr/kernels/obj'
UPD include/generated/compile.h
make[1]: Leaving directory '/home/sfr/kernels/obj'
DESCEND objtool
make[2]: *** No rule to make target 'objtool/objtool'. Stop.
make[1]: *** [/home/sfr/kernels/test/Makefile:1361: tools/objtool/objtool] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:222: __sub-make] Error 2

(I actually did this on my laptop rather than my build machine, but the
compiles are still cross compiles - just from arm64 instead of
powerpc64le).
--
Cheers,
Stephen Rothwell

Attachment: pgpE0bzNqJm8d.pgp
Description: OpenPGP digital signature