I'm trying to compile a simple Fortran code with f2py but I get a bunch 
of errors apparently related to my setup of python + numpy + ifort.

The final error is:
error: Command "ifort -L/Users/acorriga/pythonroot/lib 
/tmp/tmp9KOZQM/tmp/tmp9KOZQM/src.linux-i686-2.5/simplemodule.o 
/tmp/tmp9KOZQM/tmp/tmp9KOZQM/src.linux-i686-2.5/fortranobject.o 
/tmp/tmp9KOZQM/simple.o 
/tmp/tmp9KOZQM/tmp/tmp9KOZQM/src.linux-i686-2.5/simple-f2pywrappers2.o 
-o ./simple.so" failed with exit status 1
make: *** [simple.so] Error 1

The preceding errors all look like:
/tmp/tmp9KOZQM/tmp/tmp9KOZQM/src.linux-i686-2.5/fortranobject.o(.text+0x1b84):/tmp/tmp9KOZQM/src.linux-i686-2.5/fortranobject.c:219:
 
undefined reference to `PyErr_SetString'

I also got one other one which looks like:
/Users/acorriga/pythonroot/intel/fc/9.1.039/lib/for_main.o(.text+0x3e): 
In function `main':
: undefined reference to `MAIN__'

When I first encountered this error I was using Python 2.4.  I tried 
reinstalling Python, but upgraded to 2.5 in case that helped, but it 
apparently did not.  I'm using Intel Fortran version 9.1 and NumPy 
1.0.3.  This problem is occurring on my department's lab computers.  On 
my home desktop, which has Ubuntu Feisty installed, using the Feisty 
repository's python-numpy package and gfortran the same Fortran code 
compiles fine with f2py. Any ideas what the problem is?

Thanks,
Andrew Corrigan
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to