[SciPy-User] [SciPy-user] f2py fortran95 won't compile

Robin robince at gmail.com
Sat Dec 12 06:02:06 EST 2009


On Sat, Dec 12, 2009 at 12:31 AM, theWonder <joebarfett at yahoo.ca> wrote:
>
> Thanks for the tips!
> I installed the compiler, ran the command and wrote that function exactly.
> Compiling went further, but now ends in this error:
>
> 2.5/hellomodule.c:246: error: called object ‘*(struct PyMethodDef
> *)&<erroneous-expression>’ is not a function
> /var/folders/1I/1IOFcx8xHPWOBxtsQ1BZgE+++TI/-Tmp-/tmp61G3Ch/src.macosx-10.3-fat-2.5/hellomodule.c:247:
> warning: comparison of distinct pointer types lacks a cast
> lipo: can't figure out the architecture type of:
> /var/folders/1I/1IOFcx8xHPWOBxtsQ1BZgE+++TI/-Tmp-//ccpxvBfj.out
> error: Command "gcc -arch ppc -arch i386 -isysroot
> /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -no-cpp-precomp
> -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3
> -I/var/folders/1I/1IOFcx8xHPWOBxtsQ1BZgE+++TI/-Tmp-/tmp61G3Ch/src.macosx-10.3-fat-2.5
> -I/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/numpy/core/include
> -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c
> /var/folders/1I/1IOFcx8xHPWOBxtsQ1BZgE+++TI/-Tmp-/tmp61G3Ch/src.macosx-10.3-fat-2.5/hellomodule.c
> -o
> /var/folders/1I/1IOFcx8xHPWOBxtsQ1BZgE+++TI/-Tmp-/tmp61G3Ch/var/folders/1I/1IOFcx8xHPWOBxtsQ1BZgE+++TI/-Tmp-/tmp61G3Ch/src.macosx-10.3-fat-2.5/hellomodule.o"
> failed with exit status 1
>
> I found the f2py users group and will seek help there. I do really
> appreciate it.
> joe

Could you post all the output? It is usually the first errors rather
than the last that are most revealing.

Robin



More information about the SciPy-User mailing list