[Stackless] Python 2.7 compile errors on ARM - static declaration... follows non-static declaration

W-Mark Kubacki wmark at hurrikane.de
Thu Jan 20 19:22:15 CET 2011


Stackless Python 2.6.6 compiles fine on ARM (SheevaPlug), but with
2.7.1 or current 'release27-maint' I get the following error - even
w/o the flags listed below - using GCC 4.3.4 or 4.4.4:

./configure --prefix=/usr --build=armv5tel-softfloat-linux-gnueabi
--host=armv5tel-softfloat-linux-gnueabi --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --with-fpectl --enable-shared --enable-ipv6
--with-threads --enable-unicode=ucs4 --enable-stacklessfewerregisters
--infodir=${prefix}/share/info --mandir=${prefix}/share/man
--with-dbmliborder= --with-libc= --with-system-expat --with-system-ffi
[... configure output...]
make -j5 EPYTHON=python2
[... a few lines caused by make...]
aarmv5tel-softfloat-linux-gnueabi-gcc -pthread -c -fno-strict-aliasing
-DSTACKLESS_FRHACK=1 -O2 -march=armv5te -pipe -combine
-fomit-frame-pointer -ftree-builtin-call-dce -fwrapv -DNDEBUG   -I.
-IInclude -I./Include -I./Stackless  -fPIC -DPy_BUILD_CORE -o
Objects/descrobject.o Objects/descrobject.c
Objects/descrobject.c:484: error: static declaration of
‘PyMemberDescr_Type’ follows non-static declaration
Include/descrobject.h:79: note: previous declaration of
‘PyMemberDescr_Type’ was here
Objects/descrobject.c:524: error: static declaration of
‘PyGetSetDescr_Type’ follows non-static declaration
Include/descrobject.h:78: note: previous declaration of
‘PyGetSetDescr_Type’ was here
make: *** [Objects/descrobject.o] Error 1

Most interestingly, I don't get that error on amd64. I have no idea
how to work around that on ARM.


System uname: Linux-2.6.34-rc4-mark-01947-g5a68424-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-gentoo-1.12.14
Timestamp of tree: Thu, 20 Jan 2011 16:15:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.6-r1::OSSDL
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.65-r1
sys-devel/automake:  1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.3.4, 4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers: (sys-kernel/linux-headers)
Repositories: gentoo OSSDL Hurrikane-Systems
CFLAGS="-Os -march=armv5te -pipe -combine -fomit-frame-pointer

More information about the Stackless mailing list