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

From: Stephen Rothwell <[email-masked]>
Date: Fri, 9 Sep 2022 18:26:19 +1000

Hi,

On Fri, 9 Sep 2022 15:48:55 +0900 Masahiro Yamada <[email-masked]> wrote:
>
> > $ 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'  
> 
> 
> Weird 'Entering/Leaving directory' logs.

That is because I pass -O to make.

Without -O, I get:

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

-- 
Cheers,
Stephen Rothwell