[py-dev] Problems compiling greenlets under MacOSX 10.3.7

Bob Ippolito bob at redivi.com
Sun Jan 9 08:19:49 CET 2005


On Jan 8, 2005, at 21:44, Valentino Volonghi aka Dialtone wrote:

> I would like to compile greenlets on darwin but unfortunately I only 
> get an error from the assembler.
>
> running build
> running build_ext
> building 'greenlet' extension
> gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp 
> -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Wall 
> -Wstrict-prototypes 
> -I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 
> -c greenlet.c -o 
> build/temp.darwin-7.7.0-Power_Macintosh-2.4/greenlet.o
> /var/tmp//cc5zHKvY.s:2506:non-relocatable subtraction expression, 
> "_ts_current" minus "L00000000044$pb"
> /var/tmp//cc5zHKvY.s:2506:symbol: "L00000000044$pb" can't be undefined 
> in a subtraction expression
> /var/tmp//cc5zHKvY.s:2504:non-relocatable subtraction expression, 
> "_ts_current" minus "L00000000044$pb"
> /var/tmp//cc5zHKvY.s:2504:symbol: "L00000000044$pb" can't be undefined 
> in a subtraction expression
> /var/tmp//cc5zHKvY.s:2475:non-relocatable subtraction expression, 
> "_ts_target" minus "L00000000044$pb"
> /var/tmp//cc5zHKvY.s:2475:symbol: "L00000000044$pb" can't be undefined 
> in a subtraction expression
> /var/tmp//cc5zHKvY.s:2473:non-relocatable subtraction expression, 
> "_ts_target" minus "L00000000044$pb"
> /var/tmp//cc5zHKvY.s:2473:symbol: "L00000000044$pb" can't be undefined 
> in a subtraction expression
> /var/tmp//cc5zHKvY.s:unknown:Undefined local symbol L00000000044$pb
> error: command 'gcc' failed with exit status 1
>
> Is there any flag I should use to compile them or is this just an 
> error in the code?

It's a GCC bug, but there is a workaround for it in Stackless.  It 
sounds like the greenlet code you are compiling is using really old 
stackless code.  I fixed this bug in stackless CVS some time last March 
I think.

Make sure you're using the latest Xcode and whatnot too, of course.  
This is what I have:

% cc --version
cc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1666)

-bob




More information about the Pytest-dev mailing list