irrlicht can't be compiled with gcc-3.4.1, with "gcc-config i686-pc-linux-gnu-3.3.4" the compilation completed successfully. Reproducible: Always Steps to Reproduce: 1. emerge "=dev-games/irrlicht-0.7" Actual Results: g++ -c CSceneNodeAnimatorFlyCircle.cpp -o CSceneNodeAnimatorFlyCircle.o -O2 -march=pentium3 -fomit-frame-pointer -I"include/" -DIRRLICHT_EXPORTS=1 g++ -c CSceneNodeAnimatorRotation.cpp -o CSceneNodeAnimatorRotation.o -O2 -march=pentium3 -fomit-frame-pointer -I"include/" -DIRRLICHT_EXPORTS=1 g++ -c CSoftwareTexture.cpp -o CSoftwareTexture.o -O2 -march=pentium3 -fomit-frame-pointer -I"include/" -DIRRLICHT_EXPORTS=1 g++ -c CStaticMeshOBJ.cpp -o CStaticMeshOBJ.o -O2 -march=pentium3 -fomit-frame-pointer -I"include/" -DIRRLICHT_EXPORTS=1 g++ -c CTestSceneNode.cpp -o CTestSceneNode.o -O2 -march=pentium3 -fomit-frame-pointer -I"include/" -DIRRLICHT_EXPORTS=1 g++ -c CTRFlat.cpp -o CTRFlat.o -O2 -march=pentium3 -fomit-frame-pointer -I"include/" -DIRRLICHT_EXPORTS=1 In file included from S2DVertex.h:8, from IK3DTriangleRenderer.h:10, from CTRTextureGouraud.h:8, from CTRFlat.cpp:5: include/vector2d.h: In member function `irr::f64 irr::core::vector2d<T>::getDistanceFrom(const irr::core::vector2d<T>&) const': include/vector2d.h:71: error: there are no arguments to `sqrt' that depend on a template parameter, so a declaration of `sqrt' must be available include/vector2d.h:71: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated) include/vector2d.h: In member function `void irr::core::vector2d<T>::rotateBy(irr::f64, const irr::core::vector2d<T>&)': include/vector2d.h:77: error: `GRAD_PI2' undeclared (first use this function) include/vector2d.h:77: error: (Each undeclared identifier is reported only once for each function it appears in.) include/vector2d.h:78: error: there are no arguments to `cos' that depend on a template parameter, so a declaration of `cos' must be available include/vector2d.h:79: error: there are no arguments to `sin' that depend on a template parameter, so a declaration of `sin' must be available include/vector2d.h: In member function `irr::f64 irr::core::vector2d<T>::getAngle() const': include/vector2d.h:113: error: there are no arguments to `sqrt' that depend on a template parameter, so a declaration of `sqrt' must be available include/vector2d.h:113: error: `GRAD_PI' undeclared (first use this function) include/vector2d.h: In member function `irr::f64 irr::core::vector2d<T>::getAngleWith(const irr::core::vector2d<T>&) const': include/vector2d.h:142: error: there are no arguments to `sqrt' that depend on a template parameter, so a declaration of `sqrt' must be available include/vector2d.h:142: error: `GRAD_PI' undeclared (first use this function) make: *** [CTRFlat.o] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-games/irrlicht-0.7 failed. !!! Function src_compile, Line 37, Exitcode 2 !!! emake failed ---------------------------------------------- this was with gcc-3.4.1... when switched to gcc-3.3.4 (gcc-config i686-pc-linux-gnu-3.3.4), the compilation worked without problems... # emerge info Portage 2.0.51_rc1 (default-x86-2004.0, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r4 i686) ================================================================= System uname: 2.6.8-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1600MHz Gentoo Base System version 1.5.3 distcc 2.17 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux-headers-2.4.22 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/share/config:/usr/kde/3.3/env:/usr/kde/3.3/shutdown /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 -march=pentium3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.inode.at/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cups dvd dvdr esd f77 foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 guile imlib java jpeg libg++ libwww mad mikmod mmx motif mozilla mpeg mplayer nas ncurses network nls oggvorbis opengl oss pam pdflib perl png python quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex truetype x86 xine xml2 xmms xprint xv zlib"
this bug is fixed in 0.7.1 http://bugs.gentoo.org/show_bug.cgi?id=65767 the ebuild isn't already in portage, but hopefully soon...