Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 404425 - games-puzzle/pingus-0.7.6 fails to compile
Summary: games-puzzle/pingus-0.7.6 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
: 408447 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-02-18 17:51 UTC by Markus Walter
Modified: 2012-06-30 05:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,21.27 KB, text/plain)
2012-02-18 17:51 UTC, Markus Walter
Details
emerge --info (info.txt,5.42 KB, text/plain)
2012-02-18 17:52 UTC, Markus Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2012-02-18 17:51:49 UTC
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.
Comment 1 Markus Walter 2012-02-18 17:52:00 UTC
Created attachment 302405 [details]
emerge --info
Comment 2 Stephan Litterst 2012-02-19 07:38:45 UTC
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'
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2012-02-20 18:05:39 UTC
You have silly CFLAGS.  Try it with:

CXXFLAGS="-O2 -pipe -march=native" and see it's any better.
Comment 4 Markus Walter 2012-02-20 21:47:31 UTC
The error stays exactly the same CXXFLAGS="-O2 -pipe -march=native".
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2012-02-22 23:08:28 UTC
Could be gcc-4.6 related then.  Can you try it with gcc-4.5 and see if there's any difference?
Comment 6 Markus Walter 2012-02-23 07:30:27 UTC
The error stays the same with gcc-4.5.3.
Comment 7 Stephan Litterst 2012-02-26 07:14:56 UTC
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
Comment 8 Markus Walter 2012-02-26 09:23:47 UTC
I only have a /usr/lib64/python2.7/site-packages/SCons/__init__.pyc. Removing this file didn't change anything for me.
Comment 9 Mr. Bones. (RETIRED) gentoo-dev 2012-03-16 15:11:55 UTC
*** Bug 408447 has been marked as a duplicate of this bug. ***
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-06-29 13:12:55 UTC
I can reproduce on the tinderbox.
Comment 11 Mr. Bones. (RETIRED) gentoo-dev 2012-06-30 05:00:23 UTC
fixed.