Jump to content
funtoo forums
  • 0
Sandro

Genkernel compiling error using Stack Protector buffer overflow detection (Strong)

Question

hi To All;

I use genkernel;

Either using gentoo-sources or hardened-sources I encountered a compilation errors;

* Linux Kernel 3.14.5-hardened-r2 for x86_64...
* .. with config file /etc/kernels/kernel-config-x86_64-3.14.5-hardened-r2
* kernel: Using config from /etc/kernels/kernel-config-x86_64-3.14.5-hardened-r2
*         Previous config backed up to .config--2014-07-11--00-19-34.bak
* kernel: >> Running mrproper...
*         >> Running oldconfig...
* kernel: >> Cleaning...
* kernel: >> Invoking menuconfig...
 
 
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
 
* ERROR: Failed to compile the "prepare" target...
* 
* -- Grepping log... --
* 
*  HOSTCC  arch/x86/tools/relocs_32.o
*  HOSTCC  arch/x86/tools/relocs_64.o
*  HOSTCC  arch/x86/tools/relocs_common.o
*  HOSTLD  arch/x86/tools/relocs
*  CC      kernel/bounds.s
*gcc: error: unrecognized command line option ?-fstack-protector-strong?
*make[1]: *** [kernel/bounds.s] Errore 1
*make: *** [prepare0] Errore 2
* Funtoo Linux Genkernel; Version 3.4.40.7-funtoo
* Running with options: --menuconfig all
*
* ERROR: Failed to compile the "prepare" target...
* 
* -- End log... --
* 
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* 
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
* 
* Please do *not* report compilation failures as genkernel bugs!
[/code]

It depends by a gcc version ? (actually in my sustem is [1] x86_64-pc-linux-gnu-4.8.2 *

 

Just a small question: 

what are the differences between: 
 
[1] x86_64-pc-linux-gnu-4.8.2 * 
  [2] x86_64-pc-linux-gnu-4.8.2-hardenednopie 
  [3] x86_64-pc-linux-gnu-4.8.2-hardenednopiessp 
  [4] x86_64-pc-linux-gnu-4.8.2-hardenednossp 
  [5] x86_64-pc-linux-gnu-4.8.2-vanilla 
[/ code]
?
 
I think thath the 1st choiche may be correct,, but i could make an evaluation error.

 

Thanks for Any suggestions......

 

Hi to All

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

-fstack-protector option enabled only in 4.8.3 (and above) gcc versions, currently not available in Funtoo. I'm not hardened specialist and cannot tell if this now forced for hardened kernel and profile

i'd like to have 4.8.3 gcc ebuild updated, it has some important fixes. This should be reported on bugs.funtoo.org, addressed to drobbins.

Refrence:

http://www.gossamer-threads.com/lists/gentoo/dev/288243

Share this post


Link to post
Share on other sites
  • 0

Ok, thank You very Much Oleg; th trouble i riscontered either in gentoo-sources than in hardened sources; and in effect i tought the problem about gcc-version.

When 8.1.3 will be in portage tree, i recompile entire kernel.

Thank You for the suggestion.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×