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"
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
ok, i'm still breathing ;)
looks like a compiler problem more than a wxpython problem ;) can you try lowering your optimisations? like -O2 or even -O1 ?
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 :)
I hope to get a new binutils ebuild with some ppc updates from cvs soon, that is an ld issue =/
This was a binutils bug, which is now fixed.