Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 135029

Summary: pyode-1.1.0 compilation fails (gcc-4.1)
Product: Gentoo Linux Reporter: Frédéric COIFFIER <fcoiffie>
Component: [OLD] GCC PortingAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: peper, rhill
Priority: High    
Version: 2006.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 117482    
Attachments: pyode-1.1.0.ebuild.patch
pyode-1.1.0.ebuild.patch

Description Frédéric COIFFIER 2006-05-31 04:54:11 UTC
When I emerge pyode-1.1.0, I got the following error :

i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon-xp -O2 -g2 -ggdb -pipe -fPIC -I/usr/share/ode-0.5/include -I/usr/include/python2.4 -c ode_trimesh.c -o build/temp.linux-i686-2.4/ode_trimesh.o
ode_trimesh.c: In function &#8216;__pyx_f_3ode_4Body_getMass&#8217;:
ode_trimesh.c:3781: erreur: membre gauche de l'affectation invalide
ode_trimesh.c:3789: erreur: membre gauche de l'affectation invalide
ode_trimesh.c: In function &#8216;__pyx_f_3ode_9BallJoint___new__&#8217;:
ode_trimesh.c:5978: erreur: membre gauche de l'affectation invalide
ode_trimesh.c:5993: erreur: membre gauche de l'affectation invalide
ode_trimesh.c: In function &#8216;__pyx_f_3ode_10HingeJoint___new__&#8217;:
ode_trimesh.c:6277: erreur: membre gauche de l'affectation invalide
ode_trimesh.c:6292: erreur: membre gauche de l'affectation invalide
ode_trimesh.c: In function &#8216;__pyx_f_3ode_11SliderJoint___new__&#8217;:
ode_trimesh.c:6752: erreur: membre gauche de l'affectation invalide
ode_trimesh.c:6767: erreur: membre gauche de l'affectation invalide
ode_trimesh.c: In function &#8216;__pyx_f_3ode_14UniversalJoint___new__&#8217;:
ode_trimesh.c:7089: erreur: membre gauche de l'affectation invalide
ode_trimesh.c:7104: erreur: membre gauche de l'affectation invalide
ode_trimesh.c: In function &#8216;__pyx_f_3ode_11Hinge2Joint___new__&#8217;:
ode_trimesh.c:7606: erreur: membre gauche de l'affectation invalide
ode_trimesh.c:7621: erreur: membre gauche de l'affectation invalide
ode_trimesh.c: In function &#8216;__pyx_f_3ode_10FixedJoint___new__&#8217;:
ode_trimesh.c:8201: erreur: membre gauche de l'affectation invalide
ode_trimesh.c:8216: erreur: membre gauche de l'affectation invalide
ode_trimesh.c: In function &#8216;__pyx_f_3ode_12ContactJoint___new__&#8217;:
ode_trimesh.c:8331: erreur: membre gauche de l'affectation invalide
ode_trimesh.c:8347: erreur: membre gauche de l'affectation invalide
ode_trimesh.c: In function &#8216;__pyx_f_3ode_6AMotor___new__&#8217;:
ode_trimesh.c:8444: erreur: membre gauche de l'affectation invalide
ode_trimesh.c:8459: erreur: membre gauche de l'affectation invalide
ode_trimesh.c: In function &#8216;__pyx_f_3ode_11SimpleSpace___new__&#8217;:
ode_trimesh.c:10687: erreur: membre gauche de l'affectation invalide
ode_trimesh.c:10701: erreur: membre gauche de l'affectation invalide
ode_trimesh.c: In function &#8216;__pyx_f_3ode_9HashSpace___new__&#8217;:
ode_trimesh.c:10776: erreur: membre gauche de l'affectation invalide
ode_trimesh.c:10790: erreur: membre gauche de l'affectation invalide
...
...

Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.3.6-r3, 2.6.16-gentoo-r3 i686)
=================================================================
System uname: 2.6.16-gentoo-r3 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0-r1
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -g2 -ggdb -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -g2 -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LINGUAS="fr"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aalib acl acpi alsa apache2 apm arts asf audiofile avi berkdb bitmap-fonts bzip2 bzlib cdr cjk cli crypt cscope cups curl debug dga divx4linux dri dts dvd dvdread eds emboss encode ethereal exif expat fam ffmpeg fftw flac flash foomatic foomaticdb fortran ftp gd gdbm ggi gif gimpprint glut gmp gphoto2 gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 isdnlog jack java jpeg kde lcms ldap libg++ libwww lua mad mhash mikmod ming mmx mng motif mozsvg mp3 mpeg musicbrainz ncurses network nls nptl nsplugin nvidia ogg oggvorbis openal opengl oss pam pcre pdf pdflib perl php pic plotutils png povray pppd python qt quicktime readline recode reflection ruby samba scanner sdk sdl session slang speex spell spl splitdebug sqlite sse sse2 ssl subversion svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb v4l2 vorbis win32codecs wmf x86 xine xinerama xml xml2 xmms xorg xv xvid zlib linguas_fr userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-31 05:04:15 UTC
Reopen with errors in English. Set your locales to C when reporting bugs, please...
Comment 2 Frédéric COIFFIER 2006-05-31 14:38:38 UTC
When I emerge pyode-1.1.0, I got the following error :

