Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot use CONFIG_CC_STACKPROTECTOR_STRONG error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
SxN
Apprentice
Apprentice


Joined: 08 Jan 2007
Posts: 165
Location: Toronto, ON, Canada

PostPosted: Sat Jun 20, 2015 5:13 pm    Post subject: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG error Reply with quote

Hi All,

Trying to build a hardened kernel, and getting the following:

Code:
Makefile:732: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      kernel/bounds.s
gcc: error: unrecognized command line option '-fstack-protector-strong'
Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:1052: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2


How can I fix it?

Thanks,
SxN
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9712
Location: almost Mile High in the USA

PostPosted: Sat Jun 20, 2015 5:37 pm    Post subject: Reply with quote

What version of gcc are you using (gcc --version) ... Try a newer version perhaps? Looks like it's new in gcc-4.9 ...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
SxN
Apprentice
Apprentice


Joined: 08 Jan 2007
Posts: 165
Location: Toronto, ON, Canada

PostPosted: Sat Jun 20, 2015 6:11 pm    Post subject: Reply with quote

I thought of the gcc version too, so I did the followings:

Code:
emerge --sync
emerge gcc

gcc --version
gcc (Gentoo Hardened 4.8.4 p1.5, pie-0.6.1) 4.8.4


I wasn't aware that I have to go up to 4.9, maybe I should try and install that version before compiling.

(I also updated make to 4.1)

SxN
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum