Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to emerge pygame
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Mizipzor
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2005
Posts: 105

PostPosted: Tue Dec 19, 2006 11:46 am    Post subject: Unable to emerge pygame Reply with quote

This is the output when im trying to install a game. Apparently pygame fails. I dont know whats wrong or if I should file a bug report or something. Although the game was masked (by a yellow ~) if its not even compiling it should be hardmasked shouldnt it?

Code:

# emerge -a angrydd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-python/pygame-1.6.2
[ebuild  N    ] games-puzzle/angrydd-1.0.1

Would you like to merge these packages? [Yes/No] y

>>> Emerging (1 of 2) dev-python/pygame-1.6.2 to /
 * pygame-1.6.2.tar.bz2 MD5 ;-) ...                                                                                                                   [ ok ]
 * pygame-1.6.2.tar.bz2 RMD160 ;-) ...                                                                                                                [ ok ]
 * pygame-1.6.2.tar.bz2 SHA1 ;-) ...                                                                                                                  [ ok ]
 * pygame-1.6.2.tar.bz2 SHA256 ;-) ...                                                                                                                [ ok ]
 * pygame-1.6.2.tar.bz2 size ;-) ...                                                                                                                  [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                  [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                 [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                [ ok ]
 * checking pygame-1.6.2.tar.bz2 ;-) ...                                                                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking pygame-1.6.2.tar.bz2 to /var/tmp/portage/pygame-1.6.2/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/pygame-1.6.2/work/pygame-1.6.2 ...


WARNING, No "Setup" File Exists, Running "config.py"
Using UNIX configuration...


Hunting dependencies...
SDL     : found 1.2.11
FONT    : found
IMAGE   : found
MIXER   : found
SMPEG   : found 0.4.4
NUMERIC : found 23.7

If you get compiler errors during install, doublecheck
the compiler flags in the "Setup" file.


Continuing With "setup.py"
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.4
creating build/lib.linux-x86_64-2.4/pygame
copying lib/__init__.py -> build/lib.linux-x86_64-2.4/pygame
copying lib/color.py -> build/lib.linux-x86_64-2.4/pygame
copying lib/colordict.py -> build/lib.linux-x86_64-2.4/pygame
copying lib/cursors.py -> build/lib.linux-x86_64-2.4/pygame
copying lib/locals.py -> build/lib.linux-x86_64-2.4/pygame
copying lib/macosx.py -> build/lib.linux-x86_64-2.4/pygame
copying lib/pkgdata.py -> build/lib.linux-x86_64-2.4/pygame
copying lib/sprite.py -> build/lib.linux-x86_64-2.4/pygame
copying lib/sysfont.py -> build/lib.linux-x86_64-2.4/pygame
copying lib/version.py -> build/lib.linux-x86_64-2.4/pygame
running build_ext
building 'pygame.imageext' extension
creating build/temp.linux-x86_64-2.4
creating build/temp.linux-x86_64-2.4/src
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/SDL -I/usr/include/python2.4 -c src/imageext.c -o build/temp.linux-x86_64-2.4/src/imageext.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/imageext.c:28:
/usr/include/python2.4/pyconfig.h:826:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -pthread -shared -march=athlon64 -O2 -pipe build/temp.linux-x86_64-2.4/src/imageext.o -L/usr/lib64 -lSDL -lpthread -lSDL_image -o build/lib.linux-x86_64-2.4/pygame/imageext.so
building 'pygame.font' extension
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/SDL -I/usr/include/python2.4 -c src/font.c -o build/temp.linux-x86_64-2.4/src/font.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/font.c:29:
/usr/include/python2.4/pyconfig.h:826:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
/usr/include/python2.4/pyconfig.h:838:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/features.h:8,
                 from /usr/include/gentoo-multilib/amd64/stdio.h:28,
                 from /usr/include/stdio.h:8,
                 from src/font.c:27:
/usr/include/gentoo-multilib/amd64/features.h:154:1: warning: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -pthread -shared -march=athlon64 -O2 -pipe build/temp.linux-x86_64-2.4/src/font.o -L/usr/lib64 -lSDL -lpthread -lSDL_ttf -o build/lib.linux-x86_64-2.4/pygame/font.so
building 'pygame.mixer' extension
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/SDL -I/usr/include/python2.4 -c src/mixer.c -o build/temp.linux-x86_64-2.4/src/mixer.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/mixer.c:27:
/usr/include/python2.4/pyconfig.h:826:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
src/mixer.c: In function 'endsound_callback':
src/mixer.c:84: warning: cast from pointer to integer of different size
src/mixer.c: In function 'snd_play':
src/mixer.c:357: warning: cast from pointer to integer of different size
src/mixer.c: In function 'snd_get_num_channels':
src/mixer.c:381: warning: cast from pointer to integer of different size
src/mixer.c: In function 'snd_fadeout':
src/mixer.c:443: warning: cast from pointer to integer of different size
src/mixer.c: In function 'snd_stop':
src/mixer.c:463: warning: cast from pointer to integer of different size
src/mixer.c: In function 'chan_play':
src/mixer.c:662: warning: cast from pointer to integer of different size
src/mixer.c: In function 'chan_queue':
src/mixer.c:706: warning: cast from pointer to integer of different size
x86_64-pc-linux-gnu-gcc -pthread -shared -march=athlon64 -O2 -pipe build/temp.linux-x86_64-2.4/src/mixer.o -L/usr/lib64 -lSDL -lpthread -lSDL_mixer -o build/lib.linux-x86_64-2.4/pygame/mixer.so
building 'pygame.mixer_music' extension
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/SDL -I/usr/include/python2.4 -c src/music.c -o build/temp.linux-x86_64-2.4/src/music.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/music.c:27:
/usr/include/python2.4/pyconfig.h:826:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -pthread -shared -march=athlon64 -O2 -pipe build/temp.linux-x86_64-2.4/src/music.o -L/usr/lib64 -lSDL -lpthread -lSDL_mixer -o build/lib.linux-x86_64-2.4/pygame/mixer_music.so
building 'pygame.surfarray' extension
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/python2.4/Numeric -I/usr/include/python2.4 -c src/surfarray.c -o build/temp.linux-x86_64-2.4/src/surfarray.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/surfarray.c:23:
/usr/include/python2.4/pyconfig.h:826:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -pthread -shared -march=athlon64 -O2 -pipe build/temp.linux-x86_64-2.4/src/surfarray.o -lSDL -lpthread -o build/lib.linux-x86_64-2.4/pygame/surfarray.so
building 'pygame.sndarray' extension
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/python2.4/Numeric -I/usr/include/SDL -I/usr/include/python2.4 -c src/sndarray.c -o build/temp.linux-x86_64-2.4/src/sndarray.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/sndarray.c:23:
/usr/include/python2.4/pyconfig.h:826:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -pthread -shared -march=athlon64 -O2 -pipe build/temp.linux-x86_64-2.4/src/sndarray.o -L/usr/lib64 -lSDL -lpthread -lSDL_mixer -o build/lib.linux-x86_64-2.4/pygame/sndarray.so
building 'pygame.movie' extension
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fPIC -D_GNU_SOURCE= -D_REENTRANT -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/smpeg -I/usr/include/SDL -I/usr/include/python2.4 -c src/movie.c -o build/temp.linux-x86_64-2.4/src/movie.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/movie.c:26:
/usr/include/python2.4/pyconfig.h:826:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -pthread -shared -march=athlon64 -O2 -pipe build/temp.linux-x86_64-2.4/src/movie.o -L/usr/lib64 -lSDL -lpthread -lsmpeg -lSDL -lpthread -o build/lib.linux-x86_64-2.4/pygame/movie.so -Wl,-rpath,/usr/lib
building 'pygame.base' extension
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/python2.4 -c src/base.c -o build/temp.linux-x86_64-2.4/src/base.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/base.c:24:
/usr/include/python2.4/pyconfig.h:826:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -pthread -shared -march=athlon64 -O2 -pipe build/temp.linux-x86_64-2.4/src/base.o -lSDL -lpthread -o build/lib.linux-x86_64-2.4/pygame/base.so
building 'pygame.cdrom' extension
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/python2.4 -c src/cdrom.c -o build/temp.linux-x86_64-2.4/src/cdrom.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/cdrom.c:24:
/usr/include/python2.4/pyconfig.h:826:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -pthread -shared -march=athlon64 -O2 -pipe build/temp.linux-x86_64-2.4/src/cdrom.o -lSDL -lpthread -o build/lib.linux-x86_64-2.4/pygame/cdrom.so
building 'pygame.constants' extension
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/python2.4 -c src/constants.c -o build/temp.linux-x86_64-2.4/src/constants.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/constants.c:23:
/usr/include/python2.4/pyconfig.h:826:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
x86_64-pc-linux-gnu-gcc -pthread -shared -march=athlon64 -O2 -pipe build/temp.linux-x86_64-2.4/src/constants.o -lSDL -lpthread -o build/lib.linux-x86_64-2.4/pygame/constants.so
building 'pygame.display' extension
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon64 -O2 -pipe -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/include/SDL -I/usr/include/python2.4 -c src/display.c -o build/temp.linux-x86_64-2.4/src/display.o
In file included from /usr/include/python2.4/Python.h:13,
                 from src/pygame.h:57,
                 from src/display.c:27:
/usr/include/python2.4/pyconfig.h:826:1: warning: "_GNU_SOURCE" redefined
<command line>:1:1: warning: this is the location of the previous definition
src/display.c: In function 'get_wm_info':
src/display.c:388: error: 'SDL_SysWMinfo' has no member named 'info'
src/display.c:389: error: 'SDL_SysWMinfo' has no member named 'info'
src/display.c:390: error: 'SDL_SysWMinfo' has no member named 'info'
src/display.c:391: error: 'SDL_SysWMinfo' has no member named 'info'
src/display.c:392: error: 'SDL_SysWMinfo' has no member named 'info'
src/display.c:393: error: 'SDL_SysWMinfo' has no member named 'info'
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1

!!! ERROR: dev-python/pygame-1.6.2 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called distutils_src_compile
  distutils.eclass, line 38:   Called die

!!! compilation failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Tue Dec 19, 2006 11:54 am    Post subject: Reply with quote

Looks to me like you need to re-emerge SDL, SDL image and SDL net just to be safe, and if that doesn't work use a newer pygame library. (~amd64 version)
_________________
I'm too lazy to keep this stupid signature up to date, so here's something more interesting:
My friend Hetdegon can draw if you ask me.
Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop.
Back to top
View user's profile Send private message
Mizipzor
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2005
Posts: 105

PostPosted: Tue Dec 19, 2006 12:06 pm    Post subject: Reply with quote

Ran a

Code:
# emerge -a libsdl sdl-image sdl-net


But pygame still didnt want to be installed so I added the latest version (which wasnt marked stable) to

Code:
/etc/portage/package.keywords


But still it fails with the same errors. Anymore ideas?
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Tue Dec 19, 2006 2:30 pm    Post subject: Reply with quote

is that the newest version of python? did you try re-emerging python yet?
_________________
I'm too lazy to keep this stupid signature up to date, so here's something more interesting:
My friend Hetdegon can draw if you ask me.
Now using PClinuxOS on my laptop and Gentoo on my desktop and new laptop.
Back to top
View user's profile Send private message
Mizipzor
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2005
Posts: 105

PostPosted: Tue Dec 19, 2006 4:31 pm    Post subject: Reply with quote

Ive reemerged python but pygame still fails.
Back to top
View user's profile Send private message
toyz
n00b
n00b


Joined: 02 Mar 2003
Posts: 31
Location: Idaho USA

PostPosted: Wed Dec 20, 2006 9:44 pm    Post subject: Reply with quote

I just had this problem. I forced libsdl down to 1.2.8 by masking 1.2.11 and pygame compiled.

Now... As I go on though... the unmasked freevo seems to want a libsdl 1.2.10 or better. hum... We'll see.
Back to top
View user's profile Send private message
toyz
n00b
n00b


Joined: 02 Mar 2003
Posts: 31
Location: Idaho USA

PostPosted: Thu Dec 21, 2006 4:04 am    Post subject: Reply with quote

Afterwards I was able to take off the mask on 1.2.11 and compile it.

emerge -uND world

Thinks everything is fine. Only problem is pygame was compiled against the old libsdl. And if I try to rebuild pygame:

emerge --oneshot pygame

It dies with the new libsdl.
Back to top
View user's profile Send private message
Mizipzor
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jun 2005
Posts: 105

PostPosted: Thu Dec 21, 2006 2:12 pm    Post subject: Reply with quote

toyz,

Lets help out and solve this problem. Here is the bug on bugzilla. If the build output/error looks the same for you, post your "emerge --info" as a comment ther. I did.
Back to top
View user's profile Send private message
krackpot
n00b
n00b


Joined: 04 Dec 2005
Posts: 16
Location: Philadelphia, USA

PostPosted: Sat Mar 10, 2007 12:23 pm    Post subject: When in doubt, emerge -e system Reply with quote

(...a few months late, but this still looks unresolved)

I had the same issue with pygame. This was on a fresh install for a dedicated freevo box. I used a gentoo net-install CD that I made in 2005 figuring I would download everything new anyway, but some tools/configs (I don't remember which ones) and dmesg still displayed references to the CD's kernel despite that I was rebooted in the new environment with the latest gentoo kernel.

I tried re-ermerging pygame's dependencies and trying older and masked versions, but to no avail. So, I did an
Code:
emerge -e world
('-e system' may have sufficed, but I was leaving town for a few days, so why not :wink: ). When I came back both pygame and freevo compiled and installed fine. I still got warnings on every pygame file compile about redefined " GNU_SOURCE", but it finished installing, and my freevo works sans issues.
Back to top
View user's profile Send private message
kahepe
n00b
n00b


Joined: 14 Mar 2007
Posts: 1

PostPosted: Wed Mar 14, 2007 8:26 am    Post subject: Reply with quote

For me,
Code:
echo "media-libs/libsdl X" >> /etc/portage/package.use
emerge libsdl
solved the problem. 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum