[f2py] Trouble with gfortran build on OS X Tiger (i386)

Robert Kern robert.kern at gmail.com
Wed Jan 31 21:14:32 EET 2007


Vic Kelson wrote:
> Hi Everyone,
> 
> I am having trouble building an extension on Mac OS X Tiger using gfortran.
> It appears that during the link phase, at least one PowerPC library is being
> included(?) in the .so file.
> 
> Here's the voluminous output from f2py, including all the errors and
> warnings, including my attempt to test the extension.
> 
> THANKS for all your help!
> Vic Kelson
> 
> ic-kelsons-computer:~/aurora vic$ f2py --fcompiler=gnu95 -c -m aurora
> aurora_common.f90 well_collection.f90

> /usr/local/bin/gfortran -Wall -undefined dynamic_lookup -bundle
> /tmp/tmpPoryGr/tmp/tmpPoryGr/src.darwin-8.8.3-i386-2.4/auroramodule.o
> /tmp/tmpPoryGr/tmp/tmpPoryGr/src.darwin-8.8.3-i386-2.4/fortranobject.o
> /tmp/tmpPoryGr/aurora_common.o /tmp/tmpPoryGr/well_collection.o
> /tmp/tmpPoryGr/tmp/tmpPoryGr/src.darwin-8.8.3-i386-2.4/aurora-f2pywrappers2.
> o -L/usr/local/lib/gcc/powerpc-apple-darwin8.8.0/4.2.0 -lgfortran -o
> ./aurora.so

Which gfortran did you install? It appears that you installed the PPC version
from http://hpc.sourceforge.net rather than the Intel version.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco




More information about the f2py-users mailing list