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 -DF2PY_REPORT_ON_ARRAY_COPY=1 -I/var/folders/N2/N2Z4lrkgHb0iyoQobv1DcE+++TI/-Tmp-/tmpJRch8F/src.macosx-10.3-fat-2.6 -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/include -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c /var/folders/N2/N2Z4lrkgHb0iyoQobv1DcE+++TI/-Tmp-/tmpJRch8F/src.macosx-10.3-fat-2.6/fortranobject.c -o /var/folders/N2/N2Z4lrkgHb0iyoQobv1DcE+++TI/-Tmp-/tmpJRch8F/var/folders/N2/N2Z4lrkgHb0iyoQobv1DcE+++TI/-Tmp-/tmpJRch8F/src.macosx-10.3-fat-2.6/fortranobject.o" failed with exit status 1 make[1]: *** [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 same error. Thanks for helping me. Arthur On Fri, Sep 25, 2009 at 11:24 AM, Robert Kern <[email protected]> wrote: > On Fri, Sep 25, 2009 at 10:19, Arthur Bousquet <[email protected]> > wrote: > > 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 > 'gcc' > > compiler > > make[1]: *** [libsw] Error 1 > > make: *** [libsw] Error 2 > > > > > > Noteworthy, my library is correct because I can compile it with f2py on > my > > 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 > [email protected] > http://mail.scipy.org/mailman/listinfo/numpy-discussion >
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
