[SciPy-dev] build_ext fails to pick up fortran compiler
Avi Purkayastha
avi@sicortex....
Tue Mar 10 11:48:14 CDT 2009
Hi,
When building scipy with a new compiler (pathscale) added to the
numpy*distutils*fcompiler list, the build log shows that the build
process
picks up the fortran compiler for parts of the build where needed
except for build_ext. Some parts of the log is listed below for
explanation.
:
customize PathScaleFCompiler
customize PathScaleFCompiler using build_clib
building 'dfftpack' library
compiling Fortran sources
Fortran f77 compiler:
/opt/pathscale/ice9_native_3.2n_B_sicortex/bin/pathf95 -fixedform -O3
Fortran f90 compiler:
/opt/pathscale/ice9_native_3.2n_B_sicortex/bin/pathf95 -O3
Fortran fix compiler:
/opt/pathscale/ice9_native_3.2n_B_sicortex/bin/pathf95 -fixedform -O3
creating build/temp.linux-mips64-2.4
creating build/temp.linux-mips64-2.4/scipy
creating build/temp.linux-mips64-2.4/scipy/fftpack
creating build/temp.linux-mips64-2.4/scipy/fftpack/src
creating build/temp.linux-mips64-2.4/scipy/fftpack/src/dfftpack
compile options: '-c'
pathf95:f77: scipy/fftpack/src/dfftpack/dcosqi.f
pathf95:f77: scipy/fftpack/src/dfftpack/dcosqf.f
pathf95:f77: scipy/fftpack/src/dfftpack/zfftf.f
:
and the build continues with success on picking up and building
with the
pathscale compiler on other pieces that need the fortran compiler
until..
:
running build_ext
customize UnixCCompiler
customize UnixCCompiler using build_ext
resetting extension 'scipy.integrate._odepack' language from 'c' to
'f77'.
resetting extension 'scipy.integrate.vode' language from 'c' to 'f77'.
resetting extension 'scipy.lib.blas.fblas' language from 'c' to 'f77'.
resetting extension 'scipy.odr.__odrpack' language from 'c' to 'f77'.
extending extension 'scipy.sparse.linalg.dsolve._zsuperlu'
defined_macros
with [('USE_VENDOR_BLAS', 1)]
extending extension 'scipy.sparse.linalg.dsolve._dsuperlu'
defined_macros
with [('USE_VENDOR_BLAS', 1)]
extending extension 'scipy.sparse.linalg.dsolve._csuperlu'
defined_macros
with [('USE_VENDOR_BLAS', 1)]
extending extension 'scipy.sparse.linalg.dsolve._ssuperlu'
defined_macros
with [('USE_VENDOR_BLAS', 1)]
customize UnixCCompiler
customize UnixCCompiler using build_ext
customize PathScaleFCompiler
warning: build_ext: f77_compiler=pathscale is not available.
:
scgcc -shared build/temp.linux-
mips64-2.4/scipy/cluster/src/hierarchy_wrap.o build/temp.linux-
mips64-2.4/scipy/cluster/src/h
ierarchy.o -Lbuild/temp.linux-mips64-2.4 -o build/lib.linux-
mips64-2.4/scipy/cluster/_hierarchy_wrap.so
building 'scipy.fftpack._fftpack' extension
warning: build_ext: extension 'scipy.fftpack._fftpack' has Fortran
libraries but no Fortran linker found, using default linker
compiling C sources
:
and ultimately failure because of this reason..
scgcc -shared build/temp.linux-
mips64-2.4/scipy/interpolate/src/_fitpackmodule.o -Lbuild/temp.linux-
mips64-2.4 -lfitpack -o
build/lib.linux-mips64-2.4/scipy/interpolate/_fitpack.so
building 'scipy.interpolate.dfitpack' extension
error: extension 'scipy.interpolate.dfitpack' has Fortran sources
but no
Fortran compiler found
Any suggestions on why build_ext is failing on picking up the fortran
compiler or any work-arounds for this?
Thanks
Avi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-dev/attachments/20090310/3ac5ae50/attachment-0001.html
More information about the Scipy-dev
mailing list