Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126777 - openoffice-2.0.2 fails to install on x86 with gcc-4.1
Summary: openoffice-2.0.2 fails to install on x86 with gcc-4.1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 131636 134234 148585 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-03-19 03:34 UTC by Dominik Strehlke
Modified: 2006-10-23 00:21 UTC (History)
4 users (show)

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


Attachments
Here's the logfile created by the installer (ooo-install.log,287.92 KB, text/plain)
2006-03-19 03:36 UTC, Dominik Strehlke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Strehlke 2006-03-19 03:34:12 UTC
I don't know yet if this has something to do with bug 126587, but as it fails in a different step, I'm assuming for now that it's something different, so I'm filing this as a new bug.

Here's the output of the installer:
chipper ~ # ebuild /usr/portage/app-office/openoffice/openoffice-2.0.2.ebuild install
>>> checksums files   ;-) openoffice-2.0.1.ebuild
>>> checksums files   ;-) openoffice-2.0.2.ebuild
>>> checksums files   ;-) openoffice-2.0.1-r1.ebuild
>>> checksums files   ;-) files/digest-openoffice-2.0.1
>>> checksums files   ;-) files/digest-openoffice-2.0.2
>>> checksums files   ;-) files/digest-openoffice-2.0.1-r1
>>> checksums files   ;-) files/2.0.1/alwayscrystal.diff
>>> checksums files   ;-) files/2.0.2/removecrystalcheck.diff
>>> checksums files   ;-) files/2.0.2/use-system-xt.diff
>>> checksums src_uri ;-) OOO_2_0_2-core.tar.bz2
>>> checksums src_uri ;-) OOO_2_0_2-system.tar.bz2
>>> checksums src_uri ;-) OOO_2_0_2-lang.tar.bz2
>>> checksums src_uri ;-) ooo-build-2.0.2.tar.gz
>>> checksums src_uri ;-) libwpd-0.8.3.tar.gz
>>> checksums src_uri ;-) extras-2.tar.bz2
>>> checksums src_uri ;-) hunspell_UNO_1.1.tar.gz
>>> checksums src_uri ;-) xt-20051206-src-only.zip
 *
 *  It is important to note that OpenOffice.org is a very fragile
 *  build when it comes to CFLAGS.  A number of flags have already
 *  been filtered out.  If you experience difficulty merging this
 *  package and use agressive CFLAGS, lower the CFLAGS and try to
 *  merge again. Also note that building OOo takes a lot of time and
 *  hardware ressources: 4-6 GB free diskspace and 256 MB RAM are
 *  the minimum requirements. If you have less, use openoffice-bin
 *  instead.
 *
 *  To get a localized build, set the according LINGUAS variable(s).
 *
>>> Checking OOO_2_0_2-core.tar.bz2's mtime...
>>> Checking OOO_2_0_2-system.tar.bz2's mtime...
>>> Checking OOO_2_0_2-lang.tar.bz2's mtime...
>>> Checking OOO_2_0_2-binfilter.tar.bz2's mtime...
>>> Checking ooo-build-2.0.2.tar.gz's mtime...
>>> Checking libwpd-0.8.3.tar.gz's mtime...
>>> Checking extras-2.tar.bz2's mtime...
>>> Checking hunspell_UNO_1.1.tar.gz's mtime...
>>> Checking xt-20051206-src-only.zip's mtime...
>>> WORKDIR is up-to-date, keeping...
>>> It appears that openoffice is already compiled; skipping.
>>> (clean to force compilation)
>>> It appears that openoffice has already been tested; skipping.

>>> Install openoffice-2.0.2 into /var/tmp/portage/openoffice-2.0.2/image/ category app-office
 * Preparing Installation
