View previous topic :: View next topic |
Author |
Message |
SxN Apprentice
Joined: 08 Jan 2007 Posts: 165 Location: Toronto, ON, Canada
|
Posted: Sat Jun 20, 2015 5:13 pm Post subject: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG error |
|
|
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 |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9824 Location: almost Mile High in the USA
|
Posted: Sat Jun 20, 2015 5:37 pm Post subject: |
|
|
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 |
|
|
SxN Apprentice
Joined: 08 Jan 2007 Posts: 165 Location: Toronto, ON, Canada
|
Posted: Sat Jun 20, 2015 6:11 pm Post subject: |
|
|
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 |
|
|
|