[SciPy-user] difficulties compiling the arpack module from the sandbox

Adam Malinowski bratona@yahoo.co...
Tue Mar 13 11:39:59 CDT 2007


Hi all,

I am having a lot of difficulty building the arpack module from the scipy 
sandbox, running windows 2000 and using mingw with cygwin. I have compiled 
numpy and scipy (latest svn) with no problems, and have sucessfully installed a 
number of scipy sandboxed modules by running the command: 'python setup.py 
build --compiler=mingw32 install', in the root of the module.

However, when I try this command for arpack, I get the following error:

---
No module named msvccompiler in numpy.distutils, trying from distutils..
  FOUND:
    libraries = ['lapack', 'lapack', 'f77blas', 'cblas', 'atlas']
    library_dirs = ['c:\\BlasLapackLibs']
    language = f77
    define_macros = [('ATLAS_INFO', '"\\"?.?.?\\""')]

running build
running config_fc
running build_src
building library "arpack" sources
building extension "arpack._arpack" sources
f2py options: []
  adding 'build\src.win32-2.5\fortranobject.c' to sources.
  adding 'build\src.win32-2.5' to include_dirs.
  adding 'build\src.win32-2.5\build\src.win32-2.5\_arpack-f2pywrappers.f' to sou
rces.
building data_files sources
running build_py
running build_clib
customize Mingw32CCompiler
customize Mingw32CCompiler using build_clib
0
Could not locate executable gfortran
Could not locate executable f95
customize GnuFCompiler
customize GnuFCompiler
customize GnuFCompiler using build_clib
building 'arpack' library
compiling Fortran sources
Fortran f77 compiler: C:\cygwin\bin\g77.exe -g -Wall -fno-second-underscore -mno
-cygwin -O3 -funroll-loops -march=pentium4 -mmmx -msse2 -msse -fomit-frame-point
er -malign-double
compile options: '-c'
g77.exe:f77: .\ARPACK\SRC\cgetv0.f
.\ARPACK\SRC\cgetv0.f: In subroutine `cgetv0':
.\ARPACK\SRC\cgetv0.f:123:
         include   'debug.h'
         ^
Unable to open INCLUDE file `debug.h' at (^)
.\ARPACK\SRC\cgetv0.f:124:
         include   'stat.h'
         ^
Unable to open INCLUDE file `stat.h' at (^)
error: Command "C:\cygwin\bin\g77.exe -g -Wall -fno-second-underscore -mno-cygwi
n -O3 -funroll-loops -march=pentium4 -mmmx -msse2 -msse -fomit-frame-pointer -ma
lign-double -c -c .\ARPACK\SRC\cgetv0.f -o build\temp.win32-2.5\ARPACK\SRC\cgetv
0.o" failed with exit status 1
---

I have also tried using the 'build_ext' command instead, which gives this error:

----
No module named msvccompiler in numpy.distutils, trying from distutils..
  FOUND:
    libraries = ['lapack', 'lapack', 'f77blas', 'cblas', 'atlas']
    library_dirs = ['c:\\BlasLapackLibs']
    language = f77
    define_macros = [('ATLAS_INFO', '"\\"?.?.?\\""')]

running build_ext
customize Mingw32CCompiler
customize Mingw32CCompiler using build_ext
0
Could not locate executable gfortran
Could not locate executable f95
customize GnuFCompiler
customize GnuFCompiler
customize GnuFCompiler using build_ext
building 'arpack._arpack' extension
compiling C sources
C compiler: gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes

error: unknown file type '.src' (from '.\arpack.pyf.src')
---

Both of these errors have completely stumped me, as I'm quite new to fortran/
python compiling. Could it be a problem with the ATLAS or LAPACK setup? Or 
perhaps its a problem with numpy distutils? 

Any help would very much appreciated.

Thanks,
Adam



More information about the SciPy-user mailing list