fedora 20: gcc installation does not support plugins

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

fedora 20: gcc installation does not support plugins

Postby joe » Wed Jun 18, 2014 2:15 pm

Hi,

I'm having the same issue as this one here https://forums.grsecurity.net/viewtopic.php?f=3&t=3484

I'm using Fedora 20.

Code: Select all
Your gcc installation does not support plugins.  If the necessary headers for plugin support are missing, they should be installed.  On Debian, apt-get install gcc-<ver>-plugin-dev.  If you choose to ignore this error and lessen the improvements provided by this patch, re-run make with the DISABLE_PAX_PLUGINS=y argument..  Stop.


I tried to collect all information requested in that other thread for debugging:

Code: Select all
gcc -E -shared - -o /dev/null -I`gcc -print-file-name=plugin`/include 2>&1 <<EOF
> #include "gcc-plugin.h"
> #include "tree.h"
> #include "tm.h"
> #include "rtl.h"
> #ifdef ENABLE_BUILD_WITH_CXX
> #warning g++
> #else
> #warning gcc
> #endif
> EOF


output:
Code: Select all
<stdin>:8:2: warning: #warning gcc [-Wcpp]



Code: Select all
rpm -qa gcc*
gcc-4.8.2-7.fc20.x86_64
gcc-plugin-devel-4.8.2-7.fc20.x86_64


Code: Select all
bash ./scripts/gcc-plugin.sh gcc g++ gcc
g++



Do you have any hints for me on how to find out why it fails or how this issue can be fixed?

thanks in advance!
joe
 
Posts: 17
Joined: Tue Jun 17, 2014 7:09 pm

Re: fedora 20: gcc installation does not support plugins

Postby PaX Team » Wed Jun 18, 2014 4:29 pm

which grsec version are you using? also try to run bash -x scripts/gcc-plugin.sh g++ g++ gcc and post me the output please.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Re: fedora 20: gcc installation does not support plugins

Postby joe » Wed Jun 18, 2014 4:51 pm

sorry forgot about the grsec version:
grsecurity-3.0-3.14.6-201406101411

[ updated: removed irrelevant cmd output ]
Last edited by joe on Wed Jun 18, 2014 5:00 pm, edited 1 time in total.
joe
 
Posts: 17
Joined: Tue Jun 17, 2014 7:09 pm

Re: fedora 20: gcc installation does not support plugins

Postby joe » Wed Jun 18, 2014 4:59 pm

the previous post did not contain the actual requested command, but here we go:

Code: Select all
bash -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-redhat-linux/4.8.2/plugin
++ g++ -E -shared - -o /dev/null -Iscripts/../tools/gcc -I/usr/lib/gcc/x86_64-redhat-linux/4.8.2/plugin/include
+ plugincc='scripts/gcc-plugin.sh: line 12: g++: command not found'
+ '[' 127 -eq 0 ']'
joe
 
Posts: 17
Joined: Tue Jun 17, 2014 7:09 pm

Re: fedora 20: gcc installation does not support plugins

Postby joe » Wed Jun 18, 2014 5:06 pm

installing it fixed the issue:

Code: Select all
yum install gcc-c++


thank you!!
joe
 
Posts: 17
Joined: Tue Jun 17, 2014 7:09 pm

Re: fedora 20: gcc installation does not support plugins

Postby PaX Team » Wed Jun 18, 2014 5:22 pm

yes, from gcc 4.8 on you need g++ (or any capable c++ compiler, clang works too) to compile gcc plugins as gcc itself is compiled as c++ code (gcc 4.7 supports both ways, most distros opted for c++ mode already at that time, the gcc-plugin.sh scripts detects this too).
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm


Return to grsecurity support