Created attachment 302403 [details] build log On my hardened ~amd64 machine with gcc-4.6.2 I see the following error when merging pingus. x86_64-pc-linux-gnu-g++ -o build/src/engine/display/display.o -c -O2 -s -std=c++0x -O2 -pipe -march=native -ggdb -floop-interchange -floop-strip-mine -floop-block -finline-functions -isystem/usr/include/libpng15 -isystem/usr/include/SDL -DVERSION="\"0.7.6\"" -DHAVE_LINUXEVDEV=1 -D_GNU_SOURCE=1 -D_REENTRANT -DHAVE_ICONV_CONST -DICONV_CONST= -Ibuild/src -Isrc -Ibuild -I. -Ibuild/src -Isrc -Ibuild/external/tinygettext -Iexternal/tinygettext src/engine/display/display.cpp src/engine/display/display.cpp:102:41: error: expected primary-expression before ‘,’ token src/engine/display/display.cpp:102:79: error: ‘raise_exception’ was not declared in this scope scons: *** [build/src/engine/display/display.o] Error 1 scons: building terminated because of errors.
Created attachment 302405 [details] emerge --info
same here on x86 (emerge fails) but different errors: * Package: games-puzzle/pingus-0.7.6 * Package: games-puzzle/pingus-0.7.6 * Repository: gentoo * Maintainer: games@gentoo.org * USE: elibc_glibc kernel_linux opengl userland_GNU x86 * FEATURES: ccache sandbox >>> Unpacking source... >>> Unpacking pingus-0.7.6.tar.bz2 to /var/tmp/portage/games-puzzle/pingus-0.7.6/work >>> Source unpacked in /var/tmp/portage/games-puzzle/pingus-0.7.6/work >>> Preparing source in /var/tmp/portage/games-puzzle/pingus-0.7.6/work/pingus-0.7.6 ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/games-puzzle/pingus-0.7.6/work/pingus-0.7.6 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/games-puzzle/pingus-0.7.6/work/pingus-0.7.6 ... scons -j2 CXX=i686-pc-linux-gnu-g++ CCFLAGS=-O2 -march=native -mtune=native -pipe -fomit-frame-pointer LINKFLAGS=-Wl,-O1 -Wl,--as-needed with_opengl=1 Traceback (most recent call last): File "/usr/bin/scons-2.7", line 187, in <module> import SCons.Script ImportError: Bad magic number in /usr/lib/scons/SCons/__init__.pyc * ERROR: games-puzzle/pingus-0.7.6 failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 85: Called src_compile * environment, line 2456: Called die * The specific snippet of code: * escons CXX="$(tc-getCXX)" CCFLAGS="${CXXFLAGS}" LINKFLAGS="${LDFLAGS}" $(use_scons opengl with_opengl) || die * * If you need support, post the output of 'emerge --info =games-puzzle/pingus-0.7.6', * the complete build log and the output of 'emerge -pqv =games-puzzle/pingus-0.7.6'. * The complete build log is located at '/var/tmp/portage/games-puzzle/pingus-0.7.6/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/games-puzzle/pingus-0.7.6/temp/environment'. * S: '/var/tmp/portage/games-puzzle/pingus-0.7.6/work/pingus-0.7.6'
You have silly CFLAGS. Try it with: CXXFLAGS="-O2 -pipe -march=native" and see it's any better.
The error stays exactly the same CXXFLAGS="-O2 -pipe -march=native".
Could be gcc-4.6 related then. Can you try it with gcc-4.5 and see if there's any difference?
The error stays the same with gcc-4.5.3.
OK, I found the problem for the x86 errors: In my case I deleted /usr/lib/scons/SCons/__init__.pyc and the new version of pingus have been emerged
I only have a /usr/lib64/python2.7/site-packages/SCons/__init__.pyc. Removing this file didn't change anything for me.
*** Bug 408447 has been marked as a duplicate of this bug. ***
I can reproduce on the tinderbox.
fixed.