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"
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.
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.
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
Problem resolved, closing.