After about 48 hours of compiling on a SPARC Ultra 5 running gentoo 2004.0, Open Office 1.1.0-r4 fails with an internal compiler error. The gcc version is 3.2.3 and there is plenty of disk space. The last g++ invocation that causes the error is: Making: ../../../unxlngs.pro/slo/lotform.obj g++ -fmessage-length=0 -c -I. -I/var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/solver/645/unxlngs.pro/inc/offuh -I../inc -I../../../inc -I../../../unx/inc -I../../../unxlngs.pro/inc -I. -I/var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/solver/645/unxlngs.pro/inc/stl -I/var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/solver/645/unxlngs.pro/inc/external -I/var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/solver/645/unxlngs.pro/inc -I/var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/solenv/unxlngs/inc -I/var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/solenv/inc -I/var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/res -I/var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/solver/645/unxlngs.pro/inc/stl -I/var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/solenv/inc/Xp31 -I/opt/blackdown-jdk-1.4.1/include -I/opt/blackdown-jdk-1.4.1/include/linux -I/opt/blackdown-jdk-1.4.1/include/native_threads/include -I/usr/X11R6/include -I. -I../../../res -I. -O1 -pipe -fno-for-scope -fpermissive -fno-rtti -include preinclude.h -fno-exceptions -fPIC -DLINUX -DUNX -DVCL -DGCC -DC300 -DSPARC -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -D_PTHREADS -D_REENTRANT -DSPARC -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=645 -DBUILD=8693 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF -DCUI -DSOLAR_JAVA -DSRX645 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -o ../../../unxlngs.pro/slo/lotform.o /var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/sc/source/filter/lotus/lotform.cxx In file included from ../inc/formel.hxx:78, from ../inc/lotform.hxx:67, from /var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/sc/source/filter/lotus/lotform.cxx:71: ../inc/tokstack.hxx: In member function `TokenPool& TokenPool::operator<<(TokenStack&)': ../inc/tokstack.hxx:334: warning: choosing `TokenId::operator UINT16&()' over `TokenId::operator UINT16() const' ../inc/tokstack.hxx:334: warning: for conversion from `TokenId' to `short unsigned int' ../inc/tokstack.hxx:334: warning: because conversion sequence for the argument is better ../inc/tokstack.hxx: In member function `E_TYPE TokenPool::GetType(TokenId) const': ../inc/tokstack.hxx:392: warning: choosing `TokenId::operator UINT16&()' over `TokenId::operator UINT16() const' ../inc/tokstack.hxx:392: warning: for conversion from `TokenId' to `short unsigned int' ../inc/tokstack.hxx:392: warning: because conversion sequence for the argument is better ../inc/tokstack.hxx: In member function `const SingleRefData* TokenPool::GetSRD(TokenId) const': ../inc/tokstack.hxx:406: warning: choosing `TokenId::operator UINT16&()' over `TokenId::operator UINT16() const' ../inc/tokstack.hxx:406: warning: for conversion from `TokenId' to `short unsigned int' ../inc/tokstack.hxx:406: warning: because conversion sequence for the argument is better ../inc/tokstack.hxx:407: warning: choosing `TokenId::operator UINT16&()' over `TokenId::operator UINT16() const' ../inc/tokstack.hxx:407: warning: for conversion from `TokenId' to `short unsigned int' ../inc/tokstack.hxx:407: warning: because conversion sequence for the argument is better In file included from /var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/sc/source/filter/lotus/lotform.cxx:73: ../inc/lotrange.hxx: At global scope: ../inc/lotrange.hxx:78: warning: friend declaration requires class-key, i.e. `friend struct LotusRangeList' In file included from /var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/sc/source/filter/lotus/lotform.cxx:74: ../inc/namebuff.hxx:92: warning: friend declaration requires class-key, i.e. `friend struct NameBuffer' In file included from ../../../inc/document.hxx:95, from ../inc/tool.h:66, from /var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/sc/source/filter/lotus/lotform.cxx:77: ../../../inc/tabopparams.hxx:124: warning: ISO C++ forbids declaration of `operator==' with no type ../../../inc/refdata.hxx: In member function `void LotusToSc::ReadSRD(SingleRefData&, unsigned char)': ../../../inc/refdata.hxx:125: Internal compiler error in emit_move_insn, at expr.c:2780 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. dmake: Error code 1, while making '../../../unxlngs.pro/slo/lotform.obj' ---* TG_SLO.MK *--- ERROR: Error 65280 occurred while making /var/tmp/portage/openoffice-1.1.0-r4/work/oo_1.1_src/sc/source/filter/lotus !!! ERROR: app-office/openoffice-1.1.0-r4 failed. !!! Function src_compile, Line 475, Exitcode 1 !!! Build failed! ^[]1;^G^[]2; *** terminating.^G^[]1;^G^[]2;xterm^G^[[01;31mwrasse ^[[01;34mroot # ^[[00mexit Script done on Thu Jul 8 13:30:09 2004 Reproducible: Didn't try Steps to Reproduce: 1. emerge openoffice Actual Results: See http://www.stat.ufl.edu/~bb/oo for the complete compilation log. Expected Results: Successful compilation wrasse root # emerge info Portage 2.0.50-r6 (default-sparc64-2004.0, gcc-3.2.3, glibc-2.3.2-r3, 2.4.25) ================================================================= System uname: 2.4.25 sparc64 sun4u Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.2 ACCEPT_KEYWORDS="sparc" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=ultrasparc" CHOST="sparc-unknown-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=ultrasparc" DISTDIR="/usr/portage/distfiles" FEATURES="ccache sandbox" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/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="X arts avi berkdb crypt cups encode esd fbcon foomaticdb gdbm gif gnome gtk gtk2 imlib java jpeg kde libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt readline sdl slang sparc spell ssl tcltk tcpd tetex truetype xml2 xmms xv zlib" wrasse root #
I'm pretty sure you need gcc 3.3.3 for ooo to have even the slightest chance of building on sparc.
Yes, openoffice will fail to compile on sparc unless you use gcc-3.3.3. This comes directy from upstream. As gcc-3.3.3 is currently the stable compiler on sparc, it is recommended you upgrade if you want to build this package.