[py-dev] Building greenlet 0.9.1 in Solaris 10

Joe Python jopython at gmail.com
Mon May 5 17:01:44 CEST 2008


Building greenlet 0.9.1 in Solaris 10

While trying to build the c extension within Solaris 10, i get the following
error message:

bash-3.00# /usr/local/bin/python setup.py build
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.solaris-2.10-sun4u-2.5
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-I/usr/local/include/python2.5 -c greenlet.c -o
build/temp.solaris-2.10-sun4u-2.5/greenlet.o
In file included from slp_platformselect.h:16,
                 from greenlet.c:251:
switch_sparc_sun_gcc.h: In function `slp_switch':
switch_sparc_sun_gcc.h:56: error: `_cst' undeclared (first use in this
function)
switch_sparc_sun_gcc.h:56: error: (Each undeclared identifier is reported
only once
switch_sparc_sun_gcc.h:56: error: for each function it appears in.)
switch_sparc_sun_gcc.h:52: error: PIC register `%l7' clobbered in `asm'
error: command 'gcc' failed with exit status 1

bash-3.00# gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/gates/sfw10/builds/sfw10-gate/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

Python build is :
Python 2.5.1 (r251:54863, May 16 2007, 19:58:05)
[GCC 3.4.6] on sunos5

bash-3.00# cat /etc/release
Solaris 10 3/05 s10_74L2a SPARC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20080505/e7614ba3/attachment.html>


More information about the Pytest-dev mailing list