I notice that, in my OpenOffice.org build, it tries to build using -march=pentium4 -mcpu=pentiumpro ... They are seperated by a bunch of other (package-set) CFLAGS and -DEFINES. And, it seems to be causing a compilation error. Reproducible: Always Steps to Reproduce: 1. CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" 2. emerge openoffice Actual Results: Failure, in assembler, something about 'movd' Expected Results: Spent hours compiling... Portage 2.0.49-r13 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-gentoo-r6) ================================================================= System uname: 2.4.20-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1500MHz Gentoo Base System version 1.4.3.10p1 ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox autoaddcvs ccache userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.seren.com/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://www.zentek-international.com/mirrors/gentoo/ ftp://chaos.planetmirror.com/pub/gentoo/ ftp://karl.planetmirror.com/pub/gentoo/ http://karl.planetmirror.com/pub/gentoo/ http://chaos.planetmirror.com/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage.local" SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline tetex bonobo svga tcltk java guile mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome gtk motif opengl mozilla gphoto2 ldap cdr activefilter apache2 canna cjk dga gb ipv6 javascript jikes kerberos krb4 mbox moznocompose moznoirc moznomail mule nptl odbc pic ppds samba sse tiff usb utf8 -arts -qt -kde"
Try with -march=pentium3 (and -mcpu=pentium3 if you want to get rid of that -mcpu=pentiumpro part)
Yes, I got it to compile further by reducing to -march=pentiumpro, but it stopped short in another bug...
-march=pentiumpro should not be needed. Please see if adding -mcpu=pentium3 stops the bug (and yes there is use in adding -mcpu)
*** Bug 31630 has been marked as a duplicate of this bug. ***
Should this ebuild really be considered stable without gcc 3.3 being stable? Not that I know the slightest thing about these issues. It's just that I have never had an ebuild listed as stable fail and my faith is shaken.
*** Bug 31749 has been marked as a duplicate of this bug. ***
The problem is that -march=pentium4 works on unstable as the default unstable gcc is 3.3. Maybe you also have not tried to compile openoffice before. It has allways had its compilation difficulties. In any case I have added a flag-o-matic to replace the -march=pentium4 flag
I have run an emerge sync and still my ebuild is *not* filtering -march=pentium4 and is still trying mcpu=pentiumpro Making: ../../../../unxlngi4.pro/slo/jquant2.obj distcc gcc -fmessage-length=0 -c -I. -I. -I../inc -I../../../../inc -I../../../../unx/inc -I../../../../unxlngi4.pro/inc -I. -I/var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/dont_use_stl -I/var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/external -I/var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/solver/645/unxlngi4.pro/inc -I/var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/solenv/unxlngi4/inc -I/var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/solenv/inc -I/var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/res -I/var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/dont_use_stl -I/var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/solenv/inc/Xp31 -I/opt/blackdown-jdk-1.4.1/include -I/opt/blackdown-jdk-1.4.1/include/linux -I/opt/blackdown-jdk-1.4.1/include/native_threads/include -I/usr/X11R6/include -I. -I../../../../res -I. -march=pentium4 -O2 -pipe -mfpmath=sse -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -DTT_CONFIG_OPTION_BYTECODE_INTERPRETER -pipe -mcpu=pentiumpro -fpic -DLINUX -DUNX -DVCL -DGCC -DC300 -DINTEL -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=645 -DBUILD=8693 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX645 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../../../unxlngi4.pro/slo/jquant2.o jquant2.c {standard input}: Assembler messages: {standard input}:1664: Error: suffix or operands invalid for `movd' distcc[32054] ERROR: compile on localhost failed with exit code 1 dmake: Error code 1, while making '../../../../unxlngi4.pro/slo/jquant2.obj' ---* TG_SLO.MK *--- dmake: Error code 255, while making './unxlngi4.pro/misc/build/so_built_jpeg' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/jpeg !!! ERROR: app-office/openoffice-1.1.0 failed. !!! Function src_compile, Line 453, Exitcode 1 !!! Build failed!
I forgot to mention, I have this in the ebuild: if [ "$(gcc-version)" = "3.2" ]; then replace-flags "-march=pentium4" "-march=pentium3 -mcpu=pentium4" fi So I am pretty sure I have the most recent ebuild. What is the version number? I'm using 1.7 here (synched at 1:30EDT)
Perhaps the changes haven't hit the mirrors yet? I still get the error described in Bug 31749, marked as a dup of this one.
*** Bug 32020 has been marked as a duplicate of this bug. ***
Should this bug be re-opened? I am still getting the error described in Bug 31749. Looks as if this is where all the build problems are being collected. If that's the case, then I think it should be re-opened. Otherwise, I think Bug 31749 should be re-opened.
I have just committed a new version that should give some indications for whether it goes right. Be aware though that it can be that these issues are not resolved if you don't start over with compiling (not use the ebuild compile command). Further if things fail you can do two things: upgrade to gcc-3.3 (that is less buggy) or run 'CFLAGS="-march=pentium3 -mcpu=pentium4 -O2 -pipe" CXXFLAGS="$CFLAGS" emerge -b openoffice'
Which version of 3.3.x do you recommend? I upgraded to gcc-3.3.2.ebuild and did `emerge -e world` and it screwed X over to the point where if you allow xdm to load then it hangs the computer and garbles VT1 too.
An emerge -e world is not necessary at all. In any case it might be smart not to do such thing right after installing a new gcc/glibc version. It might indeed get all borked. The know working version is 3.3.1-r5.
What is this error due to? EADS -D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=645 -DBUILD=8693 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX645 -DMULTITHREAD -o ../../unxlngi4.pro/obj/semaphor.o semaphor.c semaphor.c:88: parse error before "_pthread_descr" semaphor.c:88: warning: no semicolon at end of struct or union semaphor.c:89: warning: data definition has no type or storage class dmake: Error code 1, while making '../../unxlngi4.pro/obj/semaphor.obj' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.0/work/oo_1.1_src/sal/osl/unx !!! ERROR: app-office/openoffice-1.1.0 failed. !!! Function src_compile, Line 455, Exitcode 1 !!! Build failed! $ emerge info Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test9) ================================================================= System uname: 2.6.0-test9 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs notitles buildpkg" GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.linux.no/ http://trumpetti.atm.tut.fi/gentoo/ http://ds.thn.htu.se/linux/gentoo http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://www.fhh.opensource-mirror.de/gentoo.org/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp.caliu.info/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 oss avi encode gif jpeg libwww mad motif mpeg ncurses pdflib png quicktime truetype xml2 xmms xv zlib directfb berkdb slang readline svga X sdl tcpd pam ssl perl python imlib oggvorbis gtk opengl aalib acpi acpi4linux apache2 dvd dvdr faad fbcon gtk2 imap java javascript maildir mmx nocd nptl openal php sse tiff xml -apm -arts -crypt -cups -foomaticdb -gdbm -gpm -kde -gnome -libg++ -mikmod -nls -qt -spell -esd"
I just can't get it to compile. I've tried -march=pentium3 and also -O3 and -O2 but same error everytime using gcc 3.2.3.
Drubha, use the -r1 ebuild. This one does not work correctly with nptl or the 2.6.0 kernel. And next time try to open a new bug for it. That makes it a lot easier to track the bugs
*** Bug 33224 has been marked as a duplicate of this bug. ***