[Stackless] Fwd: Stackless 2.5.1c1 on OS X

Jeff Senn senn at maya.com
Mon Apr 30 14:42:44 CEST 2007


Arg.  I guess I didn't commit this the last time it came up.  (I never
build that way - mac users who want a lot of OS-X integration
probably want to build using the script in mac/BuildScript/build- 
installer.py
-- and this script uses the correct default -- and does a bunch of other
OS-X specific stuff...)

I'm a bit out of date now (having not yet gone to 2.5.1), but the patch
(Lloyd was correct in his advice) you want to make the default that way
on OS-X is something like this:

Index: configure.in
===================================================================
--- configure.in        (revision 53571)
+++ configure.in        (working copy)
@@ -85,7 +85,17 @@
AC_ARG_ENABLE(stacklessfewerregisters,
         AC_HELP_STRING(--enable-stacklessfewerregisters, save fewer  
registers building c-stack switching),
-[STACKLESS_FRHACK=1],[ STACKLESS_FRHACK=0 ])
+[
+       case $enableval in
+       no) STACKLESS_FRHACK=0 ;;
+       *) STACKLESS_FRHACK=1 ;;
+       esac
+],[
+        case `uname -s`/`uname -m` in
+       Darwin/i386) STACKLESS_FRHACK=1 ;;
+       *) STACKLESS_FRHACK=0 ;;
+       esac
+])
AC_SUBST(STACKLESS_FRHACK)

On Apr 30, 2007, at 5:42 AM, Richard Tew wrote:

> Anyone got any experience with a Macintelsh and Stackless?
>
>
> ---------- Forwarded message ----------
> From: Rob Hardin < rob.hardin at gmail.com>
> Date: Apr 30, 2007 12:57 AM
> Subject: Stackless 2.5.1c1 on OS X
> To: Richard Tew <richard.m.tew at gmail.com>
>
> Richard,
>
> I thought to give the compile a try on my brand new MacBook (intel
> core 2 duo) and hit the following snag;
>
> gcc-4.0 -c -fno-strict-aliasing -DSTACKLESS_FRHACK=0 -Wno-long-double
> -no-cpp-precomp -mno-fused-madd -DNDEBUG -g -O3 -Wall
> -Wstrict-prototypes  -I. -I./Include -I./Stackless   -DPy_BUILD_CORE
> -fomit-frame-pointer -O2 -I. -o Stackless/core/slp_transfer.o
> ./Stackless/core/slp_transfer.c
> ./Stackless/core/slp_transfer.c: In function 'slp_transfer':
> ./Stackless/core/slp_transfer.c:149: warning: control may reach end of
> non-void function 'slp_switch' being inlined
> ./Stackless/platf/switch_x86_unix.h:37: error: PIC register 'ebx'
> clobbered in 'asm'
> make: *** [Stackless/core/slp_transfer.o] Error 1
>
> When I see assembly I get flash backs of CS340 and an uncontrollable
> urge to cry in some dark closet (took the class from the guy who wrote
> the text book, lesson learned)--so I came promptly to a complete stop.
> Configure seemed to pickup mac okay and go through the proper routine,
> so that has thrown me off. Shall I try an older version of gcc? If I
> think of something in the next few days I will give it another go, but
> with the work week getting ready to begin that might be optimistic.
> Only brought this to your attention since I didn't see any other mac
> users post in the list archive.
>
> Best regards,
>
>       Rob
>
>
>
> NB : While I was re-reading to send this, I thought about your message
> on the configure.in file. I wonder if the mac stuff is still geared
> toward powerpc (which might explain the complaint about registers).
> I'll look into that when I find some free time.
> _______________________________________________
> Stackless mailing list
> Stackless at stackless.com
> http://www.stackless.com/mailman/listinfo/stackless


_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list