Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13554 - net-www/mozilla doesn't work with -mcpu/-mtune=ultrasparc
Summary: net-www/mozilla doesn't work with -mcpu/-mtune=ultrasparc
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc Linux
: High normal (vote)
Assignee: Sparc Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-09 04:02 UTC by Joshua Kinard
Modified: 2003-03-06 07:16 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Kinard gentoo-dev 2003-01-09 04:02:49 UTC
Attempts to build Mozilla-1.2.1-r4 and phoenix-cvs-0.5-r2
(http://forums.gentoo.org/viewtopic.php?t=25850) fail when using the following
CFLAGS:

CFLAGS="-mcpu=ultrasparc -mtune=ultrasparc -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-mcpu=ultrasparc -mtune=ultrasparc -O3 -pipe -fomit-frame-pointer"

(the -O3 and other flags shouldn't affect the build, only -mcpu && -mtune)

These flags cause an Internal Compiler Error somewhere's within e_pow.o in both
builds.


The CFLAGS that do work are these:

CFLAGS="-mcpu=v8 -mtune=v9 -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="-mcpu=v8 -mtune=v9 -O2 -pipe -fomit-frame-pointer"
Comment 1 Christian Birchinger (RETIRED) gentoo-dev 2003-01-09 04:13:49 UTC
I suggest the same solution as in glibc:

# Sparc support ...
replace-flags "-mcpu=ultrasparc" "-mcpu=v8"
replace-flags "-mcpu=v9" "-mcpu=v8"

I don't use mozilla on my sparc machine (no X installed) so i prefer if someone
who can test it adds those lines to the ebuild and tests it.
Comment 2 Joshua Kinard gentoo-dev 2003-01-17 01:42:49 UTC
I concur with this.  I replaced my "ultrasparc" flags with the v8/v9 combo, and
Phoenix-cvs built.  Assuming Phoenix atleast compiled, I would venture to guess
Mozilla may compile as well, but considering Phoenix is so stripped down, I
can't confirm this.
Comment 3 Jason Wever (RETIRED) gentoo-dev 2003-01-29 10:22:27 UTC
replace-flags have been set for -mcpu=ultrasparc and -mcpu=v9 to change them to
-mcpu=v8 -mtune=v9.    Mozilla now compiles.  Changing bug to resolved:fixed
Comment 4 Jason Wever (RETIRED) gentoo-dev 2003-03-06 07:16:46 UTC
Problem resolved, closing.