2011/6/24 stewart mackenzie <[email protected]>

> Hi Gustavo,
>
> It might seem that I might have made a mistake, or the version you are
> using might be incorrect.
>
>
Now I see, we are talking about two different files that *should* be
synchronized. In order to do the fix I did not build mozart from the
sources. I took the current installer and modified it. This was possible
because this new bundle does not include any change to the emulator nor
other components so rebuilding it was not necessary. The other reason for
avoid building it is that it is actually a pain to get everything right in
Mac OSX to produce a *general* bundle. and everything gets even worse if you
happen to have a 64 bit Mac (i.e. most of the intel macs) and want your
bundle to run on a 32 bits one.



> stewarts-MacBook-Pro-15:mozart stewart$ git diff share/bin/ozplatform
> diff --git a/share/bin/ozplatform b/share/bin/ozplatform
> index df50d08..24153bb 100755
> --- a/share/bin/ozplatform
> +++ b/share/bin/ozplatform
> @@ -40,7 +40,7 @@ case $system in
>    ;;
>    m68k\ Linux\ *)      OZARCH=linux-m68k
>    ;;
> -   sparc*\ Linux\ *)    OZARCH=linux-sparc
> +   sparc\ Linux\ *)     OZARCH=linux-sparc
>    ;;
>    9000/7*HP-UX*)      OZARCH=hpux-700
>    ;;
> @@ -78,7 +78,7 @@ case $system in
>    ;;
>    *i*86*Darwin*)       OZARCH=darwin-i386
>    ;;
> -   x86_64\ Linux*)      OZARCH=linux-x86_64_32
> +   *x86_64*Darwin*)     OZARCH=darwin-i386
>    ;;
>    *)                          OZARCH=unknown-unknown
>    ;;
>
>
I will have a closer look at this because for me linux-x86_64_32 does not
seem to be a valid architecture. It shoud be either linux-i*86 or
linux-x86_64.


> Btw I did the same changes to get the binary working with mac. so the
> 'script' changes look good.
>
>
Okay.


> Currently I am looking at getting the actual compilation fixed for a mac.
>
> Have you already attained this? If so ill sit tight on my branch.
>
>
Building mozart in my 32 bits macbook pro works without problems. The
problem comes when I try to do the same on a 64 bits machine. Most of the
problems comes from the fact that gmp needs to be built for 32 bits. After
this an using the right (old) version of flex the thing should work smoothly
as far as you define "-arch i386" for the compiler flags and do not produce
"fat" libraries.

Remember that on mac a library (*.dylib)  can actually contain two (and
more) different versions of the same library. This is to make "universal
applications". At the end you will have 32 and 64 versions of the same
library in one file (AFAIK).

If you are experiencing another problem let me know, we can start a new
thread and see how can we fix it.

Regards,
Gustavo
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to