../lib/gcc/loongarch64-linux/13.2.0/plugin/include/config/loongarch/loongarch-opts.h:31:10: fatal error: loongarch-def.h: No such file or directory

From: kernel test robot
Date: Sun Sep 10 2023 - 13:35:51 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 535a265d7f0dd50d8c3a4f8b4f3a452d56bd160f
commit: 2363088eba2ecccfb643725e4864af73c4226a04 LoongArch: Allow building with kcov coverage
date: 4 days ago
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20230911/202309110109.rbZxQdD6-lkp@xxxxxxxxx/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230911/202309110109.rbZxQdD6-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309110109.rbZxQdD6-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from ../lib/gcc/loongarch64-linux/13.2.0/plugin/include/options.h:8,
from ../lib/gcc/loongarch64-linux/13.2.0/plugin/include/tm.h:46,
from ../lib/gcc/loongarch64-linux/13.2.0/plugin/include/backend.h:28,
from ../lib/gcc/loongarch64-linux/13.2.0/plugin/include/gcc-plugin.h:30,
from scripts/gcc-plugins/gcc-common.h:7,
from scripts/gcc-plugins/randomize_layout_plugin.c:19:
>> ../lib/gcc/loongarch64-linux/13.2.0/plugin/include/config/loongarch/loongarch-opts.h:31:10: fatal error: loongarch-def.h: No such file or directory
31 | #include "loongarch-def.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../lib/gcc/loongarch64-linux/13.2.0/plugin/include/options.h:8,
from ../lib/gcc/loongarch64-linux/13.2.0/plugin/include/tm.h:46,
from ../lib/gcc/loongarch64-linux/13.2.0/plugin/include/backend.h:28,
from ../lib/gcc/loongarch64-linux/13.2.0/plugin/include/gcc-plugin.h:30,
from scripts/gcc-plugins/gcc-common.h:7,
from scripts/gcc-plugins/latent_entropy_plugin.c:78:
>> ../lib/gcc/loongarch64-linux/13.2.0/plugin/include/config/loongarch/loongarch-opts.h:31:10: fatal error: loongarch-def.h: No such file or directory
31 | #include "loongarch-def.h"
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [scripts/gcc-plugins/Makefile:54: scripts/gcc-plugins/randomize_layout_plugin.so] Error 1
make[4]: *** [scripts/gcc-plugins/Makefile:54: scripts/gcc-plugins/latent_entropy_plugin.so] Error 1
make[4]: Target 'scripts/gcc-plugins/' not remade because of errors.
make[3]: *** [scripts/Makefile.build:480: scripts/gcc-plugins] Error 2
make[3]: Target 'scripts/' not remade because of errors.
make[2]: *** [Makefile:1271: scripts] Error 2
make[2]: Target 'prepare' not remade because of errors.
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:234: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki