Every time i try to compile LyX-1.3.4, i get this error: g++ -march=pentium4 -pipe -o lyx BufferView.o BufferView_pimpl.o Bullet.o Chktex.o CutAndPaste.o DepTable.o FloatList.o Floating.o FuncStatus.o InsetList.o LColor.o LaTeX.o LaTeXFeatures.o LyXAction.o MenuBackend.o paragraph_funcs.o ParagraphList.o ParagraphParameters.o Spacing.o TextCache.o Thesaurus.o ToolbarDefaults.o boost.o boost-inst.o box.o buffer.o bufferlist.o bufferparams.o bufferview_funcs.o chset.o converter.o counters.o debug.o encoding.o exporter.o gettext.o factory.o funcrequest.o importer.o intl.o iterators.o kbmap.o kbsequence.o language.o lastfiles.o lengthcommon.o lyx_cb.o lyx_main.o lyx_sty.o lyxcursor.o lyxfont.o lyxfind.o lyxfunc.o lyxgluelength.o lyxlayout.o lyxlength.o lyxlex.o lyxlex_pimpl.o lyxrc.o lyxrow.o lyxserver.o lyxtextclass.o lyxtextclasslist.o lyxvc.o main.o paragraph.o paragraph_pimpl.o ispell.o pspell.o sgml.o tabular.o tabular-old.o tabular_funcs.o tex-accent.o tex-strings.o texrow.o text.o text2.o text3.o toc.o trans.o trans_mgr.o undo.o undo_funcs.o vc-backend.o version.o vspace.o mathed/.libs/libmathed.a insets/.libs/libinsets.a frontends/.libs/libfrontends.a /usr/lib/libflimage.so /usr/lib/libjpeg.so /usr/lib/libforms.so -lXpm graphics/.libs/libgraphics.a support/.libs/libsupport.a ../boost/libs/regex/src/.libs/libboostregex.a ../boost/libs/signals/src/.libs/libboostsignals.a /usr/lib/libAiksaurus.so /usr/lib/gcc/i686-pc-linux-gnu/3.4.1/libstdc++.so -L/usr/i686-pc-linux-gnu/bin -L/usr/i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/../../../i686-pc-linux-gnu/lib -lbz2 -lSM -lICE -lc -lm -L/usr/X11R6/lib -lX11 -Wl,--rpath -Wl,/usr/lib/gcc/i686-pc-linux-gnu/3.4.1 -Wl,--rpath -Wl,/usr/lib/gcc/i686-pc-linux-gnu/3.4.1 `.gnu.linkonce.t._ZN5boost9re_detail15query_match_auxIN9__gnu_cxx17__normal_iteratorIPKcSsEESaIcEcNS_12regex_traitsIcEES7_EEbT_SA_RNS_13match_resultsISA_T0_EERKNS_14reg_expressionIT1_T2_T3_EEjRNS0_16_priv_match_dataISA_SC_EEPSA_' referenced in section `.rodata' of chset.o: defined in discarded section `.gnu.linkonce.t._ZN5boost9re_detail15query_match_auxIN9__gnu_cxx17__normal_iteratorIPKcSsEESaIcEcNS_12regex_traitsIcEES7_EEbT_SA_RNS_13match_resultsISA_T0_EERKNS_14reg_expressionIT1_T2_T3_EEjRNS0_16_priv_match_dataISA_SC_EEPSA_' of chset.o collect2: ld returned 1 exit status make[3]: *** [lyx] Error 1 make[3]: Leaving directory `/var/tmp/portage/lyx-1.3.4/work/lyx-1.3.4/src' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/lyx-1.3.4/work/lyx-1.3.4/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/lyx-1.3.4/work/lyx-1.3.4/src' make: *** [all-recursive] Error 1 !!! ERROR: app-office/lyx-1.3.4 failed. !!! Function src_compile, Line 76, Exitcode 2 !!! emake faile This occurs using GCC 3.4 (with the 3.4 patch from another bug) and GCC 3.3.3-r6. Reproducible: Always Steps to Reproduce: 1.emerge lyx 2. 3. Portage 2.0.50-r10 (2.6, gcc-3.3.3, glibc-2.3.4.20040808-r0, 2.6.7-love5) ================================================================= System uname: 2.6.7-love5 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" ACCEPT_LICENSE="" ANT_HOME="/usr/share/ant" ARCH="x86" AUTOCLEAN="yes" BASH_ENV="/etc/portage/bashrc" CC="gcc" CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CLASSPATH=":::.:/usr/share/jdbc-mysql/lib/mysql-connector-java-3.0.11-stable-bin.jar:/usr/share/hibernate/lib/::/usr/share/jdbc-mysql/lib/mysql-connector-java-3.0.11-stable-bin.jar:/usr/share/hibernate/lib/::/usr/share/jdbc-mysql/lib/mysql-connector-java-3.0.11-stable-bin.jar:/usr/share/hibernate/lib/:" CLEAN_DELAY="5" COLORFGBG="15;0" COLORTERM="rxvt-xpm" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CVSROOT="/usr/local/cvsroot" CVS_RSH="ssh" CXX="g++" CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer" DISPLAY=":0.0" DISTDIR="/usr/portage/distfiles" EDITOR="/usr/bin/vim" FEATURES="autoaddcvs ccache sandbox sfperms" PAGER="/usr/bin/less" PATH="/home/leo/bin/:/home/leo/bin/:/home/leo/bin/:/bin:/usr/bin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.4:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.2_rc1/bin:/opt/blackdown-jdk-1.4.2_rc1/jre/bin:/usr/qt/3/bin:/usr/kde/3.3/bin:/usr/games/bin:/usr/lib/wine/bin:/usr/lib/wine/bin:/usr/lib/wine/bin" PGDATA="/home/leo/.pdatabase/" PKGDIR="/usr/portage/packages" PORTAGE_BINHOST_CHUNKSIZE="3000" PORTAGE_CACHEDIR="/var/cache/edb/dep/" PORTAGE_CALLER="emerge" PORTAGE_GID="250" PORTAGE_MASTER_PID="5665" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/love-sources /usr/local/overlays/bmg-main /usr/local/overlays/bmg-gnome-current /usr/local/overlays/local" PORT_LOGDIR="/var/log/portage" SHLVL="5" SSH_AGENT_PID="8517" SSH_AUTH_SOCK="/tmp/ssh-GpTtvq8516/agent.8516" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" TERM="rxvt" TMAKEPATH="/usr/lib/tmake/linux-g++" USE="X aalib alsa apache2 apm avi crypt cups cyrus-sasl encode foomaticdb gdbm gif gpm gstreamer gtk gtk2 imap imlib ipod ipv6 java jpeg libg++ libwww mad maildir mikmod motif mpeg mpeg4 mysql ncurses nls nptl opengl pam pdflib png python quicktime readline samba sasl sdl slang spell sse ssl svga tcpd tiff truetype usb videos virus-scan x86 xml xml2 xv zlib" USER="leo" USERLAND="GNU" USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS" _="/usr/bin/emerge"
Created attachment 38722 [details, diff] fix gcc-3.4.1 compile issues
Comment on attachment 38722 [details, diff] fix gcc-3.4.1 compile issues At least this fixes Lyx's compilation on my ppc machine using gcc-3.4.1-r2
that is the same patch that is the solution to bug #48760, which solves a different problem. the error in this compile is actually in the 'make install' stage, because if i compile it manually from source i get the same error. this leads me to believe that its an upstream problem - i guess i'll add abug in their bugzilla as well.
Thanks, added the patch to CVS. Please test.
The new ebuild now works perfectly fine for me. Thanks!