Hi Gustavo

Yes I am experiencing problems, had a moment to get back to this build issue.

Firstly if you change the linux x86_64_32 it will break my build on
the linux box. Last i checked that is what worked, ill double check
tomorrow evening.

secondly im a mac virgin, everything you tell me about this walled
garden is news to me. That universal application idea sounds quite
sensible - if it worked. :)

> 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).

I dont get issues regarding the GMP build on my x86_64 mac.
I get this:
stewarts-MacBook-Pro-15:build stewart$ ../mozart/configure
--prefix=/Users/stewart/oz
[...]
stewarts-MacBook-Pro-15:build stewart$ make
dirs="platform share contrib doc"; \
        for i in $dirs; do \
          if (cd $i && make bootstrap); \
          then true; \
          else exit 1; \
          fi; \
        done
dirs="dss emulator wish tools"; \
        for i in $dirs; do \
          if (cd $i && make bootstrap); \
          then true; \
          else exit 1; \
          fi; \
        done
g++ -march=i386 -mtune=i386 -O3 -fomit-frame-pointer -funsigned-char
-I. -I/Users/stewart/dev/mozart/mozart/platform/dss/include
-Wdisabled-optimization -Wuninitialized -Wall -Wold-style-cast
-Woverloaded-virtual -Wshadow -Wswitch -Wreturn-type -Wunused -fPIC
-c -o base.o /Users/stewart/dev/mozart/mozart/platform/dss/src/base.cc
/Users/stewart/dev/mozart/mozart/platform/dss/src/base.cc:1: error:
CPU you selected does not support x86-64 instruction set
/Users/stewart/dev/mozart/mozart/platform/dss/src/base.cc:1: error:
CPU you selected does not support x86-64 instruction set
make[2]: *** [base.o] Error 1
make[1]: *** [bootstrap] Error 1
make: *** [bootstrap] Error 1

Hopefully we can get a decent changeset so that users can pick it up
and run with it immediately.
This seems like a major sticking point for many users.

thanks so much, I need to crash as my time zone is late.

Stewart


On Fri, Jun 24, 2011 at 10:41 PM, Gustavo Gutierrez
<[email protected]> wrote:
>
>
> 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
>
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to