Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 220026 - app-office/openoffice fails to emerge with gcc-3.4.x
Summary: app-office/openoffice fails to emerge with gcc-3.4.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
: 217490 234495 242192 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-02 10:56 UTC by Maurizio Rottin
Modified: 2008-10-24 10:15 UTC (History)
9 users (show)

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


Attachments
all /var/tmp/portage/app-office/openoffice-2.4.0/temp files (temp.tar.bz2,374.92 KB, application/x-bzip2)
2008-05-02 11:03 UTC, Maurizio Rottin
Details
Address some issues in the current openoffice-3.0.0.ebuild (openoffice-3.0.0.ebuild.patch,1.04 KB, patch)
2008-10-22 15:49 UTC, Gordon Malm (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maurizio Rottin 2008-05-02 10:56:37 UTC
emerge --info
Portage 2.2_pre5 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2.6.23-gentoo-r4 i686)
=================================================================
System uname: 2.6.23-gentoo-r4 i686 Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz
Timestamp of tree: Wed, 30 Apr 2008 11:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r1
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/svn/env /usr/kde/svn/share/config /usr/kde/svn/shutdown /usr/lib/mozilla/defaults/pref /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirrors.tera-byte.com/pub/gentoo http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo http://mirror.ing.unibo.it/gentoo/ ftp://mirror.ing.unibo.it/gentoo/ "
LINGUAS="en_US it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlay /usr/portage/layman/kde"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 acl acpi akode alsa apache2 arts authdaemond bash-completion berkdb bindist bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus debug divx4linux dri dvb dvd dvdr dvdread dvdrw eds emboss encode esd evo examples fam firefox flac fortran gdbm gif glitz gnome gnutils gnutls gpm gstreamer gtk hal iconv ieee1394 insecure-drivers isdnlog java jikes jpeg kde kerberos kqemu laptop ldap log4j logrotate loop-aes mad midi mikmod mmx mmxextmono mp3 mpeg mudflap musicbrainz ncurses network networking nls nptl nptlonly nsplugin ogg opengl openmp openxr oss pam pcmcia pcre pda pdf perl pertty png pppd python qt3 qt3support qt4 quicktime readline reflection samba sasl sdk sdl session slp smb spell spl sse sse2 ssl svg tcpd theora threads tiff truetype unicode usb v4l v4l2 vcd vim-syntax vorbis win32codecs x86 xcomposite xinerama xml xorg xscreensaver xsl xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US it" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Maurizio Rottin 2008-05-02 11:03:08 UTC
Created attachment 151602 [details]
all /var/tmp/portage/app-office/openoffice-2.4.0/temp files

