[Scipy-tickets] [SciPy] #817: [build failure][easy_install] swig is not told to find umfpack*.h in /usr/include/suitesparse

SciPy scipy-tickets@scipy....
Tue Dec 16 10:30:07 CST 2008


#817: [build failure][easy_install] swig is not told to find umfpack*.h in
/usr/include/suitesparse
---------------------------------+------------------------------------------
 Reporter:  alsuren              |       Owner:  wnbell            
     Type:  defect               |      Status:  new               
 Priority:  normal               |   Milestone:  0.7.0             
Component:  scipy.sparse.linalg  |     Version:                    
 Severity:  normal               |    Keywords:  build easy_install
---------------------------------+------------------------------------------
 It would be nice to eventually reduce the scipy build instructions to
 "virtualenv .; source bin/activate; easy_install --verbose --build-
 directory ~/build scipy".

 If I do this, 0.7.0b1 fails to build with the following error:

 building extension "scipy.sparse.linalg.dsolve._zsuperlu" sources
 building extension "scipy.sparse.linalg.dsolve._dsuperlu" sources
 building extension "scipy.sparse.linalg.dsolve._csuperlu" sources
 building extension "scipy.sparse.linalg.dsolve._ssuperlu" sources
 building extension "scipy.sparse.linalg.dsolve.umfpack.__umfpack" sources
   adding 'sparse/linalg/dsolve/umfpack/umfpack.i' to sources.
 swig: sparse/linalg/dsolve/umfpack/umfpack.i
 swig -python -o
 build/src.linux-x86_64-2.5/sparse/linalg/dsolve/umfpack/_umfpack_wrap.c
 -outdir build/src.linux-x86_64-2.5/sparse/linalg/dsolve/umfpack
 sparse/linalg/dsolve/umfpack/umfpack.i
 sparse/linalg/dsolve/umfpack/umfpack.i:192: Error: Unable to find
 'umfpack.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:193: Error: Unable to find
 'umfpack_solve.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:194: Error: Unable to find
 'umfpack_defaults.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:195: Error: Unable to find
 'umfpack_triplet_to_col.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:196: Error: Unable to find
 'umfpack_col_to_triplet.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:197: Error: Unable to find
 'umfpack_transpose.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:198: Error: Unable to find
 'umfpack_scale.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:200: Error: Unable to find
 'umfpack_report_symbolic.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:201: Error: Unable to find
 'umfpack_report_numeric.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:202: Error: Unable to find
 'umfpack_report_info.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:203: Error: Unable to find
 'umfpack_report_control.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:215: Error: Unable to find
 'umfpack_symbolic.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:216: Error: Unable to find
 'umfpack_numeric.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:225: Error: Unable to find
 'umfpack_free_symbolic.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:226: Error: Unable to find
 'umfpack_free_numeric.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:248: Error: Unable to find
 'umfpack_get_lunz.h'
 sparse/linalg/dsolve/umfpack/umfpack.i:272: Error: Unable to find
 'umfpack_get_numeric.h'
 error: Setup script exited with error: command 'swig' failed with exit
 status 1

 but adding "-I/usr/include/suitesparse" makes this command work with no
 errors:

 (dl325)dl325@dl325:~/build/scipy$ swig -python -o
 build/src.linux-x86_64-2.5/scipy/sparse/linalg/dsolve/umfpack/_umfpack_wrap.c
 -outdir build/src.linux-x86_64-2.5/scipy/sparse/linalg/dsolve/umfpack
 -I/usr/include/suitesparse scipy/sparse/linalg/dsolve/umfpack/umfpack.i



 Note that this is the install location for ubuntu, if you install
 libsuitesparse-dev or libsuitesparse-metis-dev (either of which provides
 the libumfpack4-dev virtual package)

 Now I'm not sure how you go about adding "-I/usr/include/suitesparse" to
 the swig command line, but it might be in:
 scipy/sparse/linalg/dsolve/umfpack/setup.py or
 numpy/distutils/system_info.py:umfpack_info.calc_info()

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


More information about the Scipy-tickets mailing list