[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#904379: problem with get_identifier_with_length



Matthias Klose (doko@debian.org) wrote on Tue, Jul 24, 2018 at 01:02:24AM -03:
> Control: tags -1 + moreinfo
> 
> On 23.07.2018 20:10, Carlos Carvalho wrote:
> > Package: gcc-8-plugin-dev
> > Version: 8.1.0-12
> > 
> > I get this when I try to compile the 4.14.57 kernel:
> > 
> >   CHK     include/config/kernel.release
> >   CHK     include/generated/uapi/linux/version.h
> >   DESCEND  objtool
> >   CHK     include/generated/utsrelease.h
> > In file included from ./scripts/gcc-plugins/gcc-common.h:101,
> >                  from <stdin>:1:
> > /usr/lib/gcc/x86_64-linux-gnu/8/plugin/include/attribs.h: In function ‘tree_node* canonicalize_attr_name(tree)’:
> > /usr/lib/gcc/x86_64-linux-gnu/8/plugin/include/attribs.h:118:12: error: ‘get_identifier_with_length’ was not declared in this scope
> >      return get_identifier_with_length (s + 2, l - 4);
> >             ^~~~~~~~~~~~~~~~~~~~~~~~~~
> > /usr/lib/gcc/x86_64-linux-gnu/8/plugin/include/attribs.h:118:12: note: suggested alternative: ‘get_attr_min_length’
> >      return get_identifier_with_length (s + 2, l - 4);
> >             ^~~~~~~~~~~~~~~~~~~~~~~~~~
> >             get_attr_min_length
> > Cannot use CONFIG_GCC_PLUGINS: your gcc installation does not support plugins, perhaps the necessary headers are missing?
> > make: *** [scripts/Makefile.gcc-plugins:70: gcc-plugins-check] Error 1
> > 
> > Any ideas?
> 
> no. Please provide the source, and the command line options used.

All that I know is that it's the linux kernel 4.14.57. I could provide my
config but I don't know how to proceed. It also happens with 4.14.58. The
relevant portion of my config is

CONFIG_HAVE_GCC_PLUGINS=y
CONFIG_GCC_PLUGINS=y
# CONFIG_GCC_PLUGIN_CYC_COMPLEXITY is not set
# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not set
CONFIG_GCC_PLUGIN_STRUCTLEAK=y
CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL=y
# CONFIG_GCC_PLUGIN_STRUCTLEAK_VERBOSE is not set
CONFIG_GCC_PLUGIN_RANDSTRUCT=y
CONFIG_GCC_PLUGIN_RANDSTRUCT_PERFORMANCE=y

because it stops in the tests to see if gcc plugins are supported.

It could be an error in the kernel. I tried 4.17.10 and compilation worked.


Reply to: