emerge fails in this manner: -c -o nr-matrix.o `test -f 'nr-matrix.cpp' || echo './'`nr-matrix.cpp; \ then mv -f ".deps/nr-matrix.Tpo" ".deps/nr-matrix.Po"; \ else rm -f ".deps/nr-matrix.Tpo"; exit 1; \ fi In file included from ../libnr/nr-rect.h:24, from ../libnr/nr-macros.h:23, from nr-matrix.h:22, from nr-matrix.cpp:12: ../libnr/nr-maybe.h: In constructor `NR::IsNot<T>::IsNot()': ../libnr/nr-maybe.h:27: error: there are no arguments to `string' that depend on a template parameter, so a declaration of `string' must be available ../libnr/nr-maybe.h:27: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) make[4]: *** [nr-matrix.o] Error 1 make[4]: *** Waiting for unfinished jobs.... In file included from ../libnr/nr-rect.h:24, from nr-macros.h:23, from nr-values.cpp:5: ../libnr/nr-maybe.h: In constructor `NR::IsNot<T>::IsNot()': ../libnr/nr-maybe.h:27: error: there are no arguments to `string' that depend on a template parameter, so a declaration of `string' must be available ../libnr/nr-maybe.h:27: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) make[4]: *** [nr-values.o] Error 1 make[3]: *** [all] Error 2 make[3]: Leaving directory `/var/tmp/portage/inkscape-0.38.1/work/inkscape-0.38.1/src/libnr' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/inkscape-0.38.1/work/inkscape-0.38.1/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/inkscape-0.38.1/work/inkscape-0.38.1' make: *** [all] Error 2 !!! ERROR: media-gfx/inkscape-0.38.1 failed. !!! Function gnome2_src_compile, Line 39, Exitcode 2 !!! compile failure opteron root # In file included from ../libnr/nr-rect.h:24, from ../libnr/nr-macros.h:23, from ../libnr/nr-matrix.h:22, from ../libnr/nr-types.h:23, from nr-types.cpp:1: ../libnr/nr-maybe.h: In constructor `NR::IsNot<T>::IsNot()': ../libnr/nr-maybe.h:27: error: there are no arguments to `string' that depend on a template parameter, so a declaration of `string' must be available ../libnr/nr-maybe.h:27: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) Reproducible: Always Steps to Reproduce: 1. emerge inkscape using gcc 3.4.0-r6 2. 3. Expected Results: working inkscape opteron root # emerge -p gcc These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] sys-devel/gcc-3.4.0-r6 opteron root # opteron root # emerge -info emerge: please specify at least one cat/pkg-ver to inject. opteron root # emerge info Portage 2.0.50-r7 (gcc34-amd64-2004.1, gcc-3.4.0, glibc-2.3.3_pre20040529-r0, 2.6.5-gentoo-r1) ================================================================= System uname: 2.6.5-gentoo-r1 x86_64 5 Gentoo Base System version 1.4.15 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ ftp://ibiblio.org/pub/Linux/distributions/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" MAKEOPTS="-j4" 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 alsa amd64 apm arts avi berkdb cdr crypt cups divx4linux dvd encode esd foomaticdb freetype gdbm ghostscript gif gimp-print gnome gpm gtk2 imagemagick imlib jpeg kde libg++ libwww mikmod motif mpeg ncurses nls nogcj offensive oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba scanner sdl slang spell ssl tcpd truetype truetype2 usb xml2 xmms xv xvid zlib" Switching to the gcc.3.3 profile fixes the issue.
*** This bug has been marked as a duplicate of 48671 ***
closing