cd bin ; ./package-ooo
Using configure options from the environment
Setup:
 Tag:        'OOO_2_0_2'
 Apply:      '/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/patches/src680/apply'
 Flags:      ''
 Suffix:     '2'
 Dir:        '/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build'
 DestDir:    ''
 Path:       '/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/bin:/sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.4:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/vmware/player/bin:/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/bin'
 Prefix:     '/var/tmp/portage/openoffice-2.0.2/image//usr'
 Mandir:     '/var/tmp/portage/openoffice-2.0.2/image//usr/share/man'
 Docdir:     '/var/tmp/portage/openoffice-2.0.2/image//usr/share/doc/packages/OpenOffice.org'
 Sysconf:    '/var/tmp/portage/openoffice-2.0.2/image//usr/etc'
 OOInBase:   '/usr/lib/openoffice'
 OOInstall:  '/var/tmp/portage/openoffice-2.0.2/image//usr/lib/openoffice'
 OODestDir:  '/var/tmp/portage/openoffice-2.0.2/image/'
 Config:     --disable-binfilter --disable-crashdump --disable-epm --enable-crashdump=no --enable-openldap --with-build-version="Build 2.0.2" --with-lang="en-US" --without-fonts --without-gpc --with-system-freetype --with-system-gcc --with-system-jpeg --with-system-libxml --with-system-mozilla --with-system-python --with-system-zlib --enable-evolution2 --enable-atkbridge --with-alloc=system --enable-cairo=no --disable-fontooo --disable-odk --enable-libsn --with-system-expat --with-system-stdlibs --with-system-xrender-headers --without-system-jpeg --without-nas --disable-qadevooo --with-dynamic-xinerama --with-jdk-home=/opt/blackdown-jdk-1.4.2.03 --with-ant-home=/usr/share/ant-core --disable-binfilter --with-system-libxml --without-system-mozilla --disable-mozilla --with-firefox --disable-openldap --enable-evolution2 --disable-gnome-vfs --disable-lockdown --disable-atkbridge --with-system-curl --disable-gtk --enable-kde  --with-system-stdlibs  '--with-distro=Gentoo' '--with-vendor=Gentoo' '--with-arch=x86' '--with-srcdir=/var/tmp/portage/openoffice-2.0.2/distdir' '--with-lang=en-US' '--with-num-cpus=1' '--with-binsuffix=2' '--with-installed-ooo-dirname=openoffice' '--with-tag=OOO_2_0_2' '--disable-gtk' '--enable-kde' '--disable-cairo' '--without-system-cairo' '--disable-quickstart' '--disable-access' '--disable-mono' '--disable-post-install-scripts' '--enable-hunspell' '--with-system-hunspell' '--mandir=/usr/share/man' 'CFLAGS=-O2 -march=pentium-m -pipe -mfpmath=sse -ffast-math -fno-strict-aliasing'
 Use gcc33:  ''
 ccache:     no
 icecream:   no
Using configure options from the environment
Setup:
 Tag:        'OOO_2_0_2'
 Apply:      '/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/patches/src680/apply'
 Flags:      ''
 Suffix:     '2'
 Dir:        '/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build'
 DestDir:    ''
 Path:       '/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/bin:/opt/blackdown-jdk-1.4.2.03/bin:.:/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin:/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solenv/unxlngi6/bin:/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solenv/bin:/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/bin:/sbin:/usr/sbin:/usr/lib/portage/bin:/bin:/usr/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4.4:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/opt/vmware/player/bin:/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/bin:/var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/bin'
 Prefix:     '/var/tmp/portage/openoffice-2.0.2/image//usr'
 Mandir:     '/var/tmp/portage/openoffice-2.0.2/image//usr/share/man'
 Docdir:     '/var/tmp/portage/openoffice-2.0.2/image//usr/share/doc/packages/OpenOffice.org'
 Sysconf:    '/var/tmp/portage/openoffice-2.0.2/image//usr/etc'
 OOInBase:   '/usr/lib/openoffice'
 OOInstall:  '/var/tmp/portage/openoffice-2.0.2/image//usr/lib/openoffice'
 OODestDir:  '/var/tmp/portage/openoffice-2.0.2/image/'
 Config:     --disable-binfilter --disable-crashdump --disable-epm --enable-crashdump=no --enable-openldap --with-build-version="Build 2.0.2" --with-lang="en-US" --without-fonts --without-gpc --with-system-freetype --with-system-gcc --with-system-jpeg --with-system-libxml --with-system-mozilla --with-system-python --with-system-zlib --enable-evolution2 --enable-atkbridge --with-alloc=system --enable-cairo=no --disable-fontooo --disable-odk --enable-libsn --with-system-expat --with-system-stdlibs --with-system-xrender-headers --without-system-jpeg --without-nas --disable-qadevooo --with-dynamic-xinerama --with-jdk-home=/opt/blackdown-jdk-1.4.2.03 --with-ant-home=/usr/share/ant-core --disable-binfilter --with-system-libxml --without-system-mozilla --disable-mozilla --with-firefox --disable-openldap --enable-evolution2 --disable-gnome-vfs --disable-lockdown --disable-atkbridge --with-system-curl --disable-gtk --enable-kde  --with-system-stdlibs  '--with-distro=Gentoo' '--with-vendor=Gentoo' '--with-arch=x86' '--with-srcdir=/var/tmp/portage/openoffice-2.0.2/distdir' '--with-lang=en-US' '--with-num-cpus=1' '--with-binsuffix=2' '--with-installed-ooo-dirname=openoffice' '--with-tag=OOO_2_0_2' '--disable-gtk' '--enable-kde' '--disable-cairo' '--without-system-cairo' '--disable-quickstart' '--disable-access' '--disable-mono' '--disable-post-install-scripts' '--enable-hunspell' '--with-system-hunspell' '--mandir=/usr/share/man' 'CFLAGS=-O2 -march=pentium-m -pipe -mfpmath=sse -ffast-math -fno-strict-aliasing'
 Use gcc33:  ''
 ccache:     no
 icecream:   no
