issue while building gst 2.95d on mac intel

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

issue while building gst 2.95d on mac intel

Daniele Sciascia
hello,
i'm trying to build gst 2.95d on mac intel. gst is created whithout  
problems.
the problem arises when it tries to create the blox package:

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

am i missing something?



_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: issue while building gst 2.95d on mac intel

Paolo Bonzini-2
> 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  <[hidden email]>

        * 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




_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk