On line 330 of the Openoffice 1.1.0-r2 ebuild, the line shows that the -march=pentium4 should be replaced with -march=pentium3 -mcpu=pentium4. This is not happening. I built 1.1.0-r1 by manually specifying CFLAGS on the command line to match what they "should" be after being replaced. Here's the failure: 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-r2/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/dont_use_stl -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/external -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngi4.pro/inc -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/unxlngi4/inc -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/inc -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/res -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngi4.pro/inc/dont_use_stl -I/var/tmp/portage/openoffice-1.1.0-r2/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 -fprefetch-loop-arrays -fmerge-all-constants -fforce-addr -foptimize-register-move -frename-registers -mfpmath=sse -mno-push-args -mno-align-stringops -maccumulate-outgoing-args -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[27070] ERROR: compile on localhost failed 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-r2/work/oo_1.1_src/jpeg !!! ERROR: app-office/openoffice-1.1.0-r2 failed. !!! Function src_compile, Line 466, 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.4.20-gentoo-r8) ================================================================= System uname: 2.4.20-gentoo-r8 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHzGentoo Base System version 1.4.3.10p1 distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -fmerge-all-constants -fforce-addr -foptimize-register-move -frename-registers -mfpmath=sse -mno-push-args -mno-align-stringops -maccumulate-outgoing-args" 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=pentium4 -O2 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -funroll-loops -fmerge-all-constants -fforce-addr -foptimize-register-move -frename-registers -mfpmath=sse -mno-push-args -mno-align-stringops -maccumulate-outgoing-args" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache distcc userpriv notitles cvs" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://mirrors.tds.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://gentoo.noved.org/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 acpi avi cdr crypt cups dvd encode esd ethereal foomaticdb gif gnome gtk gtk2 ipv6 java jpeg kerberos krb4 ldap mmx mpeg ncurses nocd oggvorbis opengl oss pam pcmcia pdflib perl pic png pnp ppds quicktime readline samba slp snmp spell sse ssl tcltk tcpd tiff truetype trusted usb videos wmf X xml xml2 xmms xv zlib"
I am experiencing this problem as well. Portage 2.0.49-r15 (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 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHz Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache buildpkg" GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Lin ux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad mik mod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib direc tfb alsa gdbm berkdb slang readline arts bonobo svga mysql postgres X sdl gpm pa m ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla cdr 3ds aalib acpi acpi4linux amd apache2 ardour-ksi autofs avantgo clamav clanJavaS cript clanVoice curl dedicated dga dnd dv dvb dvd ethereal ext-png ext-zlib faad ffmpeg fftw flac flash fltk fluidsynth freetype gd gd-external glut gphoto2 gps gstreamer gtk2 gtkhtml hbci hyriand imagemagick imap imlib2 ipv6 irda irmc jack jack-caps java javascript jbig justify ladcca lcd lcms libdsk lirc ltsp maildir matroska mcal md5sum milter mmx mng moznocompose moznoirc moznomail mozsvg msn music nocd nvidia oav offensive ofx openal pcmcia pda pnp ppds samba scanner slp sox speex src sse transcode trusted unicode usb v4l videos wxwin wxwindows xosd xvid -tcpd -ldap"
(and -funroll-loops -fprefetch-loop-arrays in CFLAGS)
If this continues to be an issue, please file under the existing bug, "FIXED" or no, to make tracking easier. *** This bug has been marked as a duplicate of 31412 ***
Sorry Paul, brainfart. Too many open tabs; I missed your last comment. :/
Steward, that remark was about compilation failure due to nptl/linux-2.6.0, while the bug was about pentium4 flags.
Could someone check that the new info message about 3.2 compilers is displayed. And try to find out why the replace-flags doesn't work. It should just work the way it is. However I do not have a 3.2 compiler anymore or access to a pentium4
Created attachment 20833 [details, diff] this patch filters the -fprefetch-loop-arrays option which is the real culprit of the problem
This also occurs in the openoffice-ximian ebuild. Should I file a new bug?
I will not apply the prefetch patch. It is an unsupported option. I cannot go and try to find out every compile option that fails with openoffice, nor can I monitor whether it has been fixed in the meantime. Let alone the fact that even different gcc versions can fix it. A new bug for ximian is not necessary, but please someone try to find out what happens with the replace-flags statement
I installed Gentoo from the LiveCD stage2 a few days ago. Today I tried to install Openoffice 1.1.0-r2 and it failed with the reported error. I didn't change any CFLAGS, so the -fprefetch-loop-arrays flag must be default. Could it be that noone with a pentium4 will be able to compile OO 1.1-r2 with the default settings, if you don't apply the patch? Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.20-gentoo-r8) ================================================================= System uname: 2.4.20-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.4.3.10 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ libwww mad mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts svga java sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gtk motif opengl mozilla X kde qt gtk2 gnome video_cards_radeon"
As it stands right now, -march=pentium4 on stable x86 is not compatable with OpenOffice. The OpenOffice team is aware of the problem (via this bug) and are looking into it. =]
Basically the problem is that gcc-3.2.x has broken march=pentium4 support. This is not triggered in all cases, but in case of openoffice it is. The filtering for some reason does not work, but as I don't have a pentium4 to test it on I really need someone to try to find out why it does not work.
The filtering for pentium4 did not work, this is fixed now in cvs, also fprefetch-loop-arrays is now filtered out, so Pentium4 should work again, closing this bug