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

Vic Kelson vic at wittmanhydro.com
Wed Jan 31 21:26:59 EET 2007


Robert,

I'm running the XCode installer version from
http://www.macresearch.org/xcode_gfortran_plugin_update. The installer
provides both binaries, according to the site. When I do a 'which
gfortran', it reports /usr/local/bin/gfortran. I'm currently downloading
the version you recommended. Do I need to install both the gfortran and
gcc packages, as reported at the site?

I appreciate the help!
--v

-----Original Message-----
From: f2py-users-bounces at cens.ioc.ee
[mailto:f2py-users-bounces at cens.ioc.ee] On Behalf Of Robert Kern
Sent: Wednesday, January 31, 2007 2:15 PM
To: f2py-users at cens.ioc.ee
Subject: Re: [f2py] Trouble with gfortran build on OS X Tiger (i386)

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-f2pywrappe
rs2.
> 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


_______________________________________________
f2py-users mailing list
f2py-users at cens.ioc.ee
http://cens.ioc.ee/mailman/listinfo/f2py-users




More information about the f2py-users mailing list