Cleaning /var/tmp/portage/openoffice-2.0.2/image//usr/lib/openoffice
Building /var/tmp/portage/openoffice-2.0.2/image//usr/lib/openoffice/ooo-wrapper2
Generating man page ...
Building /var/tmp/portage/openoffice-2.0.2/image//usr/lib/openoffice/install-dict
Building /var/tmp/portage/openoffice-2.0.2/image//usr/lib/openoffice/program/java-set-classpath
Building /var/tmp/portage/openoffice-2.0.2/image//usr/lib/openoffice/program/pyunorc-update64
Installing extra en-US templates ...
Installing system files ...
Execute ooinstall ...
Reading setup from ./setup
Sucking env from build setup
Performing environment substitutions ...
Use of uninitialized value in string eq at ./ooinstall line 58.
Setting up environment
Running installer
... checking environment variables ...

########################################################
make_installer.pl, version 1.0
Product list file: openoffice.lst
Taking setup script from solver
Unpackpath: /var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/instsetoo_native/util
Compiler: unxlngi6
Product: OpenOffice
BuildID: 9011
Build: OOB680
No minor set
Product version
Installpath: /usr/lib/openoffice
Package format: native
Package list file: ../inc_openoffice/unix/packagelist.txt
Addon-Package list file: ../inc_openoffice/unix/packagelist_language.txt
Not calling epm
No file stripping
Unzip ARCHIVE files
services.rdb can be created
Languages:
        en-US
########################################################
... checking required files ...
...... searching zip ...
        Found: /usr/bin/zip
...... searching unzip ...
        Found: /usr/bin/unzip
... analyzing openoffice.lst ...
... analyzing script: /var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin/setup_osl.ins ...
... analyzing directories ...
... analyzing files ...
... analyzing scpactions ...
... analyzing shortcuts ...
... analyzing profile ...
... analyzing profileitems ...
... analyzing modules ...
------------------------------------
... languages en-US ...
... analyzing files ...
... analyzing files with flag ARCHIVE ...
... analyzing files with flag SCPZIP_REPLACE ...
... analyzing files with flag PATCH_SO_NAME ...
... creating preregistered services.rdb ...
... cleaning the output tree ...
... removing directory /var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/instsetoo_native/util/OpenOffice//zip/en-US ...
... removing directory /var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/instsetoo_native/util/OpenOffice//services.rdb/en-US_witherror_1 ...

**************************************************
ERROR: ERROR: Could not register all components!
in function: create_services_rdb
**************************************************

**************************************************
ERROR: Saved logfile: /var/tmp/portage/openoffice-2.0.2/work/ooo-build-2.0.2/build/OOO_2_0_2/instsetoo_native/util/OpenOffice//logging/en-US/log_OOB680__en-US.log
**************************************************
Sun Mar 19 12:32:16 2006 (00:14 min.)
Failed to install:  at ./ooinstall line 127.
make: *** [install] Error 1

!!! ERROR: app-office/openoffice-2.0.2 failed.
Call stack:
  ebuild.sh, line 1557:   Called dyn_install
  ebuild.sh, line 1039:   Called src_install

!!! Installation failed!
!!! If you need support, post the topmost build error, and the call stack if relevant.

chipper ~ # emerge --info
Portage 2.1_pre6-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.4-r1, 2.6.15-suspend2-r5 i686)
=================================================================
System uname: 2.6.15-suspend2-r5 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -mfpmath=sse -ffast-math -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -mfpmath=sse -ffast-math -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups dri dvd dvdr eds emboss encode firefox foomaticdb fortran gdbm gif gpm gstreamer gtk2 hal imlib ipv6 java jpeg kde kdeenablefinal kdexdeltas libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg mysql ncurses nls nsplugin ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl spell sse sse2 ssl tcpd truetype truetype-fonts type1-fonts vorbis win32codecs xml2 xmms xscreensaver xv xvid zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Comment 1 Dominik Strehlke 2006-03-19 03:36:28 UTC
Created attachment 82529 [details]
Here's the logfile created by the installer
Comment 2 Hanno Zysik (geki) 2006-03-19 07:16:52 UTC
Maybe this is related to bug 124660.
'-march=pentium-m' and 'pyuno' stuff.

