GCC 6 support
Posted: 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#