[Scipy-tickets] [SciPy] #886: build_ext failure with PathScale Fortran compiler (was: build_ext failure)

SciPy Trac scipy-tickets@scipy....
Sat Jul 17 04:40:59 CDT 2010


#886: build_ext failure with PathScale Fortran compiler
--------------------------+-------------------------------------------------
 Reporter:  avi           |       Owner:  cdavid
     Type:  defect        |      Status:  new   
 Priority:  normal        |   Milestone:  0.9.0 
Component:  Build issues  |     Version:  0.7.0 
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by rgommers):

  * owner:  somebody => cdavid
  * component:  Other => Build issues
  * milestone:  0.8.0 => 0.9.0


Old description:

> 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 compiler for certain parts of the build..
>
> 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 link
> er
> 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?
>
> I am attaching the pathscale fortran script that is used.
>
> Thanks
>
> Avi

New description:

 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 compiler for certain parts of the build..

 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 link
 er
 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?

 I am attaching the pathscale fortran script that is used.

 Thanks

 Avi

--

Comment:

 <made title a bit more informative>

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/886#comment:2>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list