When trying to emerge lyx-1.3.0 the compile breaks with an error on template instantiation depth having exceeded maximum : ../../boost/boost/shared_ptr.hpp:203: template instantiation depth exceeds maxim um of 17 ../../boost/boost/shared_ptr.hpp:203: (use -ftemplate-depth-NN to increase the maximum) Compiling lyx-1.3.0 from source does not produce this problem... Reproducible: Always Steps to Reproduce: 1. emerge lyx-1.3.0.ebuild Actual Results: Ebuild stops with : [...] g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem /usr/X11R 6/include -mcpu=i686 -O2 -pipe -fomit-frame-pointer -c insetcaption.C -Wp,-MD,.d eps/insetcaption.TPlo ../../boost/boost/shared_ptr.hpp:203: template instantiation depth exceeds maxim um of 17 ../../boost/boost/shared_ptr.hpp:203: (use -ftemplate-depth-NN to increase the maximum) ../../boost/boost/shared_ptr.hpp:203: instantiating `boost::detail::shared_ptr _traits<boost::signals::detail::cached_return_value<boost::signals::detail::unus able> >' [...] make[3]: *** [insetcite.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src/insets ' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/lyx-1.3.0/work/lyx-1.3.0/src' make: *** [all-recursive] Error 1 !!! ERROR: app-office/lyx-1.3.0 failed. !!! Function src_compile, Line -252, Exitcode 2 !!! emake failed Expected Results: Build LyX :) The problem is related to the CFLAGS/CXXFLAGS setting in the ebuild. If the flags are unset rather than substituted : unset CXXFLAGS unset CFLAGS the configuration correctly adds the following to the CXXFLAGS : -O -Wno-non-template-friend -ftemplate-depth-30 The lack of '-ftemplate-depth-30' in the current ebuild causes the compile to break. > emerge info Portage 2.0.46-r12 (default-1.0, gcc-2.95.3, glibc-2.2.5-r2,2.2.5-r7) ================================================================= System uname: 2.4.19-gentoo-r7 i686 AMD Duron(tm) Processor GENTOO_MIRRORS="http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config:/usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode jpeg libg++ mikmod mmx mpeg ncurses pdflib qtmt quicktime sdl spell truetype xml2 xmms xv berkdb bonobo esd gdbm gif gnome-libs gpm gtk guile imlib java libwww motif mozilla nls oggvorbis opengl pam perl png python qt readline slang ssl svga tcpd tetex tiff X matrox dga -kde -arts" COMPILER="" CHOST="i686-pc-linux-gnu" CFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-mcpu=i686 -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
OK. I think I've fixed it. Please test the ebuild now (once the changes get through to rsync).
Yes, that did it. It's now compiling and running fine. Thanks.
OK, good.