Dominik:
Drop this flag '-ffast-math'. Recompile from scratch.
If it still fails drop also '-mfpmath=sse' and recompile.

If it still fails check the mentioned bug.
I will do a hack to cut pyuno stuff out.
I will post it there.
Comment 3 Andreas Proschofsky (RETIRED) gentoo-dev 2006-03-30 12:44:26 UTC
Dominik, did you try to build with all the extra stuff removed from the CFLAGS? Also just to make sure: You got enough free disk space?
Comment 4 Dominik Strehlke 2006-03-30 13:20:10 UTC
Andreas, thanks for checking back on me.
My last try was with CFLAGS -O2 -march=pentium4 -pipe -fomit-frame-pointer

Same error. I do have enough diskspace
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda1             58576444  37880548  20695896  65% /
Comment 5 Andreas Proschofsky (RETIRED) gentoo-dev 2006-04-19 04:53:39 UTC
Did you try again more recently, we had some silent updates to the ooo-build-version, which might have fixed this (just might ;) )
Comment 6 Patrick McLean gentoo-dev 2006-04-25 11:43:44 UTC
I have been getting this on one of my machines (sync as of today):

LD_LIBRARY_PATH=../../common:../../i18n:../../tools/toolutil:../../layout:../../layoutex:../../extra/ustdio:../../tools/ctestfw:../../data/out:../../data:../../stubdata/:$LD_LIBRARY_PATH  ../../tools/pkgdata/pkgdata -p uconvmsg -O pkgdata.inc -m static -d uconvmsg -T uconvmsg uconvmsg/uconvmsg.lst
gmake[4]: Entering directory `/diskless/base/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.7/build/OOO_2_0_2/icu/unxlngi6.pro/misc/build/icu/source/extra/uconv'
cat uconvmsg/uconvmsg.lst > uconvmsg/uconvmsg_static.lst
LD_LIBRARY_PATH=../../common:../../i18n:../../tools/toolutil:../../layout:../../layoutex:../../extra/ustdio:../../tools/ctestfw:../../data/out:../../data:../../stubdata/:$LD_LIBRARY_PATH  ../../tools/gencmn/gencmn -e uconvmsg -n uconvmsg -S -d uconvmsg 0 uconvmsg/uconvmsg_static.lst
Inconsistency detected by ld.so: dl-minimal.c: 137: realloc: Assertion `new == ptr' failed!
gmake[4]: *** [uconvmsg/uconvmsg_dat.c] Error 127
gmake[4]: Leaving directory `/diskless/base/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.7/build/OOO_2_0_2/icu/unxlngi6.pro/misc/build/icu/source/extra/uconv'
make[3]: *** [package-resfiles] Error 2
make[3]: Leaving directory `/diskless/base/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.7/build/OOO_2_0_2/icu/unxlngi6.pro/misc/build/icu/source/extra/uconv'
make[2]: *** [all-recursive] Error 2
make[2]: Leaving directory `/diskless/base/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.7/build/OOO_2_0_2/icu/unxlngi6.pro/misc/build/icu/source/extra'
make[1]: *** [all-recursive] Error 2
make[1]: Leaving directory `/diskless/base/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.7/build/OOO_2_0_2/icu/unxlngi6.pro/misc/build/icu/source'
dmake:  Error code 2, while making './unxlngi6.pro/misc/build/so_built_so_icu'
'---* tg_merge.mk *---'

ERROR: Error 65280 occurred while making /diskless/base/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.7/build/OOO_2_0_2/icumake: *** [stamp/build] Error 1

!!! ERROR: app-office/openoffice-2.0.2-r2 failed.
Call stack:
  ebuild.sh, line 1525:   Called dyn_compile
  ebuild.sh, line 928:   Called src_compile
  openoffice-2.0.2-r2.ebuild, line 225:   Called die

!!! Build failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

here's the emerge --info

