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

Bug 374325

Summary: www-client/firefox-5.0-rX does not build with <gcc-4.4
Product: Gentoo Linux Reporter: Carsten Lohrke (RETIRED) <carlo>
Component: New packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED FIXED    
Severity: normal CC: nopublegrave
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: firefox-gcc-no-avx.patch

Description Carsten Lohrke (RETIRED) gentoo-dev 2011-07-07 10:16:36 UTC
Created attachment 279315 [details, diff]
firefox-gcc-no-avx.patch

checking whether the C compiler (i686-pc-linux-gnu-gcc  -march=core2 -Wno-return-type -w -mno-avx ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

Used GCC is 4.3.4. It obviously fails to build because of -mno-avx being appended unconditionally. Here's the patch for Firefox, other posibly affected ebuilds (grepped them quickly) are:

mail-client/thunderbird-3.3_alpha3-r2.ebuild
mail-client/thunderbird-5.0.ebuild
net-libs/xulrunner-2.0.1-r1.ebuild
www-client/icecat-5.0.ebuild


Btw., could you rename the "methodjit" use flag to "jit" as used in other packages, please!? The bazillion custom use flags are not very convenient.
Comment 1 Jory A. Pratt gentoo-dev 2011-07-31 15:01:43 UTC
(In reply to comment #0)
> Created attachment 279315 [details, diff]
> firefox-gcc-no-avx.patch
> 
> checking whether the C compiler (i686-pc-linux-gnu-gcc  -march=core2
> -Wno-return-type -w -mno-avx ) works... no
> configure: error: installation or configuration problem: C compiler cannot
> create executables.
> 
> Used GCC is 4.3.4. It obviously fails to build because of -mno-avx being
> appended unconditionally. Here's the patch for Firefox, other posibly affected
> ebuilds (grepped them quickly) are:
> 
> mail-client/thunderbird-3.3_alpha3-r2.ebuild
> mail-client/thunderbird-5.0.ebuild
> net-libs/xulrunner-2.0.1-r1.ebuild
> www-client/icecat-5.0.ebuild
> 
> 
> Btw., could you rename the "methodjit" use flag to "jit" as used in other
> packages, please!? The bazillion custom use flags are not very convenient.

Carlo,

we will not rename as mozilla products do not disable all of jit which is what is implied. As far as mno-avx we will get it fixed.
Comment 2 Jory A. Pratt gentoo-dev 2011-08-21 18:44:49 UTC
Fixed in fx-6/tb-6 thanks for reporting.