Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19577 - wxPython fails to build with gtk2/opengl
Summary: wxPython fails to build with gtk2/opengl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: PPC Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-18 17:04 UTC by Jens Finkhäuser
Modified: 2006-02-04 06:03 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Finkhäuser 2003-04-18 17:04:32 UTC
bash-2.05b# python setup.py  BUILD_GLCANVAS=1 WXPORT=gtk2 build
WX_CONFIG not specified and wxgtk2-2.4-config not found on $PATH defaulting to "
         wx-config"
Preparing CORE...
Preparing GLCANVAS...
Preparing OGL...
Preparing STC...
Preparing XRC...
Preparing GIZMOS...
Preparing DLLWIDGET...
running build
running build_py
copying wxPython/__version__.py -> build-gtk2/lib.linux-ppc-2.2/wxPython
running build_ext
building 'wxc' extension
g++ -shared -O3 -pipe -mcpu=750 -mpowerpc-gfxopt -fsigned-char build-gtk2/temp.l
         inux-ppc-2.2/src/helpers.o build-gtk2/temp.linux-ppc-2.2/src/drawlist.o
build-gt          k2/temp.linux-ppc-2.2/src/libpy.o
build-gtk2/temp.linux-ppc-2.2/src/gtk/wx.o bui         
ld-gtk2/temp.linux-ppc-2.2/src/gtk/windows.o build-gtk2/temp.linux-ppc-2.2/src/g
         tk/windows2.o build-gtk2/temp.linux-ppc-2.2/src/gtk/windows3.o
build-gtk2/temp.l          inux-ppc-2.2/src/gtk/events.o
build-gtk2/temp.linux-ppc-2.2/src/gtk/misc.o build         
-gtk2/temp.linux-ppc-2.2/src/gtk/misc2.o build-gtk2/temp.linux-ppc-2.2/src/gtk/g
         di.o build-gtk2/temp.linux-ppc-2.2/src/gtk/mdi.o
build-gtk2/temp.linux-ppc-2.2/s          rc/gtk/controls.o
build-gtk2/temp.linux-ppc-2.2/src/gtk/controls2.o build-gtk2/t         
emp.linux-ppc-2.2/src/gtk/cmndlgs.o build-gtk2/temp.linux-ppc-2.2/src/gtk/statto
         ol.o build-gtk2/temp.linux-ppc-2.2/src/gtk/frames.o
build-gtk2/temp.linux-ppc-2.          2/src/gtk/image.o
build-gtk2/temp.linux-ppc-2.2/src/gtk/printfw.o build-gtk2/tem         
p.linux-ppc-2.2/src/gtk/sizers.o build-gtk2/temp.linux-ppc-2.2/src/gtk/clip_dnd.
         o build-gtk2/temp.linux-ppc-2.2/src/gtk/filesys.o
build-gtk2/temp.linux-ppc-2.2/          src/gtk/streams.o
build-gtk2/temp.linux-ppc-2.2/src/gtk/utils.o build-gtk2/temp.         
linux-ppc-2.2/src/gtk/fonts.o -L/usr/X11R6/lib -o build-gtk2/lib.linux-ppc-2.2/w
         xPython/wxc.so -pthread -lwx_gtk2u-2.4
/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.2/../../../../powerpc-unknown-lin
         ux-gnu/bin/ld: build-gtk2/lib.linux-ppc-2.2/wxPython/wxc.so: undefined
versioned           symbol name _restgpr_16_x@@WXGTK2U_2.4
/usr/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.2/../../../../powerpc-unknown-lin
         ux-gnu/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1


i've never seen that error message before, so i'm at a loss as to what the error
is. hopefully you can help!

Reproducible: Always
Steps to Reproduce:
1. USE="opengl gtk2" emerge wxPython
2.
3.




Portage 2.0.47-r10 (default-ppc-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.19-r6 ppc 
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/ "
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/mnt/4gig/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="-kde oss jpeg nls mitshm motif png truetype ppc gnome-libs gdbm berkdb
slang readline tcltk java guile X sdl gpm tcpd pam libwww ssl perl gnome gtk qt
-kde apache2 esd avi gtk2 crypt dvd encode gif imlib maildir mozilla mpeg
oggvorbis opengl python xv xmms xml2"
COMPILER="gcc3"
CHOST="powerpc-unknown-linux-gnu"
CFLAGS="-O3 -pipe -mcpu=750 -mpowerpc-gfxopt -fsigned-char"
CXXFLAGS="-O3 -pipe -mcpu=750 -mpowerpc-gfxopt -fsigned-char"
ACCEPT_KEYWORDS="ppc ~ppc"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache"
Comment 1 Graham Forest 2003-04-22 14:47:01 UTC
I don't have any solution yet, but I just thought I'd let you know that I'm looking at this. wxPython is known (at least to me) to be less than reliable to compile. I've also attempted to contact the wxPython people with a different bug, but have yet to receive a response.

I'll attempt to get one of our C Monkeys to take a look, but I wouldn't hold your breath on this one :-/


Graham
Comment 2 Jens Finkhäuser 2003-04-22 14:57:59 UTC
ok, i'm still breathing ;)
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2003-04-28 16:09:27 UTC
looks like a compiler problem more than a wxpython problem ;)

can you try lowering your optimisations? like -O2 or even -O1 ?
Comment 4 Jens Finkhäuser 2003-04-28 18:06:02 UTC
sure, should've thought of that myself... but when i try anything down to -O0, there's no change. can any of the other flags be a problem? i took them from some sample config for ppc.

hmm, gcc 3.2.3 is pretty new. i'll emerge that tomorrow (if it's already stable) and see if things work better with that, will inform you. if you have other ideas, please tell me :)
Comment 5 Luca Barbato gentoo-dev 2003-04-30 04:00:45 UTC
I hope to get a new binutils ebuild with some ppc updates from cvs soon, that is an ld issue =/
Comment 6 Graham Forest 2003-06-08 16:18:55 UTC
This was a binutils bug, which is now fixed.