[f2py] Problems getting f2py to recognize my intel compiler
"Raymond P." <[email protected]>
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I finally managed to get f2py working for the simple hello test case
on my OS 10.5
machine, running Python 2.6. That was with gfortran, but now I'd like
to
use my intel compiler. f2py doesn't seem to recognize the compiler.
It's
installed in /opt/intel/fce/10.1.017/bin/ifort , but it's in my path.
Here's the
f2py diagnostic:
[moominpappa:~/Documents] rtp1% f2py -c --help-fcompiler
Using built-in specs.
Target: i686-apple-darwin9
Configured with: ../gcc-4.2.2/configure --prefix=/sw --prefix=/sw/lib/
gcc4.2 --mandir=/sw/share/man --infodir=/sw/share/info --enable-
languages=c,c++,fortran,objc,java --with-arch=nocona --with-
tune=generic --host=i686-apple-darwin9 --with-gmp=/sw --with-libiconv-
prefix=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-
libraries=/usr/X11R6/lib
Thread model: posix
gcc version 4.2.2
Using built-in specs.
Target: i686-apple-darwin9
Configured with: ../gcc-4.2.2/configure --prefix=/sw --prefix=/sw/lib/
gcc4.2 --mandir=/sw/share/man --infodir=/sw/share/info --enable-
languages=c,c++,fortran,objc,java --with-arch=nocona --with-
tune=generic --host=i686-apple-darwin9 --with-gmp=/sw --with-libiconv-
prefix=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-
libraries=/usr/X11R6/lib
Thread model: posix
gcc version 4.2.2
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-
packages/numpy/distutils/fcompiler/gnu.py:119: UserWarning: Env.
variable MACOSX_DEPLOYMENT_TARGET set to 10.3
warnings.warn(s)
Using built-in specs.
Target: i686-apple-darwin9
Configured with: ../gcc-4.2.2/configure --prefix=/sw --prefix=/sw/lib/
gcc4.2 --mandir=/sw/share/man --infodir=/sw/share/info --enable-
languages=c,c++,fortran,objc,java --with-arch=nocona --with-
tune=generic --host=i686-apple-darwin9 --with-gmp=/sw --with-libiconv-
prefix=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-
libraries=/usr/X11R6/lib
Thread model: posix
gcc version 4.2.2
Using built-in specs.
Target: i686-apple-darwin9
Configured with: ../gcc-4.2.2/configure --prefix=/sw --prefix=/sw/lib/
gcc4.2 --mandir=/sw/share/man --infodir=/sw/share/info --enable-
languages=c,c++,fortran,objc,java --with-arch=nocona --with-
tune=generic --host=i686-apple-darwin9 --with-gmp=/sw --with-libiconv-
prefix=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-
libraries=/usr/X11R6/lib
Thread model: posix
gcc version 4.2.2
Gnu95FCompiler instance properties:
archiver = ['/sw/bin/gfortran', '-cr']
compile_switch = '-c'
compiler_f77 = ['/sw/bin/gfortran', '-Wall', '-ffixed-form', '-
fno-
second-underscore', '-O3', '-funroll-loops']
compiler_f90 = ['/sw/bin/gfortran', '-Wall', '-fno-second-
underscore',
'-O3', '-funroll-loops']
compiler_fix = ['/sw/bin/gfortran', '-Wall', '-ffixed-form', '-
fno-
second-underscore', '-Wall', '-fno-second-
underscore', '-
O3', '-funroll-loops']
libraries = ['gfortran']
library_dirs = ['/sw/lib/gcc4.2/lib/gcc/i686-apple-darwin9/4.2.2']
linker_exe = ['/sw/bin/gfortran', '-Wall', '-Wall']
linker_so = ['/sw/bin/gfortran', '-Wall', '-arch', 'i686', '-
Wall',
'-undefined', 'dynamic_lookup', '-bundle']
object_switch = '-o '
ranlib = ['/sw/bin/gfortran']
version = LooseVersion ('4.2.2')
version_cmd = ['/sw/bin/gfortran', '--version']
Fortran compilers found:
--fcompiler=gnu95 GNU Fortran 95 compiler (4.2.2)
Compilers available for this platform, but not found:
--fcompiler=absoft Absoft Corp Fortran Compiler
--fcompiler=g95 G95 Fortran Compiler
--fcompiler=gnu GNU Fortran 77 compiler
--fcompiler=ibm IBM XL Fortran Compiler
--fcompiler=intel Intel Fortran Compiler for 32-bit apps
--fcompiler=nag NAGWare Fortran 95 Compiler