Page 1 of 1

GCC 6 support

PostPosted: Wed Mar 02, 2016 3:37 pm
by psturm
I am trying to build the grsecurity-patched 4.3.3 kernel using the latest GCC 6 weekly snapshot. I get the error message that my compiler does not support plugins. I ran the plugin.sh and here is the output. Any idea what I need to do?

Code: Select all
bash-4.3# sh -x scripts/gcc-plugin.sh g++ g++ gcc
++ dirname scripts/gcc-plugin.sh
+ srctree=scripts
++ gcc -print-file-name=plugin
+ gccplugins_dir=/usr/lib/gcc/x86_64-pc-linux-gnu/6.0.0/plugin
++ g++ -E -x c++ - -o /dev/null -Iscripts/../tools/gcc -I/usr/lib/gcc/x86_64-pc-linux-gnu/6.0.0/plugin/include
+ plugincc='<stdin>:3:2: warning: #warning g++ CXX [-Wcpp]'
+ '[' 0 -ne 0 ']'
+ case "$plugincc" in
++ g++ -c -x c++ -std=gnu++98 - -fsyntax-only -Iscripts/../tools/gcc -I/usr/lib/gcc/x86_64-pc-linux-gnu/6.0.0/plugin/include
+ plugincc='In file included from <stdin>:1:0:
scripts/../tools/gcc/gcc-common.h:163:38: error: variable or field '\''debug_gimple_stmt'\'' declared void
 static inline void debug_gimple_stmt(const_gimple s)
                                      ^~~~~~~~~~~~
scripts/../tools/gcc/gcc-common.h:163:38: error: '\''const_gimple'\'' was not declared in this scope'
+ '[' 1 -eq 0 ']'
+ exit 1
bash-4.3#

Re: GCC 6 support

PostPosted: Wed Mar 02, 2016 8:40 pm
by PaX Team
hmm, looks like i forgot to release some of the gcc 6 fixes for gcc-common.h, will be in the next patch. btw, you no longer need to run the script by hand, on error the makefile should rerun it for you with the output visible on stderr.

Re: GCC 6 support

PostPosted: Fri Mar 04, 2016 4:03 pm
by psturm
I just tried the patch posted on 3/3/2016 and it still failed. Same message about plugins not being supported.

Re: GCC 6 support

PostPosted: Fri Mar 04, 2016 10:16 pm
by PaX Team
that'd be because *i* didn't release my next patch at the time ;) but it's out now and will soon be in grsec.