[SciPy-user] Specifying fortran compiler

Adam Mercer ramercer@gmail....
Sun Oct 28 13:13:10 CDT 2007


Hi

I'm trying to build SciPy on Mac OS 10.5 using gfortran from MacPorts
gcc-4.2.2, which gets installed as gfortran-mp-4.2. When I build I get
the following error:

Command output: customize IbmFCompiler
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize Gnu95FCompiler
Could not locate executable gfortran
Could not locate executable f95
customize G95FCompiler
customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize Gnu95FCompiler
Could not locate executable gfortran
Could not locate executable f95
customize NAGFCompiler
customize NAGFCompiler using build_clib
building 'dfftpack' library
compiling Fortran sources
Fortran f77 compiler: f95 -fixed -O4 -target=native
Fortran f90 compiler: f95 -O4 -target=native
Fortran fix compiler: f95 -fixed -O4 -target=native
creating build/temp.macosx-10.3-i386-2.5
creating build/temp.macosx-10.3-i386-2.5/scipy
creating build/temp.macosx-10.3-i386-2.5/scipy/fftpack
creating build/temp.macosx-10.3-i386-2.5/scipy/fftpack/dfftpack
compile options: '-c'
f95:f77: scipy/fftpack/dfftpack/dcosqb.f
sh: f95: command not found
sh: f95: command not found
error: Command "f95 -fixed -O4 -target=native -c -c
scipy/fftpack/dfftpack/dcosqb.f -o
build/temp.macosx-10.3-i386-2.5/scipy/fftpack/dfftpack/dcosqb.o"
failed with exit status 127

>From this error it looks like SciPy is trying to use f95 as the
fortran compiler executable, not gfortran-mp-4.2. Is there a way that
I can specify which fortran compiler to use?

Cheers

Adam


More information about the SciPy-user mailing list