Portage 2.1_pre9-r4 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo-r1 i686)
=================================================================
System uname: 2.6.16-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 3.40GHz
Gentoo Base System version 1.12.0_pre18
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -Os -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/rcscripts/addons /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/share/gnome /usr/share/hwdata /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/local /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev /usr/share/gnome/apps /usr/share/gnome/bonobo /usr/share/gnome/capplets /usr/share/gnome/cursor-fonts /usr/share/gnome/fonts /usr/share/gnome/help /usr/share/gnome/html /usr/share/gnome/panel /usr/share/gnome/ui /usr/share/gnome/vfolders /usr/share/gnome/vino /usr/share/gnome/wm-properties /var/local /etc/env.d"
CXXFLAGS="-march=pentium2 -Os -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en_CA en_GB en_US en fr zh_CN zh_TW"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/gentopia /usr/local/portage /usr/local/diskless"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 accessibility acpi ada alsa arts asf audiofile avi bash-completion berkdb bitmap-fonts bonobo bzip2 cairo caps cdparanoia cdr cli cpudetection crypt css ctype cups curl custom-cflags dbus divx4linux doc dpms dri dts dv dvd dvdr dvdread eds emacs emboss encode esd evo examples exif expat ffmpeg fftw firefox flac foomaticdb fortran ftp gb gcc-libffi gcj gd gdbm gif gimp gimpprint glibc-omitfp glitz glut gmp gnome gnomedb gnuplot gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile gzip hal haskell i8x0 icu idea idn image imagemagick imap imlib imlib2 inkjar ipv6 isdnlog jabber java jpeg junit kde largeterminal latex lcms ldap libg++ libgda libwww live lzo mad matroska mikmod mjpeg mmap mmx mng mono motif mozdevelop mozilla mozsvg mp3 mpeg mule mysql ncurses netboot network nfs nis nls no-old-linux no_wxgtk1 nonfsv4 nptl nptlonly objc odbc ogg oggvorbis openal opengl pam pam_console pascal patented pcre pda pdf pdflib perl php plugin png posix postgres povray ppds pppd python qt quicktime quotas radeon rdesktop readline real reflection rtc ruby samba scanner sdk sdl session shorten silverxp sndfile sox speex spell spl sql sqlite ssl stream subversion svg tcltk tcpd tetex tga theora tiff transcode truetype truetype-fonts type1-fonts unicode usb userlocales vcd vidix vim-with-x vorbis win32codecs wmf wxwindows xanim xemacs xine xml xml2 xmms xorg xpm xprint xscreensaver xv xvid xvmc zlib elibc_glibc input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_synaptics input_devices_void input_devices_wacom kernel_linux linguas_en_CA linguas_en_GB linguas_en_US linguas_en linguas_fr linguas_zh_CN linguas_zh_TW userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fglrx video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_nvidia video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS
Comment 7 Dominik Strehlke 2006-04-28 07:31:52 UTC
@Andreas: You were right, the error is gone.
Thanks for your help!
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-04-29 00:09:00 UTC
*** Bug 131636 has been marked as a duplicate of this bug. ***
Comment 9 Andrei Ivanov 2006-04-29 00:26:46 UTC
Hmm... I've synced yesterday (28.04.2006) and openoffice failed to install for me... I don't see why this bug is marked as resolved.
Comment 10 Dominik Strehlke 2006-04-29 15:18:18 UTC
Andrej,
I have marked it as resolved because the error which caused this bug in the first place is gone for me. As Andreas pointed out, it may very well have been corrected in one of the recent updates to ooo-build.

Are you getting the same error message or a different one?
Comment 11 Andrei Ivanov 2006-04-29 23:56:44 UTC
Well, according to Jacub Mok, I do. At least it's on a different language set (fr). Take a look at Bug 131636 please.
Comment 12 Dominik Strehlke 2006-04-30 04:05:57 UTC
Andrej,
Try to cut some of your CFLAGS. As pointed out earlier in this bug by Hanno, compile OOo without -mfpmath=sse.

My current CFLAGS setting which produces a clean build is CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer -ffast-math" on gcc 3.4.6

I don't want to throw too much garbage in here, but if anyone needs my emerge --info, let me know.
Comment 13 Andrei Ivanov 2006-05-02 23:15:45 UTC
Now I've recompiled Oo (build 2.0.2.7 and the new 2.0.2.8) with CFLAGS="-march=athlon-xp -O2 -pipe"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
LDFLAGS="" and I get the same error as the one described here.
Maybe Oo just cannot be compiled with gcc-4.1?

Reposting emerge info:

