[Stackless] Can't compile Python Shared Library

Ariel Ben Yehuda ariel.bys at gmail.com
Mon Jan 4 15:03:24 CET 2010


On Mon, Jan 4, 2010 at 4:00 PM, Ariel Ben Yehuda <ariel.bys at gmail.com>wrote:

> Hello and I have problems again (this time googled them before)
>
> I wanted to make C extensions but they tried to find the python sharedlib
> while compiling and failed (unless I statlinked them into 3MB land)
>
> So, I read the README file and found out that with ./configure
> --enable-shared, I can make a sharedlib.
>
> $ ./configure --enable-shared
> ...
> $ make
> ...
> Stackless/platf/switch_x86_unix.h:37: error: PIC register ‘ebx’ clobbered
> in ‘asm’
> (normal make error msg)
>
> Can you help?
> --
> - Ariel Ben-Yehuda
>

EDIT: That was a shortened message out of Stackless 2.6 MainT (r77299).

Here is a more detailed message from Stackless 3.1 r77299:
$ ./configure --enable-shared
...
$ make
...
gcc -pthread -c -fno-strict-aliasing -DSTACKLESS_FRHACK=0 -DNDEBUG -g
-fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include
-I./Stackless  -fPIC -DPy_BUILD_CORE -o Stackless/core/cframeobject.o
Stackless/core/cframeobject.c
Stackless/core/cframeobject.c:271: warning: missing braces around
initializer
Stackless/core/cframeobject.c:271: warning: (near initialization for
‘PyCFrame_Type.ob_base.ob_base’)
gcc -pthread -c -fno-strict-aliasing -DSTACKLESS_FRHACK=0 -DNDEBUG -g
-fwrapv -O3 -Wall -Wstrict-prototypes  -I. -IInclude -I./Include
-I./Stackless  -fPIC -DPy_BUILD_CORE -fno-omit-frame-pointer -O2 -I. -o
Stackless/core/slp_transfer.o ./Stackless/core/slp_transfer.c
./Stackless/platf/switch_x86_unix.h: In function ‘slp_transfer’:
./Stackless/platf/switch_x86_unix.h:37: error: PIC register ‘ebx’ clobbered
in ‘
asm’
make: *** [Stackless/core/slp_transfer.o] Error 1

Without --enable-shared it works fine

-- 
- Ariel Ben-Yehuda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stackless.com/pipermail/stackless/attachments/20100104/76e05d3d/attachment.htm>


More information about the Stackless mailing list