[linux-stable-rc:linux-4.9.y 2197/2294] /opt/cross/gcc-10.3.0-nolibc/s390-linux/bin/../lib/gcc/s390-linux/10.3.0/plugin/include/attribs.h:125:12: error: 'get_identifier_with_length' was not declared in this scope

From: kernel test robot
Date: Sun Jul 18 2021 - 11:37:05 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.9.y
head: f44373a3e7a37999a7506c79891abbb8f1318471
commit: aeeb58019ef157459f561b5e122064a058e862f2 [2197/2294] init/Kconfig: make COMPILE_TEST depend on !S390
config: s390-randconfig-r003-20210718 (attached as .config)
compiler: s390-linux-gcc (GCC) 10.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/stable/linux-stable-rc.git/commit/?id=aeeb58019ef157459f561b5e122064a058e862f2
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.9.y
git checkout aeeb58019ef157459f561b5e122064a058e862f2
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross O=build_dir ARCH=s390 prepare

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

All errors (new ones prefixed by >>):

In file included from scripts/gcc-plugins/gcc-common.h:89,
from <stdin>:1:
/opt/cross/gcc-10.3.0-nolibc/s390-linux/bin/../lib/gcc/s390-linux/10.3.0/plugin/include/attribs.h: In function 'tree_node* canonicalize_attr_name(tree)':
>> /opt/cross/gcc-10.3.0-nolibc/s390-linux/bin/../lib/gcc/s390-linux/10.3.0/plugin/include/attribs.h:125:12: error: 'get_identifier_with_length' was not declared in this scope
125 | return get_identifier_with_length (s + 2, l - 4);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from scripts/gcc-plugins/gcc-common.h:89,
from <stdin>:1:
/opt/cross/gcc-10.3.0-nolibc/s390-linux/bin/../lib/gcc/s390-linux/10.3.0/plugin/include/attribs.h: In function 'tree_node* canonicalize_attr_name(tree)':
>> /opt/cross/gcc-10.3.0-nolibc/s390-linux/bin/../lib/gcc/s390-linux/10.3.0/plugin/include/attribs.h:125:12: error: 'get_identifier_with_length' was not declared in this scope
125 | return get_identifier_with_length (s + 2, l - 4);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Cannot use CONFIG_GCC_PLUGINS: your gcc installation does not support plugins, perhaps the necessary headers are missing?
make[1]: *** [scripts/Makefile.gcc-plugins:52: gcc-plugins-check] Error 1
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:152: sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
warning: (KCOV) selects GCC_PLUGINS which has unmet direct dependencies (HAVE_GCC_PLUGINS && !COMPILE_TEST)
warning: (KCOV) selects GCC_PLUGINS which has unmet direct dependencies (HAVE_GCC_PLUGINS && !COMPILE_TEST)
In file included from scripts/gcc-plugins/gcc-common.h:89,
from <stdin>:1:
/opt/cross/gcc-10.3.0-nolibc/s390-linux/bin/../lib/gcc/s390-linux/10.3.0/plugin/include/attribs.h: In function 'tree_node* canonicalize_attr_name(tree)':
>> /opt/cross/gcc-10.3.0-nolibc/s390-linux/bin/../lib/gcc/s390-linux/10.3.0/plugin/include/attribs.h:125:12: error: 'get_identifier_with_length' was not declared in this scope
125 | return get_identifier_with_length (s + 2, l - 4);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
Cannot use CONFIG_GCC_PLUGINS: your gcc installation does not support plugins, perhaps the necessary headers are missing?
make[1]: *** [scripts/Makefile.gcc-plugins:52: gcc-plugins-check] Error 1
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:152: sub-make] Error 2
make: Target 'prepare' not remade because of errors.

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

Attachment: .config.gz
Description: application/gzip