[f2py] 64-bit problems - 'undefined symbol'
Alan Briolat
alan at codescape.net
Sun Jun 15 20:03:57 EEST 2008
I've got some F90 code I've been developing a Python app around on 32-bit
for a while now, but recently moved to 64-bit on my development machine.
The first problem I hit was while linking:
/usr/bin/ld: params_veg.o: relocation R_X86_64_32 against `a local symbol'
can not be used when making a shared object; recompile with -fPIC
After adding -fPIC to the compile command, I ended up with another error,
this time when trying to import into Python:
File "/home/alan/development/SEI/DO3SE/ui/dose.py", line 1, in <module>
from dose_f import *
ImportError: /home/alan/development/SEI/DO3SE/ui/dose_f.so: undefined
symbol: f2pyinitparams_site_
At the moment, I use F2PY to generate the spec file, gfortran -fPIC to
compile the parts, and then F2PY with --fcompiler=3Dgnu95 (which links it a=
ll
together). This all works fine under 32-bit (although I haven't used -fPIC
under 32-bit - could this be the problem?). Does anybody know what
f2pyinitparam_site_ might be generated from? (I have an F90 module called
param_site.) What might cause this to not exist?
Thanks in advance to anybody who can point me in the right direction of what
I should be ripping apart and testing.
-- =
Alan Briolat (http://www.codescape.net/)
2nd Year, Computer Systems and Software Engineering (MEng), University of
York, UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cens.ioc.ee/pipermail/f2py-users/attachments/20080615/82369568/=
attachment.htm
More information about the f2py-users
mailing list