GCC 6 support

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

GCC 6 support

Postby psturm » Wed Mar 02, 2016 3:37 pm

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#
psturm
 
Posts: 2
Joined: Tue Mar 01, 2016 6:24 pm

Re: GCC 6 support

Postby PaX Team » Wed Mar 02, 2016 8:40 pm

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.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: GCC 6 support

Postby psturm » Fri Mar 04, 2016 4:03 pm

I just tried the patch posted on 3/3/2016 and it still failed. Same message about plugins not being supported.
psturm
 
Posts: 2
Joined: Tue Mar 01, 2016 6:24 pm

Re: GCC 6 support

Postby PaX Team » Fri Mar 04, 2016 10:16 pm

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.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm


Return to grsecurity support