On Mon, Sep 7, 2009 at 3:01 AM, Juan Jose
Garcia-Ripoll<juanjose.garciarip...@googlemail.com> wrote:
>
> 2009/9/7 Dr. David Kirkby <david.kir...@onetel.net>:
>> As you know, we are having some problems building ECL on 64-bit OS X (on
>> the machine bsd.math.washington.edu).
>
> Yes, I have seen the emails. I am trying different builds here in my
> laptop, since I did not ask for an account at bsd  -- I thought I
> would not need it.
>
>> 1) Will version 9.8.4  build, or do I need to check out the CVS?
>
> 9.84 will not build in 64 bit mode because OSX wrongly reports to use
> a 32-bit operating system and processor (uname). This confuses the
> configuration process. I had to manually patch this in src/aclocal.m4
> and src/configure.in
>
>> 2) Does one need to add -m64 to CFLAGS and CXXFLAGS?
>
> No. Just use ./configure ... ABI=64 or export ABI=64 as an environment
> variable. ECL will add the right flag for OS X. Incidentally, as I
> told you in the other email, OS X needs -m64 _also_ when linking.
> Otherwise gcc will try to use 32-bits binaryes.
>
> Incidentally I just fixed another problem with our old version of GMP:
> it does not build in OS X when ABI=64 is used. I did not notice before
> this because I use a locally configured version, but I have fixed this
> today. It should solve the problems with the error message "Do not
> know how to make install".
>
> Unfortunately such a change involves also verifying that no other port
> broke, and for this I must wait until all automated builds have
> finished. Feel free to try, though.
>
>> 3) Does one need to set the ABI - and if so what to?
>
> ABI=64 for 64-bits build. Not setting it will use just the default
> values of the operating system -- which for Snow Leopard seem to
> depend on which mode the OS was booted.

Wow, I didn't realize that there were two boot modes to OS X Snow
Leopard!   Indeed, if you boot up with the "6" and "4" keys held down
the kernel boots 64-bit, but if you do nothing (or hold "3" and "2")
you get 32-bit.     Thanks for pointing this out.   It's so different
than what I've encountered on Linux/Windows, I would have never
thought of it.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to