Saturday, March 28, 2009

Building Stackless Python on a Mac

I use Stackless Python for some of my work (and also for my open source project Scavenger). Seeing as I do most of my development on a Mac I have a number of times had the need to build Stackless Python from source. Doing that there is one thing that you should know: you need to add the configure option called --enable-stacklessfewerregisters, otherwise you will get the following error when compiling:

./Stackless/platf/switch_ppc_macosx.h:51: error: PIC register 'r31'
clobbered in 'asm'

1 comment: