[Numpy-discussion] F2PY error : ... on platform 'posix' with 'gcc' compiler
Fri Sep 25 10:48:01 CDT 2009
I used compiler=gcc, here is the command :
f2py2.6 --fcompiler=gfortran --compiler=gcc -DF2PY_REPORT_ON_ARRAY_COPY=1 -m
libsw -c file1.f90 file2.f90
Ok so you said that "--compiler=gcc" is not a command ?
So I removed the line "--compiler=gcc", and I got a new error :
error: Command "gcc -arch ppc -arch i386 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fPIC -fno-common
-dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
failed with exit status 1
make: *** [libsw] Error 1
make: *** [libsw] Error 2
Why some macs-10.3 appeare but if I do the "export
MACOSX_DEPLOYMENT_TARGET=10.6" they all become "10.6" but I still have the
Thanks for helping me.
On Fri, Sep 25, 2009 at 11:24 AM, Robert Kern <firstname.lastname@example.org> wrote:
> On Fri, Sep 25, 2009 at 10:19, Arthur Bousquet <email@example.com>
> > Hello,
> > I have a Mac with snow leopard 10.6. I compiled Python2.6.2, numpy1.3 and
> > matplotlib from the sources.
> > I tried to compiled a library (named libsw), that I have made in fortran,
> > with f2py but I got the following error :
> > running build_ext
> > error: don't know how to compile C/C++ code on platform 'posix' with
> > compiler
> > make: *** [libsw] Error 1
> > make: *** [libsw] Error 2
> > Noteworthy, my library is correct because I can compile it with f2py on
> > Ubuntu desktop.
> > Does anyone knows where this error comes from ?
> Did you use --compiler=gcc? That is not one of the options. Please
> show the exact command line you used and any configuration files.
> 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
> NumPy-Discussion mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion