On Jan 23, 2:59 am, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Jan 22, 2008 1:48 AM, boyfarrell <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hello,
>
> > Thanks for the reply. I don't mind building it from source. Just
> > wanted to check that it would work before I tried.
>
> > One could contact HPC (http://hpc.sourceforge.net/) to provide binary
> > support for sage on the Macintosh. Many open source, science related
> > binaries are available from this site.
> > by the way is there a technical reason why there can't be a single OSX
> > builds for Intel and PCC?
>
> None of us know how to make one for a program as complicated as Sage
> (i.e., a 5 million line program that combines together 70 separate
> components).
We would need to modify the way packages are build by passing -arch
flags to all of them, but that causes problems with libraries like gmp
and code like python that use macros for endianess and so on. Apple
has solved some problems like that for python for example, but there
is a better way - see below.
> > Will universal binaries work, or is that just of Cocoa applications
>
> I think "in theory" one could make one that would work. In practice it would
> probably be very difficult and time consuming, and unfortunately have nothing
> to do with mathematics. If somebody wants to give it a shot though,
> by all means they should. If I could change some flags and build SAGE
> in such a way that the binaries were universal but not much bigger, I would
> be happy to do so.
What can be done is the following: Build x86 and ppc independently on
native systems. Then use lipo to combine all libraries and executables
into universal binaries. I have done this for CoCoA for example and it
does work well. But I believe that the resulting binary would only
produce single architecture extensions when using Cython due to the
problems mentioned above. The size of the dmg would grow by the amount
of executables & libraries. A potential issue could be the compiled
python files. If anybody wants me to write that script let me know. I
can probably be done in a couple hours ;)
> -- William
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---