Portage 2.1_pre10-r2 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r2, 2.6.16-ck6-r1 i686)
=================================================================
System uname: 2.6.16-ck6-r1 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.0_pre19
dev-lang/python:     2.4.3
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.91.0.6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ftree-vectorize -ffast-math -mfpmath=sse -DNDEBUG -DG_DISABLE_ASSERT -DNO_DEBUG"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -ftree-vectorize -ffast-math -mfpmath=sse -DNDEBUG -DG_DISABLE_ASSERT -DNO_DEBUG -fno-enforce-eh-specs -fvisibility=hidden -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.lug.ro/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort"
LINGUAS="en-US ro"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib acl acpi adns alsa apache2 arts audiofile avi bitmap-fonts bzip2 cairo calendar caps cdb cdr cli crypt cups curl curlwrappers dbus dio divx4linux dri dv dvd dvdr eds emboss encode esd exif fam fastcgi firefox flac flash foomaticdb fortran freetds ftp gd gif glibc-omitfp gmp gnome gnomedb gnutls gphoto2 gpm gstreamer gtk2 gtkhtml hal imagemagick imap imlib innodb isdnlog jack jpeg jpeg2k kde kdeenablefinal lcms libedit libgda mad maildir mailwrapper memlimit mhash milter mime ming mmap mmx mng mp3 mpeg ncurses nptl nptlonly nsplugin offensive ogg openal opengl pam pcntl pcre pdf pdflib pic png posix ppds pppd qt quicktime readline recode reflection samba scanner sdl session shared sharedmem simplexml slang soap sockets socks5 speex spell spl sqlite sse ssl svg sysvipc tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb vhosts vorbis wmf xine xml xmlrpc xorg xprint xv xvid yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en-US linguas_ro userland_GNU video_cards_vesa video_cards_vga video_cards_nv video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS
Comment 14 Dominik Strehlke 2006-05-04 08:03:26 UTC
I THINK I've read somewhere in another bug that it's possible to compile OOo 2.0.2 with gcc 4.1 but I may very well be wrong here.

I did not succeed, and kept on getting the same error as you.

Maybe you should try again with a 3.4 branch gcc.
Comment 15 Andrei Ivanov 2006-05-04 08:54:20 UTC
What I don't understand is what exactly fails here... because the compilation seems to be ok with gcc-4.1
Comment 16 Andreas Proschofsky (RETIRED) gentoo-dev 2006-05-04 09:13:55 UTC
(In reply to comment #15)
> What I don't understand is what exactly fails here... because the compilation
> seems to be ok with gcc-4.1
> 

Most likely regcomp, which is infamous for being very sensitive to compilers and CFLAGS and segfaulting if it doesn't like either.

You could also look through a build log and see if there is something going wrong when building project cpputools (where regcomp is)
Comment 17 Andrei Ivanov 2006-05-15 13:34:32 UTC
I've installed gcc 3.4.6 and recompiled openoffice and it fails at the same point as described in Bug 131636 and with the same log (I've replaced 2.0.2.7 with 2.0.2.9 in the previous log and then diffed the logs and only the timestamps were different).
I've used
CFLAGS="-march=athlon-xp -O2 -pipe"
CXXFLAGS="-march=athlon-xp -O2 -pipe"

I have no ideea what to do next...
Probably one of its dependencies makes it fail, but I don't know how to tell which one...
Comment 18 Kenton Groombridge 2006-05-17 09:44:42 UTC
I think my problem is the same as this one.  I have been playing with the CFLAGS using the recommendations posted here and on other openoffice build problems with gcc 4.1.  Can't get it to compile.

emerge --info
Portage 2.1_rc1-r2 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r3, 2.6.16-ck10 i686)
=================================================================
System uname: 2.6.16-ck10 i686 AMD Athlon(tm)
Gentoo Base System version 1.12.0_pre19
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -mmmx -msse -m3dnow"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -mmmx -msse -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.osuosl.org/ http://mirror.phy.olemiss.edu/mirror/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext S3TC X a52 aac acpi alsa amarok apache2 arts asf asm audiofile berkdb bzip2 cairo cddb cdio cdparanoia cdr cdrom cli crypt css cups curl dga dlloader dri dvd dvdr dvdread eds emoticon encode fame ffmpeg firefox flac foomaticdb gdbm gif gimp glibc-omitfp glut gstreamer gtk gtk2 gzip ieee1394 imagemagick imlib imlib2 input_devices_evdev input_devices_joystick input_devices_keyboard iproute2 isdnlog jack java javascript joystick jpeg jpeg2k kde lame libwww live logitech-mouse lzo mad mikmod mjpeg mmx mmxext motif mozsvg mp3 mpeg mpeg2 mplayer musicbrainz ncurses network nforce2 nls nntp no-old-linux nomalloccheck nptl nptlonly nsplugin nspr nvidia ogg openal opengl pam pcre pdf perl physfs png pppd python qt quicktime readline real reflection rtc samba scanner sdl spell sse ssl subtitles svg sysfs tcltk tcpd theora tiff transcode truetype truetype-fonts type1 type1-fonts udev unicode urandom usb userlocales v4l2 vcd visualization vorbis win32codecs wmf xine xml xorg xpm xrandr xscreensaver xv xvid xvmc zlib zvbi elibc_glibc kernel_linux userland_GNU video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS


