Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33224 - Openoffice still fails with -march=pentium4 and GCC 3.2
Summary: Openoffice still fails with -march=pentium4 and GCC 3.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-11 06:39 UTC by Chris Gianelloni (RETIRED)
Modified: 2004-01-17 09:52 UTC (History)
1 user (show)

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


Attachments
this patch filters the -fprefetch-loop-arrays option which is the real culprit of the problem (openoffice-1.1.0-r2.ebuild-maskprefetch.patch,392 bytes, patch)
2003-11-16 13:50 UTC, Rick Warner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Gianelloni (RETIRED) gentoo-dev 2003-11-11 06:39:49 UTC
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"
Comment 1 Nick Hadaway 2003-11-12 15:08:18 UTC
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"
Comment 2 Nick Hadaway 2003-11-12 15:09:41 UTC
(and -funroll-loops -fprefetch-loop-arrays in CFLAGS)
Comment 3 Stewart (RETIRED) gentoo-dev 2003-11-13 14:03:24 UTC
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 ***
Comment 4 Stewart (RETIRED) gentoo-dev 2003-11-13 14:05:18 UTC
Sorry Paul, brainfart. Too many open tabs; I missed your last comment. :/
Comment 5 Paul de Vrieze (RETIRED) gentoo-dev 2003-11-14 00:59:13 UTC
Steward, that remark was about compilation failure due to nptl/linux-2.6.0, while the bug was about pentium4 flags.
Comment 6 Paul de Vrieze (RETIRED) gentoo-dev 2003-11-14 01:02:20 UTC
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
Comment 7 Rick Warner 2003-11-16 13:50:50 UTC
Created attachment 20833 [details, diff]
this patch filters the -fprefetch-loop-arrays option which is the real culprit of the problem
Comment 8 Chris Gianelloni (RETIRED) gentoo-dev 2003-11-17 11:30:11 UTC
This also occurs in the openoffice-ximian ebuild.  Should I file a new bug?
Comment 9 Paul de Vrieze (RETIRED) gentoo-dev 2003-11-18 02:25:14 UTC
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
Comment 10 Harald Svab 2003-11-30 13:27:03 UTC
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"
Comment 11 Chris Gianelloni (RETIRED) gentoo-dev 2003-11-30 14:04:14 UTC
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.

=]
Comment 12 Paul de Vrieze (RETIRED) gentoo-dev 2003-12-01 02:11:16 UTC
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. 
Comment 13 Andreas Proschofsky (RETIRED) gentoo-dev 2004-01-17 09:52:23 UTC
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