i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon-xp -O2 -g2 -ggdb -pipe -fPIC -I/usr/share/ode-0.5/include -I/usr/include/python2.4 -c ode_trimesh.c -o build/temp.linux-i686-2.4/ode_trimesh.o
ode_trimesh.c: In function '__pyx_f_3ode_4Body_getMass':
ode_trimesh.c:3781: error: invalid lvalue in assignment
ode_trimesh.c:3789: error: invalid lvalue in assignment
ode_trimesh.c: In function '__pyx_f_3ode_9BallJoint___new__':
ode_trimesh.c:5978: error: invalid lvalue in assignment
ode_trimesh.c:5993: error: invalid lvalue in assignment
ode_trimesh.c: In function '__pyx_f_3ode_10HingeJoint___new__':
ode_trimesh.c:6277: error: invalid lvalue in assignment
ode_trimesh.c:6292: error: invalid lvalue in assignment
ode_trimesh.c: In function '__pyx_f_3ode_11SliderJoint___new__':
ode_trimesh.c:6752: error: invalid lvalue in assignment
ode_trimesh.c:6767: error: invalid lvalue in assignment
ode_trimesh.c: In function '__pyx_f_3ode_14UniversalJoint___new__':
ode_trimesh.c:7089: error: invalid lvalue in assignment
ode_trimesh.c:7104: error: invalid lvalue in assignment
ode_trimesh.c: In function '__pyx_f_3ode_11Hinge2Joint___new__':
ode_trimesh.c:7606: error: invalid lvalue in assignment
ode_trimesh.c:7621: error: invalid lvalue in assignment
ode_trimesh.c: In function '__pyx_f_3ode_10FixedJoint___new__':
ode_trimesh.c:8201: error: invalid lvalue in assignment
ode_trimesh.c:8216: error: invalid lvalue in assignment
ode_trimesh.c: In function '__pyx_f_3ode_12ContactJoint___new__':
ode_trimesh.c:8331: error: invalid lvalue in assignment
ode_trimesh.c:8347: error: invalid lvalue in assignment
ode_trimesh.c: In function '__pyx_f_3ode_6AMotor___new__':
ode_trimesh.c:8444: error: invalid lvalue in assignment
ode_trimesh.c:8459: error: invalid lvalue in assignment
ode_trimesh.c: In function '__pyx_f_3ode_11SimpleSpace___new__':
ode_trimesh.c:10687: error: invalid lvalue in assignment
ode_trimesh.c:10701: error: invalid lvalue in assignment
ode_trimesh.c: In function '__pyx_f_3ode_9HashSpace___new__':
ode_trimesh.c:10776: error: invalid lvalue in assignment
ode_trimesh.c:10790: error: invalid lvalue in assignment
ode_trimesh.c: In function '__pyx_f_3ode_13QuadTreeSpace___new__':
ode_trimesh.c:10974: error: invalid lvalue in assignment
ode_trimesh.c:10988: error: invalid lvalue in assignment
...
...
Comment 3 Lukasz Strzygowski (RETIRED) gentoo-dev 2006-06-02 10:31:55 UTC
Please upgrade dev-python/pyrex to 0.9.4.1 and try again.
Comment 4 Piotr Jaroszyński (RETIRED) gentoo-dev 2006-06-05 09:39:26 UTC
The problem is that package provides already generated files with pyrex-0.9.3 which won't compile with gcc4.1. 
The resolution is to delete ode_trimesh.c and ode_notrimesh.c after unpacking the package and let the build script generate them with locally installed pyrex(only 0.9.4.1 works).
Comment 5 Piotr Jaroszyński (RETIRED) gentoo-dev 2006-06-05 09:42:50 UTC
Created attachment 88455 [details, diff]
pyode-1.1.0.ebuild.patch

Changes:
- DEP: >=pyrex-0.9.3 to >=pyrex-0.9.4.1 - required for gcc41 compatibility
- KEYWORDS: x86 to ~x86 b/c of unstable pyrex 0.9.4.1
- src_unpack: removes these 2 files in question
Comment 6 Piotr Jaroszyński (RETIRED) gentoo-dev 2006-06-05 10:30:27 UTC
Created attachment 88457 [details, diff]
pyode-1.1.0.ebuild.patch

Removed keyword and dep changes b/c if someone is running ~x86(gcc-4.1  and pyrex-0.9.4.1 are ~x86) it will just work. (Halcy0n pointed me that out so don't argue :P)
Comment 7 Piotr Jaroszyński (RETIRED) gentoo-dev 2006-06-08 07:50:21 UTC
Added patched ebuild to the sunrise overlay. http://overlays.gentoo.org/svn/proj/sunrise/dev-python/pyode/

Please add InOverlay keyword.
Comment 8 Piotr Jaroszyński (RETIRED) gentoo-dev 2006-06-08 16:01:53 UTC
Not any more in the sunrise overlay ;(
Comment 9 Frédéric COIFFIER 2006-06-12 10:19:02 UTC
In my case, the last pyode-1.1.0.ebuild.patch works fine and pyode-1.10 compiles with it and gcc-4.1.
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2006-10-15 17:26:19 UTC
@python: pingy ;)
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2006-12-09 14:05:20 UTC
i'm confused.  what needs to be done to fix this?  just the DEPEND should be pyrex-0.9.4.1?  that's the current stable version so this should be a problem anymore.
Comment 12 Ryan Hill (RETIRED) gentoo-dev 2006-12-09 18:27:18 UTC
Looks like pyode-1.1.0 needs =ode-0.5, while pyode-1.1.0_p20060728 will build with any version of ode.  The later also doesn't need the regeneration trick.  I would say just use the snapshot build, but just to be safe I'll update both.

Fixed in CVS.