[SciPy-user] how to import umfpack?

Robin robince at gmail.com
Tue Feb 12 12:17:44 EST 2008


On Feb 12, 2008 4:57 PM, Nils Wagner <nwagner at iam.uni-stuttgart.de> wrote:
> Now umfpack is a scikits package
>
> svn co http://svn.scipy.org/svn/scikits/trunk/umfpack
> umfpack

Hi,

I tried building from the scikits package with exactly the same
results (no umfpack stuff in __umfpack.so, just Py* stuff and a couple
of _gfortran symbols.

The umfpack version I am using is the current from the website - I
think it is 5. I don't think the site.cfg is the problem, since the
headers and libraries are found OK (If I move them then they aren't
found and the build fails).
Somehow the problem must be with what distutils is doing to build the
__umfpack.so object? Is there any way I can get more detail about
this?

Below is the output of setup.py config for the umfpack scikit...

umfpack_info:
amd_info:
  FOUND:
    libraries = ['amd']
    library_dirs = ['/home/robince/scipy_build/AMD/Lib']
    swig_opts = ['-I/home/robince/scipy_build/AMD/Include']
    define_macros = [('SCIPY_AMD_H', None)]
    include_dirs = ['/home/robince/scipy_build/AMD/Include']

  FOUND:
    libraries = ['umfpack', 'amd']
    library_dirs = ['/home/robince/scipy_build/UMFPACK/Lib',
'/home/robince/scipy_build/AMD/Lib']
    swig_opts = ['-I/home/robince/scipy_build/UMFPACK/Include',
'-I/home/robince/scipy_build/AMD/Include']
    define_macros = [('SCIPY_UMFPACK_H', None), ('SCIPY_AMD_H', None)]
    include_dirs = ['/home/robince/scipy_build/UMFPACK/Include',
'/home/robince/scipy_build/AMD/Include']

blas_opt_info:
blas_mkl_info:
  libraries mkl,vml,guide not found in /usr/local/lib
  libraries mkl,vml,guide not found in /home/robince/scipy_build/lib
  NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries lapack,f77blas,cblas,atlas not found in /usr/local/lib
Setting PTATLAS=ATLAS
Setting PTATLAS=ATLAS
  FOUND:
    libraries = ['lapack', 'f77blas', 'cblas', 'atlas']
    library_dirs = ['/home/robince/scipy_build/lib']
    language = c

customize GnuFCompiler
Could not locate executable g77
Could not locate executable f77
customize IntelFCompiler
Could not locate executable ifort
Could not locate executable ifc
customize LaheyFCompiler
Could not locate executable lf95
customize PGroupFCompiler
Could not locate executable pgf90
Could not locate executable pgf77
customize AbsoftFCompiler
Could not locate executable f90
customize NAGFCompiler
Found executable /usr/bin/f95
customize VastFCompiler
customize GnuFCompiler
customize CompaqFCompiler
Could not locate executable fort
customize IntelItaniumFCompiler
Could not locate executable efort
Could not locate executable efc
customize IntelEM64TFCompiler
customize Gnu95FCompiler
Found executable /usr/bin/gfortran
customize Gnu95FCompiler
customize Gnu95FCompiler using config
compiling '_configtest.c':

/* This file is generated from numpy/distutils/system_info.py */
void ATL_buildinfo(void);
int main(void) {
  ATL_buildinfo();
  return 0;
}
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall
-Wstrict-prototypes -fPIC

compile options: '-c'
gcc: _configtest.c
gcc -pthread _configtest.o -L/home/robince/scipy_build/lib -llapack
-lf77blas -lcblas -latlas -o _configtest
ATLAS version 3.8.0 built by robince on Mon Feb 11 07:12:11 EST 2008:
   UNAME    : Linux bob64 2.6.22-14-generic #1 SMP Sun Oct 14 21:45:15
GMT 2007 x86_64 GNU/Linux
   INSTFLG  : -1 0 -a 1
   ARCHDEFS : -DATL_OS_Linux -DATL_ARCH_Core2Duo -DATL_CPUMHZ=2333
-DATL_SSE3 -DATL_SSE2 -DATL_SSE1 -DATL_USE64BITS -DATL_GAS_x8664
   F2CDEFS  : -DAdd_ -DF77_INTEGER=int -DStringSunStyle
   CACHEEDGE: 131072
   F77      : gfortran, version GNU Fortran (GCC) 4.2.1 (Ubuntu 4.2.1-5ubuntu4)
   F77FLAGS : -O -fPIC -m64
   SMC      : gcc, version gcc (GCC) 4.1.3 20070929 (prerelease)
(Ubuntu 4.1.2-16ubuntu2)
   SMCFLAGS : -fomit-frame-pointer -mfpmath=sse -msse3 -O2 -fPIC -m64
   SKC      : gcc, version gcc (GCC) 4.1.3 20070929 (prerelease)
(Ubuntu 4.1.2-16ubuntu2)
   SKCFLAGS : -fomit-frame-pointer -mfpmath=sse -msse3 -O2 -fPIC -m64
success!
removing: _configtest.c _configtest.o _configtest
  FOUND:
    libraries = ['lapack', 'f77blas', 'cblas', 'atlas']
    library_dirs = ['/home/robince/scipy_build/lib']
    language = c
    define_macros = [('ATLAS_INFO', '"\\"3.8.0\\""')]

running config



More information about the SciPy-User mailing list