gcc/fortran compilers for building extensions with Tiger/MacPython

David M. Cooke cookedm at physics.mcmaster.ca
Thu Oct 12 13:30:47 CDT 2006


On Thu, 12 Oct 2006 14:03:31 -0400
Tom Loredo <loredo at astro.cornell.edu> wrote:

> Hi folks,
> 
> I've just upgraded my G4 (PPC) from Pather to Tiger, and just
> installed MacPython.  I now need to build a slew of numerical extensions.
> I'm building them from source (I have lots of custom extensions
> to build from source in any case).  I see the binaries available
> for Tiger are built with gcc 3.3 for PPC and gcc 4 for Intel; I
> think they may be tied to ActivePython but I'm not sure.  When
> I start MacPython, I see it is built with gcc 4.  Is this what
> I should be using?  I'll also be compiling fortran extensions;
> I presume I should use gfortran rather than g77 for this (g77
> is what worked with gcc 3.3).  Is this correct?

For Intel, yes, you need to use gfortran, and it has to be the prelease
version (4.2): 4.1 and earlier don't build on Intel Macs. g77 (and gcc 3.x)
won't build either, unfortunately.

If you're using MacPorts (previously DarwinPorts), you'll want the gcc42
port. Or, you can grab binaries at http://hpc.sourceforge.net/

-- 
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke                      http://arbutus.physics.mcmaster.ca/dmc/
|cookedm at physics.mcmaster.ca

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the Numpy-discussion mailing list