kernel test robot <lkp(a)intel.com> writes:
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c3d8f220d01220a5b253e422be407d068dc65511
commit: cc8a51ca6f05ade72f7dd2624bc5f9b948e216fc kbuild: always create directories of
targets
date: 2 weeks ago
config: powerpc64-randconfig-r032-20200823 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout cc8a51ca6f05ade72f7dd2624bc5f9b948e216fc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> cc1: fatal error: opening output file
arch/powerpc/boot/dts/fsl/.mvme7100.dtb.dts.tmp: No such file or directory
compilation terminated.
I confirmed this bisect.
Which I don't understand, because that commits seems to change nothing
for out-of-tree builds, and yet it breaks out-of-tree builds.
I can fix the breakage with:
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
index 8792323707fd..efcb95c3d76a 100644
--- a/arch/powerpc/boot/Makefile
+++ b/arch/powerpc/boot/Makefile
@@ -368,6 +368,8 @@ initrd-y := $(filter-out $(image-y), $(initrd-y))
targets += $(image-y) $(initrd-y)
targets += $(foreach x, dtbImage uImage cuImage simpleImage treeImage, \
$(patsubst $(x).%, dts/%.dtb, $(filter $(x).%, $(image-y))))
+targets += $(foreach x, dtbImage uImage cuImage simpleImage treeImage, \
+ $(patsubst $(x).%, dts/fsl/%.dtb, $(filter $(x).%, $(image-y))))
$(addprefix $(obj)/, $(initrd-y)): $(obj)/ramdisk.image.gz
But I'm unclear if that's the best fix.
Masahiro any thoughts?
cheers