Can't compile kernel(gcc no plugins)

If none of the more specific forums is the right place to ask

Can't compile kernel(gcc no plugins)

Postby Rigamortus » 2014-07-20 21:16

I'm trying to compile grsecurity-3.0-3.14.12-201407170638 with linux kernel 3.14.12.
Patching was easy, makeconfig let me do my thing with grsec, but this last command to actually compile is what went wrong:

make-kpkg --initrd --append-to-version "grsec1.0" kernel_image

Which threw me this


Code: Select all
make[2]: Entering directory `/usr/src/linux/linux-3.14.12'
make[3]: Nothing to be done for `all'.
Makefile:647: *** 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.
make[2]: Leaving directory `/usr/src/linux/linux-3.14.12'
make[1]: *** [debian/stamp/conf/kernel-conf] Error 2
make[1]: Leaving directory `/usr/src/linux/linux-3.14.12'
make: *** [debian/stamp/conf/minimal_debian] Error 2
Failed to create a ./debian directory:  at /usr/bin/make-kpkg line 984.


If you get this error copy and paste this:

apt-get install gcc-4.7-plugin-dev libgmp-dev libmpfr-dev libmpc-dev

then try and it'll work!
Last edited by Rigamortus on 2014-07-23 01:50, edited 1 time in total.
Rigamortus
 
Posts: 3
Joined: 2014-07-20 21:08

Re: Can't compile kernel(gcc no plugins)

Postby stevepusser » 2014-07-20 22:27

Makefile:647: *** 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.


Well, is gcc-4.6-plugins-dev installed?

I'd also make sure that 4.6 is the default compiler, on Wheezy you can have 4.4, 4.6, and 4.7 installed, and I believe 4.7 is the default. If so, just install gcc-4.7-plugins-dev.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Flightgear 2018.2.2, 4.19.13 kernel, wine-staging 4.0~rc4, Stellarium 0.18.3, VLC 3.0.5, Midori 7.0
User avatar
stevepusser
 
Posts: 10433
Joined: 2009-10-06 05:53

Re: Can't compile kernel(gcc no plugins)

Postby Rigamortus » 2014-07-21 17:55

stevepusser wrote:
Makefile:647: *** 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.


Well, is gcc-4.6-plugins-dev installed?

I'd also make sure that 4.6 is the default compiler, on Wheezy you can have 4.4, 4.6, and 4.7 installed, and I believe 4.7 is the default. If so, just install gcc-4.7-plugins-dev.


I solved it, Kernel compiled 2 hours later :) Will post the solution soon so others can benefit.
Rigamortus
 
Posts: 3
Joined: 2014-07-20 21:08

Re: Can't compile kernel(gcc no plugins)

Postby bow » 2014-09-18 21:49

i installed gcc, that didnt solve the error, could u post how u resolved?
bow
 
Posts: 1
Joined: 2014-09-18 21:46

Re: Can't compile kernel(gcc no plugins)

Postby stevepusser » 2014-09-18 22:47

Assuming gcc 4.7 is your default compiler (type gcc -v in a terminal and see what version is returned):
Code: Select all
su -c 'apt-get install gcc-4.7-plugin-dev'


It's also a good idea to create a header package along with your kernel.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Flightgear 2018.2.2, 4.19.13 kernel, wine-staging 4.0~rc4, Stellarium 0.18.3, VLC 3.0.5, Midori 7.0
User avatar
stevepusser
 
Posts: 10433
Joined: 2009-10-06 05:53

Re: Can't compile kernel(gcc no plugins)

Postby skyflash » 2015-10-25 19:02

Yeah this indeed fixed my problem!
skyflash
 
Posts: 1
Joined: 2015-10-25 19:00


Return to General Questions

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable