I'm trying to interface CUTEst with python using ugly. I tried to use f2py like so:
f2py -c -m ugly \
/home/gabriel/Documentos/ugly/src/gen77/gen77_main.f \
/home/gabriel/Documentos/ugly/src/gen77/gen77.f \
ELFUN.f GROUP.f RANGE.f \
-L/home/gabriel/Documentos/ugly/objects/pc64.lnx.gfo/double \
-lcutest
where libcutes.a
is in /home/gabriel/Documentos/ugly/objects/pc64.lnx.gfo/double
. f2py
did not generate the file ugly.os
and gave this message:
/usr/bin/ld: /home/gabriel/Documentos/ugly/objects/pc64.lnx.gfo/double/libcutest.a(usetup.o): no se puede usar la reubicación R_X86_64_32S contra `.rodata.str1.1' cuando se hace un objeto compartido; recompile con -fPIC
On the other hand if I compile with gfortran it works.