Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 759280 - www-client/firefox-78.5.0:0/esr78::gentoo fails to build due to wrong -msse flags for gcc
Summary: www-client/firefox-78.5.0:0/esr78::gentoo fails to build due to wrong -msse ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-09 19:58 UTC by Judge Dredd
Modified: 2020-12-10 00:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,38.09 KB, text/plain)
2020-12-09 20:04 UTC, Judge Dredd
Details
emerge info (emerge.info,6.22 KB, text/plain)
2020-12-09 20:04 UTC, Judge Dredd
Details
emerge pretend (emerge.pretend,1001 bytes, text/plain)
2020-12-09 20:05 UTC, Judge Dredd
Details
environ (environment,200.91 KB, text/plain)
2020-12-09 20:05 UTC, Judge Dredd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Judge Dredd 2020-12-09 19:58:52 UTC
www-client/firefox-78.5.0:0/esr78::gentoo  fails to build.

The problem seems to be the -msse4.2 flag, which is a valid flag for gcc,
but for some reason the CFLAGS in the environment contain -msse4_2 flag
which is not a valid gcc flag (mind the underscore)
I suspect that the CPU_FLAGS_X86 in make.conf is not treated properly.

Reproducible: Always

Steps to Reproduce:
1. try to compile www-client/firefox-78.5.0 with x86_64-pc-linux-gnu-9.3.0
2. configure will fail
3.
Actual Results:  
configure will fail

Expected Results:  
compilation and installation
Comment 1 Judge Dredd 2020-12-09 20:04:36 UTC
Created attachment 677485 [details]
build log
Comment 2 Judge Dredd 2020-12-09 20:04:56 UTC
Created attachment 677488 [details]
emerge info
Comment 3 Judge Dredd 2020-12-09 20:05:12 UTC
Created attachment 677491 [details]
emerge pretend
Comment 4 Judge Dredd 2020-12-09 20:05:26 UTC
Created attachment 677494 [details]
environ
Comment 5 Ionen Wolkens gentoo-dev 2020-12-09 20:46:42 UTC
> declare -x CFLAGS="-Ofast -march=native -pipe -funroll-loops -mfpmath=sse -msse4_2 -mavx2 -maes"
Where is this coming from, some package.env file?

ebuild nor firefox certainly wouldn't set a standards-breaking -Ofast, it also doesn't mangle -msse4.2 as far as I can test.
Comment 6 Thomas Deutschmann (RETIRED) gentoo-dev 2020-12-09 21:08:50 UTC
No, "-msse4_2" is coming from *your* environment. Please fix your CFLAGS.
Comment 7 Judge Dredd 2020-12-10 00:05:14 UTC
(In reply to Thomas Deutschmann from comment #6)
> No, "-msse4_2" is coming from *your* environment. Please fix your CFLAGS.

Thank you Thomas, my bad. I didn't notice this.