openoffice-1.1.0-r2 fails to compile with teh following error: ============= Building project external ============= /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/external/w4w ------------- /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/external/gcc3_specific gccinstlib.pl libstdc++.so."5" /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/ solver/645/unxlngi4.pro/lib printf (...) interpreted as function at /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/ solenv/bin/gccinstlib.pl line 75. Foo at /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/bin/gccinstlib.pl line 68. dmake: Error code 255, while making '/var/tmp/portage/openoffice-1.1.0-r2/work/ oo_1.1_src/solver/645/unxlngi4.pro/lib/libstdc++.so."5"' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.0-r2/work/ oo_1.1_src/external/gcc3_specific !!! ERROR: app-office/openoffice-1.1.0-r2 failed. !!! Function src_compile, Line 471, Exitcode 1 !!! Build failed! Reproducible: Always Steps to Reproduce: 1. emerge openoffice 2. 3. Actual Results: openoffice fails to compile Expected Results: openoffice should compile Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r8, 2.4.20-gentoo-r8) ================================================================= System uname: 2.4.20-gentoo-r8 i686 AMD Duron(tm) Processor Gentoo Base System version 1.4.3.11 ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe -mmmx -msse -m3dnow -mfpmath=sse,387 -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/ config /usr/X11R6/lib/X11/xkb /usr/kde/3.2/share/config /usr/share/texmf/tex/generic/ config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/ dvipdfm/config/ /usr/share/texmf/xdvi/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon -O3 -pipe -mmmx -msse -m3dnow -mfpmath=sse,387 -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox autoaddcvs ccache" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm crypt cups foomaticdb gif jpeg libg++ mad mikmod pdflib png spell xml2 xmms gtkhtml gdbm berkdb slang readline tetex bonobo java guile mysql sdl gpm tcpd pam libwww ssl python esd motif ldap scanner 3dnow aalib alsa apache2 arts artswrappersuid avi cdr directfb dv dvd dvdr encode faad fbcon firewire flash gnome gnome-libs gpg gphoto2 gtk gtk2 imlib kde mbox mldonkeypango mmx mozilla moznoirc moznomail moznocompose mpeg ncurses nls oggvorbis opengl openssh perl postgres qt quicktime samba sox sse svga tcltk tiff truetype wmf X xv zlib"
Please check that you didn't run out of diskspace or hit the Out of memory killer. Nothing at this area should go wrong. Trying to continue the build with the "ebuild" tool might work
Hi, None of these problems. I have more than 6Gb free for /var/tmp/portage, and didn't hit OFM killer. I've retried a couple of times with ebuild ... compile, and still same problem. I've been having linking problems recently with other packages. May this problem come from that?
I have the same compiling error, I tried it with ebuild and I have 30GB of free space in /var/tmp/portage, and have the same error with ximianized openoffice or with standar version
Could you attach the full compilation log. Maybe something goes wrong earlier causing these unclear error statements.
same error here
*** Bug 33456 has been marked as a duplicate of this bug. ***
@Miguel: Could you please try to compile it again with more generic CFLAGS, yours are very aggressive, OpenOffice.org tends to break with too much optimizations @ Eric, Sergi: Please post your output of "emerge info". Also, Sergi, do you still get this problem with a more recent version of Openoffice-ximian?
My emerge info follows... I have completely rebuilt my gentoo system since I first encountered this error; however, the error persists. I suspect that I may need to adjust my CFLAGS - perhaps someone could suggest a proper CFLAGS setting for OO. TIA Eric root@gentoobox / # emerge info Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0-gentoo) ================================================================= System uname: 2.6.0-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.53GHz Gentoo Base System version 1.4.3.10 ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://194.83.57.2/sites/www.ibiblio.org/gentoo/ http://194.83.57.3/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm arts avi berkdb bonobo crypt cups encode esd foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imlib java jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pda pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Created attachment 23754 [details] this is my opneoffice compilation
Yes this error apears on openoffice-ximian-1.1.48 and openoffice-1.1.0-r2, this is my info Portage 2.0.50_pre14 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.1-gentoo) ================================================================= System uname: 2.6.1-gentoo i686 AMD Athlon(TM) XP 2200+ Gentoo Base System version 1.4.3.12 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.7.8 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://212.219.247.12/sites/www.ibiblio.org/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ http://ftp.easynet.nl/mirror/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X aalib acpi acpi4linux afs alsa antlr apache2 arts artswrappersuid avi berkdb cdr crypt cups dedicated dga directfb doc dv dvd dvdr encode ethereal evms2 ext-png ext-zlib fbcon firebird flash freetype gd gd-external gdbm gif gphoto2 gpm gtk gtk2 hostap-nopci imlib innodb java jikes joystick jpeg kde libg++ libwww mad maildir md5sum mikmod mmx mng motif mpeg mysql ncurses nls nocardbus odbc oggvorbis opengl oss pam pdflib perl php pic png postgres ppds prelude python qt quicktime readline sasl sdl slang speedo spell sse ssl stencil-buffer svga tcltk tcpd tetex tiff truetype type1 usb vim-with-x wmf x86 xfs xml2 xmms xv xvid zlib"
@ Eric: Could you try again without -fprefetch-loop-arrays and if that does not work out also without -funroll-loops. Also are you sure that you have the exact same error (could you post it just for the record) @Sergi: You seem to have quite the same setup than me, and -fomit-frame-pointer should be filtered out anyway, so I will have to think about that a little bit longer ;-) @Miguel: Do you still have this problem? Thanks for your feedback!
OK, forget what I said before ;-) After some more investigation: Looks like gccinstlib.pl does not find libstdc++.so.5 in your path. So we will have to find out why it works for me and not for you. Could you please post the output of gcc-config -l Also if someone of you kept the log please send the configuring part of it (quite at the beginning where all the nice variables are set), or if you are not sure just attach the whole log. You could also try to reemerge gcc and see if that helps (but I wont promise anything ;-) )
Could you please also post the output of: ls -la /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++* or ls -la /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libstdc++* (depending on the gcc version you are using)
i was able to emerge OO with: CFLAGS="-march=pentium4" emerge -u open-office I will test slightly more aggressive CFLAGS tomorrow if i have the time
*** Bug 39418 has been marked as a duplicate of this bug. ***
*** Bug 39403 has been marked as a duplicate of this bug. ***
another test: deckard root # ls -la /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++* -rw-r--r-- 1 root root 1521978 2004-01-15 22:03 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.a -rwxr-xr-x 1 root root 917 2004-01-15 22:03 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.la -rw-r--r-- 1 root root 1600116 2004-01-15 22:03 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++_pic.a lrwxrwxrwx 1 root root 18 2004-01-15 22:03 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so -> libstdc++.so.5.0.5 lrwxrwxrwx 1 root root 18 2004-01-15 22:03 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so.5 -> libstdc++.so.5.0.5 -rwxr-xr-x 1 root root 948325 2004-01-15 22:03 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/libstdc++.so.5.0.5 deckard root # deckard root # /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/bin/gccinstlib.pl printf (...) interpreted as function at /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/bin/gccinstlib.pl line 75. Foo at /var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/bin/gccinstlib.pl line 68. deckard root #
for the record: I have gcc-3.2.3-r3 installed. Emerging openoffice-1.1.0-r2 with: - CFLAGS="-O2 -march=athlon-xp -pipe" -> fails - CFLAGS="-O2 -pipe" -> compiles ok So -march=athlon-xp seems to be a too agressive CFLAG using gcc-3.2.3-r3. By the way, I needed about 3.5 GIG in $PORTAGE_TMPDIR so 4 GIG free space is definitely enough (on my system). Gentoo Base System version 1.4.3.10 Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.24) ================================================================= System uname: 2.4.24 i686 AMD Athlon(tm) XP 2600+ ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86" CFLAGS="-O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CXXFLAGS="-O2 -pipe" FEATURES="autoaddcvs ccache sandbox" MAKEOPTS="-j2" USE="X apm arts avi berkdb bonobo cdr crypt cups directfb encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg ldap libg++ libwww mad mikmod motif mozilla mpeg ncurses oggvorbis opengl oss pam pdflib perl png python quicktime readline ruby sdl slang ssl svga tcpd truetype x86 xml2 xmms xv zlib"
In most cases it is safe to update to gcc-3.3.x . The only reason that it isn't stable is some issue with hardened if I'm correct. Many compilation bugs are fixed in that gcc version. The actual pentium4 problems have something to do with sse, I'm not very familiar with athlon-XP, but if that arch also has sse it probably has the same problem.
I try to compile without sse flag, with CFLAGS="-O2 -pipe", but have the same error!!! :(
I think I found the fix (not patch) to this problem: unset LANG LANGUAGE LC_ALL begore emerging openoffice-ximian (I think the same applies to openoffice), it compiles cleanly. Perhaps the problem is something around this?: dmake: Error code 255, while making '/var/tmp/portage/openoffice-1.1.0-r2/work/ oo_1.1_src/solver/645/unxlngi4.pro/lib/libstdc++.so."5"' What is "5" in the name of a file? I think a patch must be made in order to filter this "" so openoffice can find libstdc++.so.5 (without the " "). If that's not the cause, we still can execute the "unset" at the beginning of the ebuild and tell the user that this xterm must be closed after the emerge because it has lost the language properties. Another option is executing: source /etc/profile if it regenerate the language environment variables.
Not sure if it is exactly the but I've postet a bug-fix to this: http://bugs.gentoo.org/show_bug.cgi?id=47702#c11 bug-report the OO.o 1.1.1. Post #11 tries too explain what I think the course too the problems is.
This has been fixed ages ago, see bug #47702