emerge openoffice compilation fails at '../../../unxlngs.pro/slo/lotform.obj' Reproducible: Always Steps to Reproduce: 1.emerge openoffice 2. 3. Actual Results: ------------------------------ Making: ../../../unxlngs.pro/slo/lotform.obj g++ -fmessage-length=0 -c -I. -I/var/tmp/portage/openoffice-1.1.0-r2/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-r2/work/oo_1.1_src/solver/645/unxlngs.pro/inc/stl -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngs.pro/inc/external -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngs.pro/inc -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/unxlngs/inc -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/inc -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/res -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solver/645/unxlngs.pro/inc/stl -I/var/tmp/portage/openoffice-1.1.0-r2/work/oo_1.1_src/solenv/inc/Xp31 -I/opt/blackdown-jdk-1.4.1/include -I/opt/blackdown-jdk-1.4.1/include/linux -I/opt/blackdown-jdk-1.4.1/include/native_threads/include -I/usr/X11R6/include -I. -I../../../res -I. -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-r2/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-r2/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-r2/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-r2/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-r2/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-r2/work/oo_1.1_src/sc/source/filter/lotus !!! ERROR: app-office/openoffice-1.1.0-r2 failed. !!! Function src_compile, Line 471, Exitcode 1 !!! Build failed! u60 /etc $ Expected Results: emerged a working copy of OpenOffice 1.1.0-r2 u60 ~ $ more /root/emerge-info Gentoo Base System version 1.4.3.10 Portage 2.0.49-r18 (default-sparc64-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-sparc) ================================================================= System uname: 2.4.22-sparc sparc64 sun4u ACCEPT_KEYWORDS="sparc ~sparc" AUTOCLEAN="yes" CFLAGS="-mcpu=ultrasparc -O3 -pipe" CHOST="sparc-unknown-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=ultrasparc -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache sandbox" GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo"MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="sparc X arts avi berkdb crypt cups encode esd fbcon foomaticdb gdbm gif gnome gtk guile imlib jpeg libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python readline sdl slang spell ssl tcpd truetype xml2 xmms xv zlib"
It looks like OpenOffice 1.1.0-r2 is only mergable with gcc 3.3.x. I am not sure if just upgrading gcc would help as the system I built OOo on was built using the sparc-gcc33 profile (so everything was compiled with gcc 3.3.x).
I got another report that compiling with GCC 3.3.2-r5 worked fine. Even on a box where just GCC and Glibc was upgraded.
I agree that this is probably a sparc specific gcc bug (never believe that gcc is bugfree), most times using less aggressive optimizations (-O3 is causing problems even on x86) and the newest gcc versions solves the problems.
gcc-3.3.x is now available on regular sparc profiles for users running ~sparc.
Please try with gcc-3.3.3. If its not working, feel free to reopen... I compiled it fine with gcc-3.3.3 a few times on different machines now.