[SciPy-dev] CVS build just failed

Pearu Peterson pearu at scipy.org
Tue Oct 12 00:07:50 CDT 2004



On Mon, 11 Oct 2004 Fernando.Perez at colorado.edu wrote:

> Hi all,
>
> I'm trying to build CVS scipy on a new Fedora Core 2 box, and I'm failing pretty
> early on.  I suspect the problem is with f2py and not scipy itself.  Here's the
> error:
>
> ...
> compiling Fortran sources
> g77(f77) options: '-Wall -fno-second-underscore -Vaxlib -i_dynamic -O3 -funroll-
> loops -march=pentium4 -mmmx -msse2 -msse -malign-double -fomit-frame-pointer'
> ifc(f90) options: '-Vaxlib -i_dynamic -Vaxlib -i_dynamic -O3 -funroll-loops -mar
> ch=pentium4 -mmmx -msse2 -msse -malign-double -fomit-frame-pointer'
> ifc(fix) options: '-Vaxlib -i_dynamic -Vaxlib -i_dynamic -O3 -funroll-loops -mar
> ch=pentium4 -mmmx -msse2 -msse -malign-double -fomit-frame-pointer'
> compile options: '-c'
> g77:f77: Lib/fftpack/dfftpack/dcosqb.f
> g77: `-V' must come at the start of the command line
> g77: `-V' must come at the start of the command line
> error: Command "/usr/bin/g77 -Wall -fno-second-underscore -Vaxlib -i_dynamic -O3
> -funroll-loops -march=pentium4 -mmmx -msse2 -msse -malign-double -fomit-frame-p
> ointer -c -c Lib/fftpack/dfftpack/dcosqb.f -o build/temp.linux-i686-2.3/Lib/fftp
> ack/dfftpack/dcosqb.o" failed with exit status 1
>
>
> ###
> I grabbed the latest f2py from the webpage a moment ago (2.43.239_1844) and the
> scipy is current CVS.  Any help would be much appreciated.

f2py has little to do with this failure, it's more scipy_distutils or an
end-user issue.

For some reason g77 is used for Fortran 77 codes and ifc for Fortran 90
codes, and the compiler flags get mixed up. Such a situation should not 
happen normally as whenever you specify Fortran compiler to be ifc, it 
should be used both for Fortran 77 and 90 codes.
How did you specified fortran compilers? What command line are you using 
for building scipy?
The correct way to specify ifc is:

   python setup.py config_fc --fcompiler=intel build

Just check, building scipy CVS works ok on a Debian box using the latest 
f2py and intel fortran compilers 7.1 and 8.0. Although compiling 
Lib/linalg/iterative/getbreak.f fails with ifc-7.1, probably due 
to a compiler bug.

Pearu




More information about the Scipy-dev mailing list