[f2py] f2py extension failure
Chris Fonnesbeck
fonnesbeck at gmail.com
Tue Oct 4 18:47:37 EEST 2005
I have a f2py extension that I am compiling with gcc 3.3 on OSX (and
g77 3.4.1). I get the following warnings on build:
compile options: '-Ibuild/src
-I/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/base/include
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4
-c'
gcc: build/src/fortranobject.c
In file included from
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:55,
from build/src/fortranobject.h:7,
from build/src/fortranobject.c:2:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/pyport.h:396:
warning: 'struct winsize' declared inside parameter list
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/pyport.h:397:
warning: 'struct winsize' declared inside parameter list
build/src/fortranobject.c: In function 'fortran_doc':
build/src/fortranobject.c:123: warning: format '%d' expects type
'int', but argument 3 has type 'size_t'
build/src/fortranobject.c: In function 'copy_ND_array':
build/src/fortranobject.c:910: warning: passing argument 2 of
'*(PyArray_API + 292u)' discards qualifiers from pointer target type
build/src/fortranobject.c: At top level:
/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/scipy/base/include/scipy/__multiarray_api.h:681:
warning: 'import_array' defined but not used
gcc: build/src/PyMC/flibmodule.c
In file included from
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/Python.h:55,
from build/src/PyMC/flibmodule.c:16:
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/pyport.h:396:
warning: 'struct winsize' declared inside parameter list
/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4/pyport.h:397:
warning: 'struct winsize' declared inside parameter list
Though it builds the extension successfully. However, when I attempt
to use the extension, I get a nasty
More information about the f2py-users
mailing list