[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Re: issue while building gst 2.95d on mac intel
From: |
Paolo Bonzini |
Subject: |
[Help-smalltalk] Re: issue while building gst 2.95d on mac intel |
Date: |
Tue, 25 Sep 2007 17:02:37 +0200 |
User-agent: |
Thunderbird 2.0.0.6 (Macintosh/20070728) |
cd packages/blox/tk && make
make[3]: Nothing to be done for `all'.
./gst-tool gst-package
--kernel-dir="/Users/sciascid/Desktop/smalltalk-2.95d/kernel" -I
"/Users/sciascid/Desktop/smalltalk-2.95d/gst.im" --srcdir=.
--target-directory=. packages/blox/tk/package.xml
gst-package: did not understand #+
make[2]: *** [BloxTK.star] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
It's a compiler bug. The latest arch works, I'll release a new one next
week probably. In the meanwhile try this patch, which is what I applied
yesterday after a colleague reported the same problem.
Paolo
2007-09-24 Paolo Bonzini <address@hidden>
* libgst/md-config.h: Disable register allocation tricks if not
optimizing, as well as third register on Apple compilers.
--- orig/libgst/md-config.h
+++ mod/libgst/md-config.h
@@ -87,7 +87,9 @@
# define REG_AVAILABILITY 0
# define __DECL_REG1 __asm("%esi")
# define __DECL_REG2 __asm("%edi")
-# if defined __PIC__ || defined __pic__
+# if defined __APPLE__
+# define __DECL_REG3 /* bug on Apple GCC? */
+# elif defined __PIC__ || defined __pic__
# define __DECL_REG3 __asm("%edx") /* Don't conflict with GOT pointer... */
# else
# define __DECL_REG3 __asm("%ebx") /* ...but prefer a callee-save reg. */
@@ -151,7 +153,7 @@
# define REG_AVAILABILITY 1
#endif
-#if !defined(__GNUC__) || !defined(__DECL_REG1)
+#if !defined(__GNUC__) || !defined(__DECL_REG1) || !defined(__OPTIMIZE__)
# define REGISTER(reg, decl) register decl
#else
# define __DECL_REG(k) k