Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 474724

Summary: sys-kernel/genkernel: disable CONFIG_CC_OPTIMIZE_FOR_SIZE
Product: Gentoo Hosted Projects Reporter: Nikoli <nikoli>
Component: genkernelAssignee: Fabio Erculiani (RETIRED) <lxnay>
Status: RESOLVED FIXED    
Severity: normal CC: niks1024, zerochaos
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 472470    
Bug Blocks:    

Description Nikoli 2013-06-25 13:49:41 UTC
Upstream does not enable CONFIG_CC_OPTIMIZE_FOR_SIZE by default anymore:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=281dc5c5ec0fb299514567cbc358562649c1af95

There is GCC bug report related to it:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55759

Many of major distros have it disabled:
config-3.8.0-19-generic_amd64_ubuntu:# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
config-3.9-1-amd64_debian:CONFIG_CC_OPTIMIZE_FOR_SIZE=y
config-3.9.7-200.fc18.x86_64:# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
config-3.9.7-arch-amd64:# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set

Please disable it in configs:
http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=blob;f=defaults/kernel-config;h=aeece3a3d49fcfcd8637c6d6b85a4d2efc27a566;hb=HEAD#l86
https://github.com/Sabayon/genkernel-next/blob/master/arch/x86_64/kernel-config#L130

P.S. It is unusual to see tracker which blocks bugs instead depending on them.
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2015-08-20 16:23:20 UTC
agreed, the change has been made on x86/x86_64 for genkernel.  any other changes will need to come from respective arch teams

git commit f7fc9dca47d5c5d6ea5b894e232068e464353658

reassigning to genkernel-next maintainer to see if they would also like to make this change
Comment 2 Richard Yao (RETIRED) gentoo-dev 2015-08-26 17:51:10 UTC
As of v3.4.52, the genkernel has imported RHEL6's config file generation infrastructure and config files with additional changes to better suit Gentoo users.

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=3b2a190062f6a15af1aba3565e9bdb8fcdc5056a

The default kernel configuration files are generated by combining defaults/kernel-generic-config with arch/$ARCH/arch-config to create arch/$ARCH/generated-config. That is then run through oldconfig when genkernel is asked to compile a kernel where there is no pre-existing .config present.

The kernel-config files are still around for convenience because they had not been fully analyzed on more obscure architectures, but they will be removed from the repository as part of future clean up.