all the build logs, environmente etc.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2008-05-02 16:46:03 UTC
=============
Building module pyuno
=============
/var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/pyuno/source/module
cat /var/tmp/portage/app-office/openoffice-2.4.0/temp/mkMeLIHN >> ../../unxlngi6.pro/misc/all_pyuno.dpslo
--- NOOPTFILES ---
`../../unxlngi6.pro/slo/pyuno_module.obj' is up to date
--- NOOPTFILES OVER ---
-------------
/var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/pyuno/source/loader
cat /var/tmp/portage/app-office/openoffice-2.4.0/temp/mkckfbr7 >> ../../unxlngi6.pro/misc/all_pythonloader.uno.dpslo
-------------
rm -f ../../unxlngi6.pro/lib/pyuno_services.rdb ../../unxlngi6.pro/lib/pyuno_services.tmp ../../unxlngi6.pro/lib/pyuno_services.rdb
cd ../../unxlngi6.pro/lib && regcomp -register -r pyuno_services.tmp -c stocservices.uno -c invocation.uno -c introspection.uno -c invocadapt.uno -c proxyfac.uno -c reflection.uno -c pythonloader.uno
stocservices.uno
invocation.uno
introspection.uno
invocadapt.uno
proxyfac.uno
reflection.uno
pythonloader.uno
register component 'stocservices.uno' in registry 'pyuno_services.tmp' succesful!
register component 'invocation.uno' in registry 'pyuno_services.tmp' succesful!
register component 'introspection.uno' in registry 'pyuno_services.tmp' succesful!
register component 'invocadapt.uno' in registry 'pyuno_services.tmp' succesful!
register component 'proxyfac.uno' in registry 'pyuno_services.tmp' succesful!
terminate called after throwing an instance of 'com::sun::star::registry::InvalidValueException'
/bin/bash: line 1: 16072 Aborted                 regcomp -register -r pyuno_services.tmp -c stocservices.uno -c invocation.uno -c introspection.uno -c invocadapt.uno -c proxyfac.uno -c reflection.uno -c pythonloader.uno
dmake:  Error code 134, while making '../../unxlngi6.pro/lib/pyuno_services.rdb'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/pyuno/source/loader
make: *** [stamp/build] Error 1
 *
 * ERROR: app-office/openoffice-2.4.0 failed.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2008-05-02 16:48:26 UTC
Comment #2 is the actual error extracted from the build.log in the attachment.
Comment 4 Malte E. 2008-05-03 18:33:12 UTC
Which version of python are you using? The latest Openoffice compiles fine for me with python 2.5.2-r2 (which another program requires).
Comment 5 Maurizio Rottin 2008-05-04 10:21:08 UTC
(In reply to comment #4)
> Which version of python are you using? The latest Openoffice compiles fine for
> me with python 2.5.2-r2 (which another program requires).
> 

2.4.4-r9, do you think i can upgrade to 2.5 safely?
Comment 6 Malte E. 2008-05-04 19:16:07 UTC
I had no problems with it. Portage still works fine so you'll be able to downgrade if anything stops working.
Comment 7 Maurizio Rottin 2008-05-05 14:43:05 UTC
(In reply to comment #6)
> I had no problems with it. Portage still works fine so you'll be able to
> downgrade if anything stops working.

not working with same python as yours

terminate called after throwing an instance of 'com::sun::star::registry::InvalidValueException'
/bin/bash: line 1: 11303 Aborted                 regcomp -register -r pyuno_services.tmp -c stocservices.uno -c invocation.uno -c introspection.uno -c invocadapt.uno -c proxyfac.uno -c reflection.uno -c pythonloader.uno
dmake:  Error code 134, while making '../../unxlngi6.pro/lib/pyuno_services.rdb'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/pyuno/source/loader
Comment 8 sritchie 2008-05-06 17:55:38 UTC
If it helps, I am experiencing the same broken build issue as Maurizio.

tofino etc # emerge -uDva world

These are the packages that would be merged, in order:

Calculating world dependencies... done!
[ebuild     U ] app-office/openoffice-2.4.0 [2.3.1-r1] USE="cups dbus eds firefox gnome gstreamer gtk java kde ldap opengl%* pam -binfilter -debug -mono -odk -seamonkey -webdav -xulrunner (-cairo%*) (-sound%)" LINGUAS="-af -ar -as_IN -be_BY -bg -bn -br -bs -ca -cs -cy -da -de -dz -el -en -en_GB -en_US -en_ZA -eo -es -et -fa -fi -fr -ga -gl -gu_IN -he -hi_IN -hr -hu -it -ja -km -ko -ku -lt -lv -mk -ml_IN -mr_IN -nb -ne -nl -nn -nr -ns -or_IN -pa_IN -pl -pt -pt_BR -ru -rw -sh% -sk -sl -sr% -ss -st -sv -sw_TZ -ta_IN -te_IN -tg -th -ti_ER -tn -tr -ts -uk -ur_IN -ve -vi -xh -zh_CN -zh_TW -zu (-sh_YU%) (-sr_CS%)" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] yes
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) app-office/openoffice-2.4.0 to /

register component 'invocadapt.uno' in registry 'pyuno_services.tmp' succesful!
register component 'proxyfac.uno' in registry 'pyuno_services.tmp' succesful!
terminate called after throwing an instance of 'com::sun::star::registry::InvalidValueException'
/bin/bash: line 1: 23627 Aborted                 regcomp -register -r pyuno_services.tmp -c stocservices.uno -c invocation.uno -c introspection.uno -c invocadapt.uno -c proxyfac.uno -c reflection.uno -c pythonloader.uno
dmake:  Error code 134, while making '../../unxlngi6.pro/lib/pyuno_services.rdb'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/pyuno/source/loader
make: *** [stamp/build] Error 1
 *
 * ERROR: app-office/openoffice-2.4.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5373:  Called die
 * The specific snippet of code:
 *       make || die "Build failed"
 *  The die message:
 *   Build failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-office/openoffice-2.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/openoffice-2.4.0/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.05"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info

tofino ~ # emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2.6.23-gentoo-r8 i686)
=================================================================
System uname: 2.6.23-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Timestamp of tree: Mon, 05 May 2008 16:33:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.3.5-r3, 2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa arts berkdb bzip2 cairo cdr cli cracklib crypt cups dbus doc dri dvd dvdr dvdread eds emacs emboss encode esd ethereal evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg kde kerberos ldap libnotify mad midi mikmod mmx mozilla mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl server session sndfile spell spl sse ssl svg tcpd tiff truetype unicode vcd vnc vncviewer vorbis win32codecs wma x86 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Comment 9 Martin Pohlack 2008-05-08 23:13:13 UTC
Same error here:

...
pythonloader.uno
register component 'stocservices.uno' in registry 'pyuno_services.tmp' succesful!
register component 'invocation.uno' in registry 'pyuno_services.tmp' succesful!
register component 'introspection.uno' in registry 'pyuno_services.tmp' succesful!
register component 'invocadapt.uno' in registry 'pyuno_services.tmp' succesful!
register component 'proxyfac.uno' in registry 'pyuno_services.tmp' succesful!
terminate called after throwing an instance of 'com::sun::star::registry::InvalidValueException'
/bin/bash: line 1: 15699 Aborted                 regcomp -register -r pyuno_services.tmp -c stocservices.uno -c invocation.uno -c introspection.uno -c invocadapt.uno -c proxyfac.uno -c reflection.uno -c pythonloader.uno
dmake:  Error code 134, while making '../../unxlngi6.pro/lib/pyuno_services.rdb'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-2.4.0/work/ooo/build/OOH680_m12/pyuno/source/loader
make: *** [stamp/build] Error 1
 *
 * ERROR: app-office/openoffice-2.4.0 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5411:  Called die
 * The specific snippet of code:
 *       make || die "Build failed"
 *  The die message:
 *   Build failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-office/openoffice-2.4.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/openoffice-2.4.0/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.15"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info 
Comment 10 Daniel Tourde 2008-05-13 12:11:45 UTC
dito...

emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2.6.24-gentoo-r3 i686)
=================================================================
System uname: 2.6.24-gentoo-r3 i686 Intel(R) Xeon(TM) CPU 2.80GHz
Timestamp of tree: Tue, 13 May 2008 06:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.3.6-r4, 2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en sv fr si"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aac aalib accessibility acl acpi ada adns aiglx aim akode alsa amarok ansi apache2 apm arts asf auctex audiofile automount bash-completion bcmath beagle berkdb bidi blas bonobo boost boundchecking bzip2 bzlib c++ cairo calendar caps cdb cdr cgi cjk clearcase cli cmucl cpdflib cpudetection cracklib crypt cscope ctype cups curl curlwrappers cvs d dba dbase dbm dbus dbx deprecated dga dio directfb discouraged divx4linux doc dri dvb dvd dvdr dvdread eds emacs emacs-w3 emboss encode esd ethereal evo exif expat fam fastcgi fbcon fbcondecor ffcall ffmpeg fftw filepro firebird firefox flac flatfile foomaticdb fortran freetds ftp gcc-libffi gcj gd gdbm ggi gif ginac glut gmp gnome gnustep gnutls gphoto2 gpm gsnd gstreamer gtk gtkhtml guile hal haskell hdf5 iconv icq icu idn imagemagick imap imlib innodb iodbc ipv6 isdnlog jabber jack java javascript joystick jpeg junit kde kdeenablefinal kerberos krb4 ladcca lapack lcms ldap leim libgda lzo mad maildir mailwrapper mbox mhash midi mikmod milter mime ming mjpeg mmap mmx mng mono motif mozbranding mp3 mpeg mplayer msession msn mudflap mule mysql mysqli nas ncurses netcdf networking new-login nis nls nptl nptlonly nsplugin nvidia objc objc++ odbc offensive ofx ogg openal opengl openmp oscar oss pam pascal pcntl pcre pda pdf perforce perl php pic pie plotutils plugin png portaudio posix postgres povray ppds pppd prelude profile python qhull qt3 qt3support qt4 quicktime readline reflection regex ruby samba sasl scanner sdl seamonkey session simplexml slang slp sndfile snmp soap sockets socks5 sox speex spell spl sql sqlite sqlite3 sse sse2 ssl stlport subversion svg svga svnserve sysvipc szip tcl tcltk tcpd tetex theora threads tidy tiff tk tokenizer truetype unicode usb vhosts vorbis wddx win32codecs winbind wmf wxwindows x86 xcomposite xface xft xine xinerama xml xml2 xmlrpc xorg xosd xpm xprint xsl xv xvid yahoo yaz zeo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en sv fr si" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 11 Markus Herhoffer 2008-05-13 21:37:04 UTC
Same thing with me. 

 # emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2.6.23-gentoo-r3 i686)
=================================================================
System uname: 2.6.23-gentoo-r3 i686 Genuine Intel(R) CPU L2400 @ 1.66GHz
Timestamp of tree: Tue, 13 May 2008 20:03:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=...
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/pro-audio /usr/portage/local/layman/lila-theme /usr/portage/local/jmbsvicetto"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi administrator aiglx alsa apache2 apm audiofile avi bash-completion berkdb bitmap-fonts bluetooth branding browserplugin bzip2 cairo cli cpudetection cracklib crypt ctype cups dba dbus dia dri dssi dvd dvdread eds emboss emf encode esd ethereal evo exif expat fam fastbuild fbsplash ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimpprint glut gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal ical iconv idn imagemagick imlib intl ipv6 isdnlog jack jackmidi java java5 jpe jpeg kerberos lcms ldap libg++ libwww logrotate mad memlimit midi mikmod mmx mng mono motif mozdevelop mozilla mp3 mp4 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf pdflib perl php plotutils png posix postscript poszscript pppd python qt qt3 qt3support qt4 query-browser quicktime rar readline reflection samba sdl session simplexml slang smp sndfile soap sockets sound spell spl sse sse2 ssl svg tcltk tcpd tetex theora thunderbird tiff tokenizer truetype truetype-fonts type1-fonts udev unicode v4l v4l2 vim visualization vorbis vst wifi win32codecs wmf workbench x86 xml xml2 xorg xsl xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa fbdev i810 intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 12 John Lowry 2008-05-15 17:57:27 UTC
I have this problem as well.  It looks to me like you have alot of the bug and emerge config info already entered by others, so if you want mine too, please let me know. (I've already entered it into a Gentoo forum.  The additional details I have to offer are:

1) The last build that compiled in portage successfully for me was 2.4.0.7 (the one with the black splash screen).  2.4.0.7 runs fine.

2) I am unable to compile builds 2.4.0.8 and 2.4.0.10.  Both fail with the same pyuno error.

I can't say whether the issue is due to a change starting with build 2.4.0.8 or whether it is due to some other change in my configuration (I routinely "emerge world" after scrutinzing what --pretend shows me.)

Not sure this helps, but it would be nice to see this solved.  In the meantime, I am sticking with 2.4.0.7.
Comment 13 Maurizio Rottin 2008-05-16 12:09:04 UTC
(In reply to comment #12)
> 1) The last build that compiled in portage successfully for me was 2.4.0.7 (the
> one with the black splash screen).  2.4.0.7 runs fine.

just tried with ooo-build-2.4.0.7 and OOH680-m10-core.tar.bz2 with no results, i still get the error registering reflection.uno and pythonloader.uno

Comment 14 Andreas Proschofsky (RETIRED) gentoo-dev 2008-05-29 21:59:15 UTC
The breakage is most likely triggered by a cleanup in CFLAGS handling that was introduced in the ebuild around the time of ooo-build-2.4.0.8. Still this only seems to harm machines running gcc-3.4. Is there any specific reason why you don't run a more recent gcc?
Comment 15 Cédric Krier gentoo-dev 2008-05-29 22:57:27 UTC
(In reply to comment #14)
> Is there any specific reason why you don't run a more recent gcc?

For me, I'm on the hardened profile

Comment 16 Andreas Proschofsky (RETIRED) gentoo-dev 2008-05-29 23:23:01 UTC
*** Bug 217490 has been marked as a duplicate of this bug. ***
Comment 17 Maurizio Rottin 2008-05-30 07:59:09 UTC
(In reply to comment #14)
> The breakage is most likely triggered by a cleanup in CFLAGS handling that was
> introduced in the ebuild around the time of ooo-build-2.4.0.8. Still this only
> seems to harm machines running gcc-3.4. Is there any specific reason why you
> don't run a more recent gcc?
> 
i need it to compile some packages that doesn't support gcc4 (don't remeber which one), and for using some non gentoo application.
Is it possible to compile openoffice with gcc4, set some environment in the shell scripts(ooffice, oocalc....) and revert back to gcc3.4?
Comment 18 Maurizio Rottin 2008-06-05 12:49:36 UTC
(In reply to comment #17)
> (In reply to comment #14)
> > The breakage is most likely triggered by a cleanup in CFLAGS handling that was
> > introduced in the ebuild around the time of ooo-build-2.4.0.8. Still this only
> > seems to harm machines running gcc-3.4. Is there any specific reason why you
> > don't run a more recent gcc?
> > 
> i need it to compile some packages that doesn't support gcc4 (don't remeber
> which one), and for using some non gentoo application.
> Is it possible to compile openoffice with gcc4, set some environment in the
> shell scripts(ooffice, oocalc....) and revert back to gcc3.4?
> 
ok it works fine with gcc 4.x
i am able to build the 3.0.0 beta too,
you can close the bug, thank you
Comment 19 Steffen Schaumburg 2008-06-10 01:56:52 UTC
Please don't close the bug, gcc-4 is hardmasked on hardened and there's plenty of other reasons not to install 4.
In any case, a "me too" from me. I'm guessing I'm running one of the more unusual x86/64 systems around, using amd64-hardened 2007.0 with paludis 0.26.2 so it's definitely not portage's fault. Should we report this to upstream perhaps? I don't mind doing it, just post a comment. In the meantime I'll try 2.4.1_rc2 and failing that 2.3.* from CVS.
The other 800 or so packages I have compile fine, though quite a few segfault (due to SSP etc. I assume).
Comment 20 Target 2008-06-10 02:42:39 UTC
Also using a hardened x86_64 profile, but with stock portage rather than paludis. gcc4 is still hardmasked, preventing any upgrade from gcc3.4 without losing toolchain hardening.
Comment 21 Steffen Schaumburg 2008-06-10 15:26:40 UTC
Same error with openoffice-2.4.1_rc2 :(

I googled this now and found the following blog which provides a solution, and an OOo issue tracker number.
http://vijayk.blogspot.com/2005_02_01_archive.html
http://api.openoffice.org/issues/show_bug.cgi?id=37731
The bug was closed in 2005 though. I haven't tried it yet though, will do it shortly unless someone beats me to it ;)
Comment 22 Steffen Schaumburg 2008-06-11 05:50:41 UTC
openoffice-2.3.1-r1 from CVS (its removed from portage by now) also fails the same way. I know that was fairly certain but figured I might as well give it a shot. Will try the fix I posted in my last comment hopefully tonight
Comment 23 Steffen Schaumburg 2008-06-11 18:53:09 UTC
Tried the patch I posted but it failed, after manual checking it turns out that the lines it deletes seem to be gone already :(
Ideas, anyone?
Comment 24 Daniel Tourde 2008-06-12 09:34:37 UTC
OpenOffice 2.4.1 cannot be built either with gcc-3.4

Daniel
Comment 25 Oleg Popov 2008-06-16 17:16:02 UTC
I have the same compiler and the same error.

But when I removed almost all C[XX]FLAGS (all but -O2), it compiled successfully!
Comment 26 Steffen Schaumburg 2008-06-17 18:40:00 UTC
Strange, I reduced my C/CXXFLAGS to just -O2 as well and it still doesn't work.
I also tried these combinations:
"-O2 -pipe -fforce-addr -march=athlon64"
"-O2 -fforce-addr -march=athlon64"
"-O2 -fforce-addr"

Oleg, could you post your emerge --info? Also, which OOo-version where you using?
Comment 27 Oleg Popov 2008-06-19 14:15:40 UTC
> could you post your emerge --info?
I compiled openoffice-2.4.1
And perhaps it's important: I didn't change make.conf to delete CFLAGS,
instead I used the following command:
CFLAGS=-O2 CXXFLAGS=-O2 emerge openoffice

My emerge --info:

Portage 2.1.4.4 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.23-hardened-r9 i686)
=================================================================
System uname: 2.6.23-hardened-r9 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Timestamp of tree: Thu, 19 Jun 2008 01:45:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r8, 2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -mtune=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=i686 -mtune=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.qubenet.net/mirror/gentoo/ ftp://mirror.qubenet.net/mirror/gentoo/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/cross-tools /usr/portage/local/layman/openrc /usr/portage/local/layman/ion-overlay /usr/portage/local/layman/science /usr/portage/local/layman/sunrise /usr/portage/local/layman/an-viar /usr/portage/local/extractions /usr/portage/local/unknown /usr/portage/local/ebuilds-from-bugs /usr/portage/local/self-made"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib acpi aim allegro alsa amr amrnb amrwb apache2 artworkextra automount berkdb bittorrent bzip2 cairo cddb cdparanoia cdr cjk cracklib crypt cups dbus devil directfb djvu dlopen doc dri dvd dvdnav dvdr emerald emf enca encode examples fbcon fbsplash ffmpeg flac fortran gadu gecko geos gif gimp gimpprint glitz gnome gphoto2 gpm gtk gtk2 guile hal hardened hddtemp iconv icq imagemagick imap irc jabber jack jacknet javascript jpeg latex ldap libnotify libsamplerate lj lm_sensors lua lyrics mad mailbox maildir matroska mbox midi mkv mmx mouse mp2 mp3 mpd mpeg msn music mysql ncurses netjack nls nptl nptlonly nsplugin ogg openal opengl oss pam pango pcre pdf perl pic plotutils plugins png pop pop3 postgis postgres postscript python qt qt3 qt4 rar readline rss samba scanner sdl sensord session slang sndfile sound sounds source spell sqlite srt sse sse2 ssl streamripper svg taglib tcl tcpd tetex theora threads threadsafe tiff tk trayicon truetype unicode urandom usb utf8 videos vim-syntax vorbis win32codecs wmf wxwindows x264 x86 xcomposite xorg xosd xscreensaver xv yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev ps2mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" USERLAND="GNU" VIDEO_CARDS="dummy fbdev nv vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 28 Stefan Werner 2008-07-11 15:42:05 UTC
I got the same error as reported above with current app-office/openoffice-2.4.1 and was able to SOLVE the problem by omitting "-fomit-frame-pointer" in command line C(XX)FLAGS.

CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -fno-ident" CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer -fno-ident" emerge openoffice
-> ERROR (see below)

CFLAGS="-march=athlon64 -O2 -pipe -fno-ident" CXXFLAGS="-march=athlon64 -O2 -pipe -fno-ident" emerge -av openoffice:
-> builds just fine (and works ;-)

################################################

app-office/openoffice-2.4.1  USE="cups dbus firefox gstreamer gtk kde ldap opengl pam -binfilter -debug -eds -gnome -java -mono -odk -seamonkey -xulrunner"

################################################

Error was:

[...]
cp pythonloader.py ../../unxlngi6.pro/lib/pythonloader.py
rm -f ../../unxlngi6.pro/lib/pyuno_services.rdb ../../unxlngi6.pro/lib/pyuno_services.tmp ../../unxlngi6.pro/lib/pyuno_services.rdb
cd ../../unxlngi6.pro/lib && regcomp -register -r pyuno_services.tmp -c stocservices.uno -c invocation.uno -c introspection.uno -c invocadapt.uno -c proxyfac.uno -c reflection.uno -c pythonloader.uno
stocservices.uno
invocation.uno
introspection.uno
invocadapt.uno
proxyfac.uno
reflection.uno
pythonloader.uno
register component 'stocservices.uno' in registry 'pyuno_services.tmp' succesful!
register component 'invocation.uno' in registry 'pyuno_services.tmp' succesful!
register component 'introspection.uno' in registry 'pyuno_services.tmp' succesful!
register component 'invocadapt.uno' in registry 'pyuno_services.tmp' succesful!
register component 'proxyfac.uno' in registry 'pyuno_services.tmp' succesful!
terminate called after throwing an instance of 'com::sun::star::registry::InvalidValueException'
/bin/bash: line 1: 30868 Aborted                 regcomp -register -r pyuno_services.tmp -c stocservices.uno -c invocation.uno -c introspection.uno -c invocadapt.uno -c proxyfac.uno -c reflection.uno -c pythonloader.uno
dmake:  Error code 134, while making '../../unxlngi6.pro/lib/pyuno_services.rdb'
---* tg_merge.mk *---

ERROR: Error 65280 occurred while making /var/tmp/portage/app-office/openoffice-2.4.1/work/ooo/build/OOH680_m17/pyuno/source/loader
make: *** [stamp/build] Error 1
 *
 * ERROR: app-office/openoffice-2.4.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 5384:  Called die
 * The specific snippet of code:
 *       make || die "Build failed"
 *  The die message:
 *   Build failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/log/portage/app-office:openoffice-2.4.1:20080711-141221.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/openoffice-2.4.1/temp/environment'.
 *
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="." JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info
Fr 11. Jul 16:28:19 CEST 2008

################################################

Here is my emerge --info:

Portage 2.1.4.4 (default/linux/x86/2008.0, gcc-3.4.6, glibc-2.6.1-r0, 2.6.25-gentoo-r6 i686)
=================================================================
System uname: 2.6.25-gentoo-r6 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 6000+
Timestamp of tree: Fri, 11 Jul 2008 01:45:01 +0000
ccache version 2.3 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.3
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.4.3-r4, 1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3 -fomit-frame-pointer -fno-ident"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3 -fomit-frame-pointer -fno-ident"
DISTDIR="/usr/portage/distfiles"
FEATURES="digest distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gentoo.mirror.solnet.ch http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.etf.bg.ac.yu/gentoo http://gentoo.inode.at/ http://mirror.uni-c.dk/pub/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.intergenia.de"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed"
LINGUAS="de de_DE"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X aac aalib accessibility acl acpi ads alsa avi bash-completion berkdb branding browserplugin bzip2 cdr cli cracklib crypt css cups dbus dga directfb dlloader dri dvb dvd dvdr encode ethereal evo exif fam fax fbcon ffmpeg firefox flac flash foomaticdb fortran gatos gd gdbm ggi gnokii gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile iconv idn imagemagick imap imlib ipv6 isdnlog java jikes joystick jpeg jpeg2k kde kdeenablefinal kerberos kicker kipi lirc lm_sensors logitech-mouse logrotate mad maildir matrox mbox mcal midi mmx motif mpeg mplayer mudflap nas ncurses network newspr nls nocd nptl nptlonly nsplugin offensive oggvorbis openexr opengl openmp oss pam pcre pda pdf pdflib perl pertty png ppds pppd python qt qt-copy quicktime rdesktop readline reflection samba scanner sdl session skey slp sms snmp spell spf spl sse2 sse3 ssl subtitles svgalib tcpd theora tiff truetype unicode usb v4l vcd win32codecs x86 xcomposite xinerama xorg xosd xscreensaver xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" FRITZCAPI_CARDS="fcpci" INPUT_DEVICES="evdev keyboard mouse aiptek" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de de_DE" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 29 Gordon Malm (RETIRED) gentoo-dev 2008-07-11 22:21:21 UTC
Upstream bug report:
http://www.openoffice.org/issues/show_bug.cgi?id=90752
Comment 30 Gordon Malm (RETIRED) gentoo-dev 2008-07-12 04:14:18 UTC
Along the lines of Comment #28...

I added -momit-leaf-frame-pointer to CXXFLAGS and openoffice-2.4.1 compiled and runs fine.  When -momit-leaf-frame-pointer is specified with -fomit-frame-pointer the former takes precedence, the latter disabled.

The compile flags in my /etc/make.conf are:
CFLAGS="-march=athlon64 -msse3 -O2 -fweb -fomit-frame-pointer -fno-ident -pipe"
CXXFLAGS="${CFLAGS} -fno-stack-protector -fno-stack-protector-all"

I issued the command:
CXXFLAGS="${CFLAGS} -fno-stack-protector -fno-stack-protector-all -momit-leaf-frame-pointer" emerge -1 =app-office/openoffice-2.4.1

Which essentially translates to:
"march=athlon64 -msse3 -O2 -fweb -fomit-frame-pointer -fno-ident -pipe -fno-stack-protector -fno-stack-protector-all -momit-leaf-frame-pointer"

emerge --info:
Portage 2.1.4.4 (hardened/x86/2.6, gcc-3.4.6, glibc-2.6.1-r0, 2.6.25-hardened-r2-rc1-2008070401 i686)
=================================================================
System uname: 2.6.25-hardened-r2-rc1-2008070401 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Fri, 11 Jul 2008 07:45:03 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -msse3 -O2 -fweb -fomit-frame-pointer -fno-ident -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -msse3 -O2 -fweb -fomit-frame-pointer -fno-ident -pipe -fno-stack-protector -fno-stack-protector-all"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirror.datapipe.net/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.netnitco.net/ http://gentoo.mirrors.pair.com/ http://open-systems.ufl.edu/mirrors/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_GB"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--progress --exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/trauma /usr/local/portage"
SYNC="rsync://*yoink*(private)/gentoo-portage"
USE="3dnow X Xaw3d a52 aac aalib acl acpi adns alsa apache2 apm audiofile bash-completion bcmath berkdb bidi blas bluetooth bzip2 cairo calendar canna caps cdb cdinstall cdparanoia cdr clamav cracklib crypt cscope ctype cups curl curlwrappers dba dbm dbus dbx dedicated dga dio directfb doc dri dts dv dvb dvd dvdr dvdread encode evo exif expat fam fastcgi fbcon ffmpeg fftw firefox flac flash flatfile foomaticdb fortran freetds freewnn ftp gb gcj gd gdbm geoip ggi gif ginac glut gmp gnome gnutls gphoto2 gpm gps graphviz gstreamer gtk gtk2 gtkhtml guile hal hardened iconv idn ieee1394 imagemagick imap imlib inifile ipv6 jack java javascript jbig jikes joystick jpeg jpeg2k junit kde ladspa lame lapack lash lcms ldap lesstif libcaca libg++ libgda libsamplerate libwww lirc lm_sensors logrotate lua mad maildir mailwrapper matroska mbox mcal mcve memlimit mhash midi mikmod mime mmap mmx mng mnogosearch mono motif mp3 mpeg mpi mplayer msession musepack nas ncurses neXt netboot netcdf nis nls nptl nptlonly nsplugin ocaml offensive ofx ogg openal opengl osc pam pcntl pcre pda pdf perl php pic plotutils png portaudio posix ppds python qdbm qt3 qt4 quicktime radius readline recode ruby samba sasl scanner sdl seamonkey session sharedext sharedmem shorten simplexml slang slp smartcard smp sndfile snmp soap sockets socks5 sox speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification svg svga sysvipc szip tcl tcltk tcpd tetex theora threads tidy tiff timidity tk tokenizer truetype unicode urandom usb v4l vcd vhosts videos vorbis wavpack wddx wifi win32codecs wmf wxwindows x264 x86 xcomposite xface xine xinerama xinetd xml xmlrpc xorg xosd xpm xprint xsl xv xvid yaz zeo zlib" ALSA_CARDS="au8820 ca0106 emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB" USERLAND="GNU" VIDEO_CARDS="apm dummy fbdev mga nv nvidia r128 trident v4l vesa vga"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 31 Andreas Proschofsky (RETIRED) gentoo-dev 2008-08-26 22:22:32 UTC
*** Bug 234495 has been marked as a duplicate of this bug. ***
Comment 32 djinnZ 2008-10-03 15:04:24 UTC
(In reply to comment #30)
> I added -momit-leaf-frame-pointer to CXXFLAGS and openoffice-2.4.1 compiled

not work for me the compile stop at same point.

also comment out filter-flags "-fforce-addr" and adding as in your suggestion append-flags "-momit-leaf-frame-pointer" has solved the problem and OOo run fine for me now.
Comment 33 Maurizio Rottin 2008-10-03 15:47:10 UTC
(In reply to comment #32)
> (In reply to comment #30)
> > I added -momit-leaf-frame-pointer to CXXFLAGS and openoffice-2.4.1 compiled
> 
> not work for me the compile stop at same point.
> 
> also comment out filter-flags "-fforce-addr" and adding as in your suggestion
> append-flags "-momit-leaf-frame-pointer" has solved the problem and OOo run
> fine for me now.
> 

I solved the problem compiling it with gcc 4.x.x
Now i'm using gcc 4.1.2 and even openoffice 3.0 rc3 compiles fine! and it's a lot faster on KDE.
Comment 34 djinnZ 2008-10-04 14:03:28 UTC
(In reply to comment #33)
using the instable gcc is too much for me.

Better fix (this is reported to the devels in cc) OOo 2.4.1 on 3.4.6 because the patch (tested also) to the ebuild is trivial: substitute the line in src_compile with

filter-flags "-fforce-addr"

with

if has_version <=sys-devel/gcc-3.4.7 ; then
   use hardened || filter-flags "-fforce-addr"
   is-flag -fomit-frame-pointer && append-flags "-momit-leaf-frame-pointer"
else
   filter-flags "-fforce-addr"
fi

IMHO will be a definitive solution to fix the problem (I continue here because my opened bug is closed as duplicate) in hope than the gcc 4.x become stable on hardened profile or the OOo 3.x will not be affected by similar problems.

Note than I use OOo with some complex (only in relations between cells in more than one file, the forumulas are simply date and time related operations) 3d calc documents, if it respond good to this stress and not fail any of the internal test suite is working fine.

The only modules I have never used and tested at this time are the db interface (not needed at this moment), the web editor (I use quanta and the web pages importation is know as not work for large documents) and the "graph" because I prefer gimp to acquire from scanner and manipulate images (peraps all these are marginal/unessential applications in my work) but the inclusion of any type of images work with any slowdown or any indication of malfunction.

In my previous report there is a mismatch also, the compilation end randomly in the same step (bulding pyuno related binary) but due to not reproducile, hardware or internal bugs; this is resolved by the adding of -fforce-addr but I have tested only on single core amd64/athlon processors (not know if this affect the intels or the latest amds products or if -fforce-addr will break the compilation on those cpus, in this case must be needed a condition related to the cpu). My opninion is than the random errors are stricly realted to the amd march possible values but without a verify with intel related cflags can not be demostrate.

So disable the filtering of -fforce-addr and adding -momit-leaf-frame-pointer only for hardened profile (or better only to profile hardened with gcc 3.4.6 and -fomit-frame-pointer flag) is my workaround to close this bug (especially if the gentoo policy in the OOo version will not change and the 2.4.1 ebuild will be removed at release of the first 3.x stable).

I do not think more details are needed but if is ask for them.
Comment 35 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-15 20:53:53 UTC
*** Bug 242192 has been marked as a duplicate of this bug. ***
Comment 36 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-19 17:35:07 UTC
*** Bug 242802 has been marked as a duplicate of this bug. ***
Comment 37 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-20 18:32:39 UTC
I've commited Nicola's changes, should fix this bug, so closing. Thanks for reporting and working out a solution!
Comment 38 Daniel Tourde 2008-10-21 08:05:34 UTC
Hi!

Sorry to interrupt the party but I still have the bug, even with

if has_version <=sys-devel/gcc-3.4.7 ; then
  use hardened || filter-flags "-fforce-addr"
  is-flag -fomit-frame-pointer && append-flags "-momit-leaf-frame-pointer"
else
  filter-flags "-fforce-addr"
fi


  Creating setup script
Saving script
-------------
Running processes: 0
deliver -- version: 1.130
Module 'scp2' delivered successfully. 85 files copied, 4 files unchanged

2 module(s):
        pyuno
        unoil
need(s) to be rebuilt

Reason(s):

ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.0.0/work/ooo/build/ooo300-m9/pyuno/source/loader
ERROR: error 65280 occurred while making /var/tmp/portage/app-office/openoffice-3.0.0/work/ooo/build/ooo300-m9/unoil/climaker

Attention: if you build and deliver the above module(s) you may prolongue your the build issuing command "build --from pyuno unoil"

rmdir /tmp/26539
make: *** [stamp/build] Error 1


Portage 2.1.4.5 (default-linux/x86/2007.0/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2.6.25-gentoo-r8 i686)
=================================================================
System uname: 2.6.25-gentoo-r8 i686 Intel(R) Xeon(TM) CPU 2.80GHz
Timestamp of tree: Tue, 21 Oct 2008 06:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r14, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/lib/hsqldb /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc distlocks metadata-transfer sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en sv fr si"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aac aalib accessibility acl acpi ada adns aiglx aim akode alsa amarok ansi apache2 apm arts asf auctex audiofile automount bash-completion bcmath beagle berkdb bidi blas bonobo boost boundchecking bzip2 bzlib c++ cairo calendar caps cdb cdr cgi cjk clearcase cli cmucl cpdflib cpudetection cracklib crypt cscope ctype cups curl curlwrappers cvs cxx d dba dbase dbm dbus dbx deprecated dga dio directfb discouraged divx4linux doc dri dvb dvd dvdr dvdread eds emacs emacs-w3 emboss encode esd ethereal evo exif expat fam fastcgi fbcon fbcondecor ffcall ffmpeg fftw filepro firebird firefox flac flatfile foomaticdb fortran freetds ftp gcc-libffi gcj gd gdbm ggi gif ginac glut gmp gnome gnustep gnutls gphoto2 gpm gsnd gstreamer gtk gtkhtml guile hal haskell hdf5 iconv icq icu idn imagemagick imap imlib innodb iodbc ipv6 isdnlog jabber jack java javascript joystick jpeg junit kde kdeenablefinal kerberos krb4 ladcca lapack latex lcms ldap leim libgda lzo mad maildir mailwrapper mbox mhash midi mikmod milter mime ming mjpeg mmap mmx mng mono motif mozbranding mp3 mpeg mplayer msession msn mudflap mule mysql mysqli nas ncurses netcdf networking new-login nis nls nptl nptlonly nsplugin nvidia objc objc++ odbc offensive ofx ogg openal opengl openmp oscar oss pam pascal pcntl pcre pda pdf perforce perl php pic pie plotutils plugin png portaudio posix postgres povray ppds pppd prelude profile python qhull qt3 qt3support qt4 quicktime readline reflection regex ruby samba sasl scanner sdl session simplexml slang slp sndfile snmp soap sockets socks5 sox speex spell spl sql sqlite sqlite3 sse sse2 ssl stlport subversion svg svga svnserve sysvipc szip tcl tcltk tcpd tetex theora threads tidy tiff tk tokenizer truetype unicode usb vhosts vorbis wddx win32codecs winbind wmf wxwindows x86 xcomposite xface xft xine xinerama xml xml2 xmlrpc xorg xosd xpm xprint xsl xv xvid yahoo yaz zeo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en sv fr si" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



PS: My system is _not_ hardened. It's just a plain gcc-3.4.6

Daniel
Comment 39 djinnZ 2008-10-22 12:03:16 UTC
Same problem on hardened profile.
The solution found by Maurizio (using -momit-leaf-frame-pointer) solve the problem only for 2.4.1 not for 3.0.
I have just compiled last night the damned dinosaur.

has_version <=sys-devel/gcc-3.4.7 && {
            use hardened || filter-flags "-fforce-addr"
            filter-flags "-fomit-frame-pointer" }

can be just another workaround for 3.0.

Now I have no time (I blaspheme behind the ati-drivers on my laptop, as after every damned new kernel version release) to work on it but the only definitive (?) solution is to patch the makefile in order to enabble the frame pointer only for pyuno build so the impact (not so big, OOo will remain ever a dinosaur) on performance and on executable code size will be minimized.

I know than the bug is also reported upstream but there are poor chanches to be fixed because it affect only an old version of the gcc (not so good for the open source phylosophy and unix tradition but these are the facts IMHO).

Without -fforce-addr the computer has failed the build also but I think ever than is a specic necessity in case of using hardened profile on amd processors. 

Daniel, if you have time to spend test -fforce on non hardened profile with intel cpu can be useful but my humble suggestion in your case is to upgrade the profile and the gcc to 4.x if you not have any specific reason to mantain the old assect.

Andreas what you think about adding a custom-cflags use to openoffice as for mplayer in order to complete disable (for ricers and peaple who know wath are doing, oblivuosly) the filter-flags or only for -O2 -fomit-frame-pointer and -fforce-addr?
Comment 40 Gordon Malm (RETIRED) gentoo-dev 2008-10-22 15:49:12 UTC
Created attachment 169430 [details, diff]
Address some issues in the current openoffice-3.0.0.ebuild

Nicola, I suspect you have some hardware problems (as you have alluded to yourself).  Replacing -fomit-frame-pointer with -momit-leaf-frame-pointer still works here.  Also, there are multiple problems with your patch.

First the least significant issue; there is no reason to use: is-flag -fomit-frame-pointer && append-flags "-momit-leaf-frame-pointer"
This just passes both options to the compiler for no reason (-momit-leaf-frame-pointer overrides -fomit-frame-pointer).  Use replace-flags instead.

Secondly, and more significantly, your test checks if <gcc-3.4.7 is *installed*, not the compiler being *used*.  So now even if the package is being compiled with gcc-4, if the user has <gcc-3.4.7 installed along side they will get -momit-frame-pointer.  Use a gcc-major-version check instead.

Thirdly, -fforce-addr should probably just keep being filtered unconditionally.  I suspect your hardware issues have lead you to believe this is fixing something for you.  -fforce-addr is *not* required to compile the package and it compiles fine here on athlon64 and core2 processors without it.  Also, it doesn't appear you put "hardened" in IUSE, so your "use hardened || filter-flags -fforce-addr" always filters -fforce-addr anyway (the check is broke without "hardened" added to IUSE).  So that means you likely compiled it w/o -fforce-addr without even realizing it.  Also note, your patch (if "hardened" were to be addded to IUSE) means the *re-introduction* of -fforce-addr flag under some conditions, which was filtered for good reason on bug 139550.

Also, -fforce-addr was only added to hardened profile make.defaults because it worked in conjunction with SSP to help against certain ret2libc attacks.  Since -fstack-protector and -fstack-protector-all are being filtered in the ebuild anyway, it does nothing good except to override gcc's own heuristics (which are far smarter) as to when it should load code into registers before doing operations on them.  This results in a wee bit of a slowdown in most instances.

Lastly, this is a closed bug.  Everyone please give Andreas some time to fix the issues I've outlined here then emerge --sync and try again.  If it doesn't work, *file a new bug* with full build log attached, emerge --info output, etc.  Not your blog or only the snippets of build output you think are important.
Comment 41 djinnZ 2008-10-23 12:24:28 UTC
(In reply to comment #40)
>  I suspect your hardware issues have lead you to believe this is fixing
> something for you.  -fforce-addr is *not* required to compile the package and
> it compiles fine here on athlon64 and core2 processors without it.

And what I have say? -fforce-addr works _for me_ (on hardened with -march=athlon-xp and on two athlon 3300+ CPU of mine only not even on the am64 of the laptop, unusable at moment, unverified) so I have suggest to verify because it appears very strange to me (but work); -momit-leaf-frame-pointer not work on 3.0 _for me_ also.

I have forget another time to explain than I have never verified the "patch" (o r better: suggestion expressed as code example) of mine. I am sure to have -fforce-addr in the configuration but I have not do the sync so I have only commented added the filter-flags/add-flag line. 

I file a new (but related) bug for add a custom-cflag option to OOo ( I hope only will not be closed directly as wontfix :-) ) and remain in the convinction than patching the makefile is a better solution than the workaround you have corrected.

Excuse me if sometimetimes I "speak" too much.
Comment 42 Andreas Proschofsky (RETIRED) gentoo-dev 2008-10-24 10:15:51 UTC
@Gordon: Thanks for clarifying this, I've updated the ebuild to incorporate your changes.