Using configure options from the environment
Setup:
 Tag:        'OOO_2_0_2'
 Apply:      '/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/patches/src680/apply'
 Flags:      ''
 Suffix:     '2'
 Dir:        '/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/build'
 DestDir:    ''
 Path:       '/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/build/bin:/opt/sun-jdk-1.5.0.06/bin:.:/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin:/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/build/OOO_2_0_2/solenv/unxlngi6/bin:/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/build/OOO_2_0_2/solenv/bin:/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/build/bin:/usr/qt/3/bin:/usr/local/sbin:/sbin:/usr/sbin:/usr/lib/portage/bin:/usr/local/bin:/bin:/usr/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.0:/opt/sun-jdk-1.5.0.06/bin:/opt/sun-jdk-1.5.0.06/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/bin:/var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/bin'
 Prefix:     '/var/tmp/portage/openoffice-2.0.2-r2/image//usr'
 Mandir:     '/var/tmp/portage/openoffice-2.0.2-r2/image//usr/share/man'
 Docdir:     '/var/tmp/portage/openoffice-2.0.2-r2/image//usr/share/doc/packages/OpenOffice.org'
 Sysconf:    '/var/tmp/portage/openoffice-2.0.2-r2/image//usr/etc'
 OOInBase:   '/usr/lib/openoffice'
 OOInstall:  '/var/tmp/portage/openoffice-2.0.2-r2/image//usr/lib/openoffice'
 OODestDir:  '/var/tmp/portage/openoffice-2.0.2-r2/image/'
 Config:     --disable-binfilter --disable-crashdump --disable-epm --enable-crashdump=no --enable-openldap --with-build-version="Build 2.0.2.9" --with-lang="en-US" --without-fonts --without-gpc --with-system-freetype --with-system-gcc --with-system-jpeg --with-system-libxml --with-system-mozilla --with-system-python --with-system-zlib --enable-evolution2 --enable-atkbridge --with-alloc=system --enable-cairo=yes --with-system-xrender-headers --disable-fontooo --disable-odk --enable-libsn --with-system-curl --with-system-expat --with-system-stdlibs --with-system-xrender-headers --without-system-jpeg --without-nas --disable-qadevooo --with-dynamic-xinerama --with-jdk-home=/opt/sun-jdk-1.5.0.06 --with-ant-home=/usr/share/ant-core --disable-binfilter --with-system-libxml --without-system-mozilla --disable-mozilla --with-firefox --disable-openldap --enable-evolution2 --disable-gnome-vfs --disable-lockdown --disable-atkbridge --enable-gtk --enable-kde  --with-system-stdlibs  '--with-distro=Gentoo' '--with-vendor=Gentoo' '--with-arch=x86' '--with-srcdir=/var/tmp/portage/openoffice-2.0.2-r2/distdir' '--with-lang=en-US' '--with-num-cpus=1' '--with-binsuffix=2' '--with-installed-ooo-dirname=openoffice' '--with-tag=OOO_2_0_2' '--enable-gtk' '--enable-kde' '--enable-cairo' '--with-system-cairo' '--disable-quickstart' '--disable-mono' '--disable-access' '--disable-post-install-scripts' '--enable-hunspell' '--with-system-hunspell' '--mandir=/usr/share/man' 'CFLAGS=-O2 -march=athlon-xp -mtune=athlon-xp -pipe -mmmx -msse -m3dnow -fno-strict-aliasing'
 Use gcc33:  ''
 ccache:     no
 icecream:   no
Cleaning /var/tmp/portage/openoffice-2.0.2-r2/image//usr/lib/openoffice
Building /var/tmp/portage/openoffice-2.0.2-r2/image//usr/lib/openoffice/ooo-wrapper2
Generating man page ...
Building /var/tmp/portage/openoffice-2.0.2-r2/image//usr/lib/openoffice/install-dict
Building /var/tmp/portage/openoffice-2.0.2-r2/image//usr/lib/openoffice/program/java-set-classpath
Building /var/tmp/portage/openoffice-2.0.2-r2/image//usr/lib/openoffice/program/pyunorc-update64
Installing extra en-US templates ...
Installing system files ...
Execute ooinstall ...
Reading setup from ./setup
Sucking env from build setup
Performing environment substitutions ...
Use of uninitialized value in string eq at ./ooinstall line 58.
Setting up environment
Running installer
... checking environment variables ...

########################################################
make_installer.pl, version 1.0
Product list file: openoffice.lst
Taking setup script from solver
Unpackpath: /var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/build/OOO_2_0_2/instsetoo_native/util
Compiler: unxlngi6
Product: OpenOffice
BuildID: 9011
Build: OOB680
No minor set
Product version
Installpath: /usr/lib/openoffice
Package format: native
Package list file: ../inc_openoffice/unix/packagelist.txt
Addon-Package list file: ../inc_openoffice/unix/packagelist_language.txt
Not calling epm
No file stripping
Unzip ARCHIVE files
services.rdb can be created
Languages:
        en-US
