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

Bug 617218

Summary: www-client/firefox-45.8.0 fails to preserve -Ofast with USE=custom-cflags custom-optimization
Product: Gentoo Linux Reporter: Alec Ari <neotheuser>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED OBSOLETE    
Severity: normal CC: jstein, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description Alec Ari 2017-05-02 00:12:36 UTC
Hi everyone, I was just building Firefox and experimenting with -Ofast and realized that it was using -O2.

/etc/portage/env/nopie_opt.conf:

CFLAGS="-march=core2 -Ofast -fPIC -fstack-protector-strong -fomit-frame-pointer -pipe -g0 -s -msse -msse2 -msse3 -mssse3 -mmmx -mfpmath=sse"

CXXFLAGS="-march=core2 -Ofast -fPIC -fstack-protector-strong -fomit-frame-pointer -pipe -g0 -s -msse -msse2 -msse3 -mssse3 -mmmx -mfpmath=sse"

LDFLAGS="-march=core2 -Ofast -fPIC -fstack-protector-strong -fomit-frame-pointer -pipe -g0 -s -msse -msse2 -mssse3 -mmmx -mfpmath=sse -Wl,-z,now -Wl,-z,relro"

/etc/portage/package.env:

www-client/firefox nopie_opt.conf

grep "Ofast" /var/tmp/portage/www-client/firefox-45.8.0/temp/build.log returns no results, however -O2 shows up all over the place during the build.

bits of build.log attached and complete emerge --info
Comment 1 Alec Ari 2017-05-02 00:13:19 UTC
Created attachment 471472 [details]
emerge --info
Comment 2 Alec Ari 2017-05-02 00:16:46 UTC
Created attachment 471474 [details]
build.log
Comment 3 Jory A. Pratt gentoo-dev 2017-08-26 17:56:02 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team