[f2py] f2py is unable to detect my Intel Visual Fortran compiler
Shriram Swaminathan
shri_sap at yahoo.com
Tue Jun 17 06:59:17 EEST 2008
Hello,
I am a newbie to f2py and have Python Version 2.4 on my Win32 machine and I installed Scipy, Numpy and f2py on my machine. I do have an Intel Visual Fortran Compiler 9.1 Build 20070109Z on my machine. But
f2py is unable to find this compiler on my machine. When I install the gfortran compiler, I am able to compile and link my fortran programs.
I use the following command and please find below the messages issued:
C:\Python24>python244 C:\Python24\Scripts\f2py.py -c fib1.f90 -m fib1
running build
running scons
No module named msvccompiler in numpy.distutils; trying from distutils
customize MSVCCompiler
Found executable C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelVisualFCompiler
Found executable C:\Program Files\Intel\Compiler\Fortran\9.1\Ia32\Bin\ifl.exe
Found executable C:\Program Files\Intel\Compiler\Fortran\9.1\Ia32\Bin\ifl.exe
customize AbsoftFCompiler
Found executable C:\Program Files\Intel\Compiler\Fortran\9.1\Ia32\Bin\f90.exe
absoft: no Fortran 77 compiler found
absoft: no Fortran 77 compiler found
Found executable C:\Program Files\Intel\Compiler\Fortran\9.1\Ia32\Bin\f90.exe
customize CompaqVisualFCompiler
Found executable C:\Program Files\Intel\Compiler\Fortran\9.1\Ia32\Bin\DF.exe
Found executable C:\Program Files\Intel\Compiler\Fortran\9.1\Ia32\Bin\DF.exe
customize IntelItaniumVisualFCompiler
Could not locate executable efl
customize Gnu95FCompiler
Found executable C:\gfortran\bin\gfortran.exe
Found executable C:\gfortran\bin\gfortran.exe
customize Gnu95FCompiler
No module named msvccompiler in numpy.distutils; trying from distutils
customize MSVCCompiler
Missing compiler_cxx fix for MSVCCompiler
customize MSVCCompiler using scons
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
building extension "fib1" sources
f2py options: []
f2py:> d:\temp\tmpmtiwak\src.win32-2.4\fib1module.c
creating d:\temp\tmpmtiwak
creating d:\temp\tmpmtiwak\src.win32-2.4
Reading fortran codes...
Reading file 'fib1.f90' (format:fix)
Post-processing...
Block: fib1
Block: fib
Post-processing (stage 2)...
Building modules...
Building module "fib1"...
Constructing wrapper function "fib"...
fib(a,[n])
Wrote C/API module "fib1" to file "d:\temp\tmpmtiwak\src.win32-2.4/fib1module.c"
adding 'd:\temp\tmpmtiwak\src.win32-2.4\fortranobject.c' to sources.
adding 'd:\temp\tmpmtiwak\src.win32-2.4' to include_dirs.
copying C:\Python24\Lib\site-packages\numpy\f2py\src\fortranobject.c -> d:\temp\tmpmtiwak\src.win32-2.4
copying C:\Python24\Lib\site-packages\numpy\f2py\src\fortranobject.h -> d:\temp\tmpmtiwak\src.win32-2.4
running build_ext
No module named msvccompiler in numpy.distutils; trying from distutils
customize MSVCCompiler
customize MSVCCompiler using build_ext
customize GnuFCompiler
customize IntelVisualFCompiler
customize AbsoftFCompiler
absoft: no Fortran 77 compiler found
absoft: no Fortran 77 compiler found
customize CompaqVisualFCompiler
customize IntelItaniumVisualFCompiler
customize Gnu95FCompiler
customize Gnu95FCompiler
customize Gnu95FCompiler using build_ext
building 'fib1' extension
compiling C sources
creating d:\temp\tmpmtiwak\Release
creating d:\temp\tmpmtiwak\Release\temp
creating d:\temp\tmpmtiwak\Release\temp\tmpmtiwak
creating d:\temp\tmpmtiwak\Release\temp\tmpmtiwak\src.win32-2.4
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Id:\temp\tmpmtiwak\src.win32-2.4 -IC:\Python24\Lib\site-packages\numpy\core\include -IC:\Python24\include -IC:\Python24\PC /Tcd:\temp\tmpmtiwak\src.win32-2.4\fib1module.c /Fod:\temp\tmpmtiwak\Release\temp\tmpmtiwak\src.win32-2.4\fib1module.obj
Found executable C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\cl.exe /c /nologo /Ox /MD /W3 /GX /DNDEBUG -Id:\temp\tmpmtiwak\src.win32-2.4 -IC:\Python24\Lib\site-packages\numpy\core\include -IC:\Python24\include -IC:\Python24\PC /Tcd:\temp\tmpmtiwak\src.win32-2.4\fortranobject.c /Fod:\temp\tmpmtiwak\Release\temp\tmpmtiwak\src.win32-2.4\fortranobject.obj
compiling Fortran sources
Fortran f77 compiler: C:\gfortran\bin\gfortran.exe -Wall -ffixed-form -fno-second-underscore -mno-cygwin -O3 -funroll-loops -march=pentium4 -mmmx -msse -fomit-frame-pointer -malign-double
Fortran f90 compiler: C:\gfortran\bin\gfortran.exe -Wall -fno-second-underscore -mno-cygwin -O3 -funroll-loops -march=pentium4 -mmmx -msse -fomit-frame-pointer -malign-double
Fortran fix compiler: C:\gfortran\bin\gfortran.exe -Wall -ffixed-form -fno-second-underscore -mno-cygwin -Wall -fno-second-underscore -mno-cygwin -O3 -funroll-loops -march=pentium4 -mmmx -msse -fomit-frame-pointer -malign-double
compile options: '-Id:\temp\tmpmtiwak\src.win32-2.4 -IC:\Python24\Lib\site-packages\numpy\core\include -IC:\Python24\include -IC:\Python24\PC -c'
gfortran.exe:fix: fib1.f90
copying c:\gfortran\lib\gcc\i586-pc-mingw32\4.4.0\libgcc.a -> d:\temp\tmpmtiwak\Release\gcc.lib
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\gfortran\lib\gcc\i586-pc-mingw32\4.4.0 /LIBPATH:C:\Python24\libs /LIBPATH:C:\Python24\PCBuild /LIBPATH:d:\temp\tmpmtiwak\Release /LIBPATH:C:\Python24\libs /LIBPATH:C:\Python24\PCBuild gfortran.lib gcc.lib /EXPORT:initfib1 d:\temp\tmpmtiwak\Release\temp\tmpmtiwak\src.win32-2.4\fib1module.obj d:\temp\tmpmtiwak\Release\temp\tmpmtiwak\src.win32-2.4\fortranobject.obj d:\temp\tmpmtiwak\Release\fib1.o /OUT:.\fib1.pyd /IMPLIB:d:\temp\tmpmtiwak\Release\temp\tmpmtiwak\src.win32-2.4\fib1.lib
Found executable C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.exe
LINK : fatal error LNK1181: cannot open input file 'gfortran.lib'
error: Command "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\link.
exe /DLL /nologo /INCREMENTAL:NO /LIBPATH:c:\gfortran\lib\gcc\i586-pc-mingw32\4.
4.0 /LIBPATH:C:\Python24\libs /LIBPATH:C:\Python24\PCBuild /LIBPATH:d:\temp\tmpm
tiwak\Release /LIBPATH:C:\Python24\libs /LIBPATH:C:\Python24\PCBuild gfortran.li
b gcc.lib /EXPORT:initfib1 d:\temp\tmpmtiwak\Release\temp\tmpmtiwak\src.win32-2.
4\fib1module.obj d:\temp\tmpmtiwak\Release\temp\tmpmtiwak\src.win32-2.4\fortrano
bject.obj d:\temp\tmpmtiwak\Release\fib1.o /OUT:.\fib1.pyd /IMPLIB:d:\temp\tmpmt
iwak\Release\temp\tmpmtiwak\src.win32-2.4\fib1.lib" failed with exit status 1181
Can someone please guide me on this problem?
RegardsShriram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cens.ioc.ee/pipermail/f2py-users/attachments/20080616/8b7dd2b1/attachment.htm
More information about the f2py-users
mailing list