########################################################
... checking required files ...
...... searching zip ...
        Found: /usr/bin/zip
...... searching unzip ...
        Found: /usr/bin/unzip
... analyzing openoffice.lst ...
... analyzing script: /var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/build/OOO_2_0_2/solver/680/unxlngi6.pro/bin/setup_osl.ins ...
... analyzing directories ...
... analyzing files ...
... analyzing scpactions ...
... analyzing shortcuts ...
... analyzing profile ...
... analyzing profileitems ...
... analyzing modules ...
------------------------------------
... languages en-US ...
... analyzing files ...
... analyzing files with flag ARCHIVE ...
... analyzing files with flag SCPZIP_REPLACE ...
... analyzing files with flag PATCH_SO_NAME ...
... creating preregistered services.rdb ...
... cleaning the output tree ...
... removing directory /var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/build/OOO_2_0_2/instsetoo_native/util/OpenOffice//zip/en-US ...
... removing directory /var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/build/OOO_2_0_2/instsetoo_native/util/OpenOffice//services.rdb/en-US_witherror_1 ...

**************************************************
ERROR: ERROR: Could not register all components!
in function: create_services_rdb
**************************************************

**************************************************
ERROR: Saved logfile: /var/tmp/portage/openoffice-2.0.2-r2/work/ooo-build-2.0.2.9/build/OOO_2_0_2/instsetoo_native/util/OpenOffice//logging/en-US/log_OOB680__en-US.log
**************************************************
Wed May 17 11:51:39 2006 (00:25 min.)
Failed to install:  at ./ooinstall line 129.
make: *** [install] Error 1

!!! ERROR: app-office/openoffice-2.0.2-r2 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_install
  ebuild.sh, line 1005:   Called src_install
  openoffice-2.0.2-r2.ebuild, line 239:   Called die

!!! Installation failed!
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 19 Andreas Proschofsky (RETIRED) gentoo-dev 2006-05-26 03:16:04 UTC
*** Bug 134234 has been marked as a duplicate of this bug. ***
Comment 20 Andreas Proschofsky (RETIRED) gentoo-dev 2006-05-29 02:54:21 UTC
Just to reassure: Works fine for me with both gcc-3.4.6 and gcc-4.1.1, any updates from someone else?
Comment 21 Andrei Ivanov 2006-05-30 08:42:50 UTC
I've just tried again, with gcc-4.1.1... it doesn't work :((
with ooo-build-2.0.2.11
The same error...
Comment 22 Kenton Groombridge 2006-06-03 14:58:26 UTC
Here is a solution that worked for me:

I set

CFLAGS="-O2 -march=athlon-xp -mtune=athlon-xp -pipe -fomit-frame-pointer -mmmx -msse -m3dnow -mfpmath=sse"

emerge --oneshot python
emerge --oneshot openoffice

I previous built python with -O3 and -ffast-math.

Even though I attempted to build openoffice with the above CFLAGS, it kept dying until I rebuild python with the same CFLAGS.

Not sure if it was the -O3 or the -ffast-math, but I am not going to wait six hours for every build to find out.
Comment 23 Lubos Dolezel 2006-06-04 05:32:10 UTC
I've removed -ffast-math but left -O3 and recompiled python - wow, it worked. OpenOffice now compiles fine.
Comment 24 Andrei Ivanov 2006-06-05 08:04:37 UTC
Indeed... it works... :)
Comment 25 Paul de Vrieze (RETIRED) gentoo-dev 2006-06-05 13:35:49 UTC
Lubos: Please be aware of what -ffast-math does. It takes shortcuts when dealing with floating point math. This can lead to inaccurate math. This is something that should never be enabled for program environments like python. The reason being that one can never be sure what programs will be used, and whether the lost accuracy is a problem with those programs.

For the same reason -ffast-math should only be enabled locally, not globally. Only certain applications benefit from it while the inaccurateness not being a problem. The main category is (de)compression code for audio and video. The noise there is probably small enough not to notice.
Comment 26 Andreas Proschofsky (RETIRED) gentoo-dev 2006-06-05 22:44:39 UTC
So it indeed was another problem with CFLAGS-overoptimization, thanks to everyone for testing, closing
Comment 27 Jakub Moc (RETIRED) gentoo-dev 2006-09-21 19:53:00 UTC
*** Bug 148585 has been marked as a duplicate of this bug. ***
Comment 28 Dominik Strehlke 2006-10-22 16:35:29 UTC
I don't think anything's going to happen here anymore. Can we close?
Comment 29 Andrei Ivanov 2006-10-23 00:21:34 UTC
fine by me