Hi Masahiro, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git testing3 head: e04a6f917656dc5aab2a15a6bc3a8debb158e3d2 commit: e04a6f917656dc5aab2a15a6bc3a8debb158e3d2 [3/3] kbuild: prefix $(srctree)/ to included Makefiles in the source tree config: sh-rts7751r2d1_defconfig (attached as .config) compiler: sh4-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 # https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/commit/?id=e04a6f917656dc5aab2a15a6bc3a8debb158e3d2 git remote add kbuild https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git git fetch --no-tags kbuild testing3 git checkout e04a6f917656dc5aab2a15a6bc3a8debb158e3d2 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sh If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All errors (new ones prefixed by >>): scripts/Makefile.clean:14: Documentation/Makefile: No such file or directory make[2]: *** No rule to make target 'Documentation/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'Documentation/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_Documentation] Error 2 >> scripts/Makefile.clean:14: arch/sh/boards/Makefile: No such file or directory >> make[2]: *** No rule to make target 'arch/sh/boards/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'arch/sh/boards/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_arch/sh/boards] Error 2 >> scripts/Makefile.clean:14: arch/sh/boot/dts/Makefile: No such file or directory >> make[2]: *** No rule to make target 'arch/sh/boot/dts/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'arch/sh/boot/dts/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_arch/sh/boot/dts] Error 2 >> scripts/Makefile.clean:14: arch/sh/cchips/hd6446x/Makefile: No such file or directory >> make[2]: *** No rule to make target 'arch/sh/cchips/hd6446x/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'arch/sh/cchips/hd6446x/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_arch/sh/cchips/hd6446x] Error 2 >> scripts/Makefile.clean:14: arch/sh/drivers/Makefile: No such file or directory >> make[2]: *** No rule to make target 'arch/sh/drivers/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'arch/sh/drivers/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_arch/sh/drivers] Error 2 >> scripts/Makefile.clean:14: arch/sh/kernel/Makefile: No such file or directory >> make[2]: *** No rule to make target 'arch/sh/kernel/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'arch/sh/kernel/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_arch/sh/kernel] Error 2 >> scripts/Makefile.clean:14: arch/sh/lib/Makefile: No such file or directory >> make[2]: *** No rule to make target 'arch/sh/lib/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'arch/sh/lib/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_arch/sh/lib] Error 2 >> scripts/Makefile.clean:14: arch/sh/math-emu/Makefile: No such file or directory >> make[2]: *** No rule to make target 'arch/sh/math-emu/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'arch/sh/math-emu/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_arch/sh/math-emu] Error 2 >> scripts/Makefile.clean:14: arch/sh/mm/Makefile: No such file or directory >> make[2]: *** No rule to make target 'arch/sh/mm/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'arch/sh/mm/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_arch/sh/mm] Error 2 >> scripts/Makefile.clean:14: arch/sh/oprofile/Makefile: No such file or directory >> make[2]: *** No rule to make target 'arch/sh/oprofile/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'arch/sh/oprofile/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_arch/sh/oprofile] Error 2 scripts/Makefile.clean:14: block/Makefile: No such file or directory make[2]: *** No rule to make target 'block/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'block/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_block] Error 2 scripts/Makefile.clean:14: certs/Makefile: No such file or directory make[2]: *** No rule to make target 'certs/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'certs/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_certs] Error 2 scripts/Makefile.clean:14: crypto/Makefile: No such file or directory make[2]: *** No rule to make target 'crypto/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'crypto/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_crypto] Error 2 scripts/Makefile.clean:14: drivers/Makefile: No such file or directory make[2]: *** No rule to make target 'drivers/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'drivers/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_drivers] Error 2 scripts/Makefile.clean:14: fs/Makefile: No such file or directory make[2]: *** No rule to make target 'fs/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'fs/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_fs] Error 2 scripts/Makefile.clean:14: init/Makefile: No such file or directory make[2]: *** No rule to make target 'init/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'init/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_init] Error 2 scripts/Makefile.clean:14: ipc/Makefile: No such file or directory make[2]: *** No rule to make target 'ipc/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'ipc/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_ipc] Error 2 scripts/Makefile.clean:14: kernel/Makefile: No such file or directory make[2]: *** No rule to make target 'kernel/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'kernel/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_kernel] Error 2 scripts/Makefile.clean:14: lib/Makefile: No such file or directory make[2]: *** No rule to make target 'lib/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'lib/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_lib] Error 2 scripts/Makefile.clean:14: mm/Makefile: No such file or directory make[2]: *** No rule to make target 'mm/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'mm/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_mm] Error 2 scripts/Makefile.clean:14: net/Makefile: No such file or directory make[2]: *** No rule to make target 'net/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'net/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_net] Error 2 scripts/Makefile.clean:14: samples/Makefile: No such file or directory make[2]: *** No rule to make target 'samples/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'samples/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_samples] Error 2 scripts/Makefile.clean:14: security/Makefile: No such file or directory make[2]: *** No rule to make target 'security/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'security/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_security] Error 2 scripts/Makefile.clean:14: sound/Makefile: No such file or directory make[2]: *** No rule to make target 'sound/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'sound/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_sound] Error 2 scripts/Makefile.clean:14: usr/Makefile: No such file or directory make[2]: *** No rule to make target 'usr/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'usr/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_usr] Error 2 scripts/Makefile.clean:14: virt/Makefile: No such file or directory make[2]: *** No rule to make target 'virt/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'virt/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1803: _clean_virt] Error 2 >> scripts/Makefile.clean:14: arch/sh/boot/Makefile: No such file or directory >> make[2]: *** No rule to make target 'arch/sh/boot/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'arch/sh/boot/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [arch/sh/Makefile:208: archclean] Error 2 scripts/Makefile.clean:14: scripts/Makefile: No such file or directory make[2]: *** No rule to make target 'scripts/Makefile'. scripts/Makefile.clean:11: scripts/Kbuild.include: No such file or directory make[2]: *** No rule to make target 'scripts/Kbuild.include'. make[2]: Failed to remake makefile 'scripts/Makefile'. make[2]: Failed to remake makefile 'scripts/Kbuild.include'. make[1]: *** [Makefile:1498: _mrproper_scripts] Error 2 make[1]: Target 'distclean' not remade because of errors. make: *** [Makefile:176: __sub-make] Error 2 make: Target 'distclean' not remade because of errors. vim +14 scripts/Makefile.clean 2315c6e4227815 Sam Ravnborg 2005-07-25 12 2a691470345a00 Sam Ravnborg 2005-07-25 13 # The filename Kbuild has precedence over Makefile 90b7ccac106945 Masahiro Yamada 2021-01-21 @14 include $(if $(wildcard $(src)/Kbuild),$(src)/Kbuild,$(src)/Makefile) ^1da177e4c3f41 Linus Torvalds 2005-04-16 15 :::::: The code at line 14 was first introduced by commit :::::: 90b7ccac106945e95f3d6c0d74333ca8f5ee9a12 [build test] kbuild: $(srctree)/$(src) -> $(src) :::::: TO: Masahiro Yamada <masahiroy@xxxxxxxxxx> :::::: CC: Masahiro Yamada <masahiroy@xxxxxxxxxx> --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip