Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7002 - wrong -march while building mozilla
Summary: wrong -march while building mozilla
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-25 04:09 UTC by Jan Schubert
Modified: 2003-02-04 19:42 UTC (History)
0 users

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 Jan Schubert 2002-08-25 04:09:42 UTC
Building mozilla uses -march=pentium3 instead my defined -march=pentium4. 
 
---- 
 
c++ -o nsFTPDirListingConv.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -DOJI 
-D_IMPL_NS_NET  -I../../../dist/include/xpcom -I../../../dist/include/string 
-I../../../dist/include/mimetype -I../../../dist/include/locale 
-I../../../dist/include/intl -I../../../dist/include/unicharutil 
-I../../../dist/include/util -I../../../dist/include/pref 
-I../../../dist/include/uconv -I../../../dist/include/exthandler 
-I../../../dist/include/imglib2 -I../../../dist/include/necko 
-I../../../dist/include 
-I/var/tmp/portage/mozilla-1.0-r3/work/mozilla/dist/include/nspr      
-I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti -fno-exceptions 
-Wall -Wconversion -Wpointer-arith -Wbad-function-cast -Wcast-align 
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-long-long 
-march=pentium3 -O4 -pipe -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED 
-Wno-deprecated -O3  -I/usr/X11R6/include -DMOZILLA_CLIENT -include 
../../../config-defs.h -Wp,-MD,.deps/nsFTPDirListingConv.pp 
nsFTPDirListingConv.cpp
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-08-27 13:34:31 UTC
Edit the ebuild and remove the following section:

-----------------------------------cut----------------------------------
        # Currently gcc-3.1.1 dont work well if we specify "-march"
        # and other optimizations
        [ -z "${CC}" ] && CC=gcc
        if [ "`${CC} -dumpversion`" = "3.1.1" ] || \
           [ "`${CC} -dumpversion`" = "3.2" ]
        then
                export CFLAGS="${CFLAGS/pentium4/pentium3}"
                export CXXFLAGS="${CFLAGS/pentium4/pentium3}"
        fi
-------------------------------------------------------------------------

NB:  Just do not file a bugreport if it do not compile with your
     -march=pentium4 :P