Makefile:681: arch/c6x/Makefile: No such file or directory

From: kernel test robot
Date: Wed Mar 03 2021 - 19:07:21 EST


Hi Arnd,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: f69d02e37a85645aa90d18cacfff36dba370f797
commit: a579fcfa8e49cc77ad59211bb18bc5004133e6a0 c6x: remove architecture
date: 6 weeks ago
config: c6x-randconfig-r036-20210303 (attached as .config)
compiler: c6x-elf-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/torvalds/linux.git/commit/?id=a579fcfa8e49cc77ad59211bb18bc5004133e6a0
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a579fcfa8e49cc77ad59211bb18bc5004133e6a0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=c6x

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

>> Makefile:681: arch/c6x/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/c6x/Makefile'.
make[1]: *** [Makefile:710: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'arch/c6x/Makefile'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
make[1]: Target '__all' not remade because of errors.
--
>> Makefile:681: arch/c6x/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/c6x/Makefile'.
make[1]: Failed to remake makefile 'arch/c6x/Makefile'.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'distclean' not remade because of errors.
--
>> Makefile:681: arch/c6x/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/c6x/Makefile'.
make[1]: Failed to remake makefile 'arch/c6x/Makefile'.
Makefile:1293: *** Headers not exportable for the c6x architecture. Stop.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'headers_install' not remade because of errors.
--
>> Makefile:681: arch/c6x/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/c6x/Makefile'.
Makefile:595: arch/c6x/Makefile: No such file or directory
make[2]: *** No rule to make target 'arch/c6x/Makefile'.
make[2]: Failed to remake makefile 'arch/c6x/Makefile'.
arch/Kconfig:10: can't open file "arch/c6x/Kconfig"
make[3]: *** [scripts/kconfig/Makefile:71: syncconfig] Error 1
make[2]: *** [Makefile:602: syncconfig] Error 2
make[1]: *** [Makefile:710: include/config/auto.conf.cmd] Error 2
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'arch/c6x/Makefile'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
Error: kernelrelease not valid - run 'make prepare' to update it
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.


vim +681 Makefile

669e06b19de8f8 Masahiro Yamada 2019-03-26 680
315bab4e972d97 Masahiro Yamada 2018-06-08 @681 include arch/$(SRCARCH)/Makefile
^1da177e4c3f41 Linus Torvalds 2005-04-16 682

:::::: The code at line 681 was first introduced by commit
:::::: 315bab4e972d9795529b764718d475492db40c0f kbuild: fix endless syncconfig in case arch Makefile sets CROSS_COMPILE

:::::: TO: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
:::::: CC: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip