Summary: | sci-libs/scipy-1.0.0 - /usr/lib64/python2.7/site-packages/numpy/distutils/system_info.py:552: UserWarning: {Atlas/Blas} libraries not found. | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Fabio Coatti <fabio.coatti> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dominique.c.michel, frp.bissey, zeekec |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Fabio Coatti
2017-12-06 08:02:33 UTC
Did you just upgrade to gcc 7.2.0? I suspect you are a victim of the so bump in libgfortran. In that case you may have to do the following emerge -1v $your_blas emerge -1v $your_lapack emerge -1v numpy and then see if scipy can be built. Done the following: emerge -1 sci-libs/blas-reference emerge -1v sci-libs/lapack-reference emerge -1v numpy MAKEOPTS=-j1 emerge -1 sci-libs/scipy Still no luck >>> Emerging (1 of 1) sci-libs/scipy-1.0.0::gentoo * scipy-1.0.0.tar.gz BLAKE2B SHA512 size ;-) ... [ ok ] >>> cfg-update-1.8.2-r1: Checksum index is up-to-date ... * Using following Fortran compiler: * F77: x86_64-pc-linux-gnu-gfortran * FC: x86_64-pc-linux-gnu-gfortran >>> Unpacking source... >>> Unpacking scipy-1.0.0.tar.gz to /var/tmp/portage/sci-libs/scipy-1.0.0/work >>> Source unpacked in /var/tmp/portage/sci-libs/scipy-1.0.0/work >>> Preparing source in /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0 ... Package cblas was not found in the pkg-config search path. Perhaps you should add the directory containing `cblas.pc' to the PKG_CONFIG_PATH environment variable No package 'cblas' found Package cblas was not found in the pkg-config search path. Perhaps you should add the directory containing `cblas.pc' to the PKG_CONFIG_PATH environment variable No package 'cblas' found Package cblas was not found in the pkg-config search path. Perhaps you should add the directory containing `cblas.pc' to the PKG_CONFIG_PATH environment variable No package 'cblas' found * Will copy sources from /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0 * python2_7: copying to /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0-python2_7 * python3_4: copying to /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0-python3_4 * python3_5: copying to /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0-python3_5 * python3_6: copying to /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0-python3_6 >>> Source prepared. >>> Configuring source in /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0 ... >>> Source configured. >>> Compiling source in /var/tmp/portage/sci-libs/scipy-1.0.0/work/scipy-1.0.0 ... * python2_7: running distutils-r1_run_phase python_compile scipy/linalg/_generate_pyx.py: all files up-to-date scipy/special/_generate_pyx.py: all files up-to-date Running scipy/linalg/_generate_pyx.py Running scipy/special/_generate_pyx.py Processing scipy/linalg/_decomp_update.pyx.in Processing scipy/linalg/cython_lapack.pyx Processing scipy/linalg/cython_blas.pyx Processing scipy/linalg/_solve_toeplitz.pyx Processing scipy/signal/_spectral.pyx Processing scipy/signal/_max_len_seq_inner.pyx Processing scipy/signal/_upfirdn_apply.pyx Processing scipy/optimize/_group_columns.pyx Processing scipy/optimize/_trlib/_trlib.pyx Processing scipy/optimize/_lsq/givens_elimination.pyx Processing scipy/stats/_stats.pyx Processing scipy/interpolate/_ppoly.pyx Processing scipy/interpolate/_bspl.pyx Processing scipy/interpolate/interpnd.pyx Processing scipy/sparse/_csparsetools.pyx.in Processing scipy/sparse/csgraph/_traversal.pyx Processing scipy/sparse/csgraph/_tools.pyx Processing scipy/sparse/csgraph/_min_spanning_tree.pyx Processing scipy/sparse/csgraph/_reordering.pyx Processing scipy/sparse/csgraph/_shortest_path.pyx Processing scipy/io/matlab/mio5_utils.pyx Processing scipy/io/matlab/mio_utils.pyx Processing scipy/io/matlab/streams.pyx Processing scipy/ndimage/src/_cytest.pyx Processing scipy/ndimage/src/_ni_label.pyx Processing scipy/spatial/qhull.pyx Processing scipy/spatial/_voronoi.pyx Processing scipy/spatial/_hausdorff.pyx Processing scipy/spatial/ckdtree.pyx Processing scipy/cluster/_vq.pyx Processing scipy/cluster/_optimal_leaf_ordering.pyx Processing scipy/cluster/_hierarchy.pyx Processing scipy/special/_test_round.pyx Processing scipy/special/cython_special.pyx Processing scipy/special/_ufuncs.pyx Processing scipy/special/_ellip_harm_2.pyx Processing scipy/special/_comb.pyx Processing scipy/special/_ufuncs_cxx.pyx Processing scipy/_lib/messagestream.pyx Processing scipy/_lib/_ccallback_c.pyx /usr/bin/python2.7 setup.py build config_fc --noopt --noarch lapack_opt_info: system_info: NOT AVAILABLE /usr/lib64/python2.7/site-packages/numpy/distutils/system_info.py:552: UserWarning: Atlas (http://math-atlas.sourceforge.net/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [atlas]) or by setting the ATLAS environment variable. self.calc_info() lapack_info: FOUND: libraries = ['blas', 'lapack'] library_dirs = ['/usr/lib64'] language = f77 blas_info: libraries not found in ['', '/usr/lib64'] NOT AVAILABLE /usr/lib64/python2.7/site-packages/numpy/distutils/system_info.py:552: UserWarning: Blas (http://www.netlib.org/blas/) libraries not found. Directories to search for the libraries can be specified in the numpy/distutils/site.cfg file (section [blas]) or by setting the BLAS environment variable. self.calc_info() blas_src_info: NOT AVAILABLE /usr/lib64/python2.7/site-packages/numpy/distutils/system_info.py:552: UserWarning: Blas (http://www.netlib.org/blas/) sources not found. Directories to search for the sources can be specified in the numpy/distutils/site.cfg file (section [blas_src]) or by setting the BLAS_SRC environment variable. self.calc_info() NOT AVAILABLE Running from scipy source directory. Traceback (most recent call last): File "setup.py", line 418, in <module> setup_package() File "setup.py", line 414, in setup_package setup(**metadata) File "/usr/lib64/python2.7/site-packages/numpy/distutils/core.py", line 135, in setup config = configuration() File "setup.py", line 336, in configuration config.add_subpackage('scipy') File "/usr/lib64/python2.7/site-packages/numpy/distutils/misc_util.py", line 1029, in add_subpackage caller_level = 2) File "/usr/lib64/python2.7/site-packages/numpy/distutils/misc_util.py", line 998, in get_subpackage caller_level = caller_level + 1) File "/usr/lib64/python2.7/site-packages/numpy/distutils/misc_util.py", line 935, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File "scipy/setup.py", line 15, in configuration config.add_subpackage('linalg') File "/usr/lib64/python2.7/site-packages/numpy/distutils/misc_util.py", line 1029, in add_subpackage caller_level = 2) File "/usr/lib64/python2.7/site-packages/numpy/distutils/misc_util.py", line 998, in get_subpackage caller_level = caller_level + 1) File "/usr/lib64/python2.7/site-packages/numpy/distutils/misc_util.py", line 935, in _get_configuration_from_setup_py config = setup_module.configuration(*args) File "scipy/linalg/setup.py", line 19, in configuration raise NotFoundError('no lapack/blas resources found') numpy.distutils.system_info.NotFoundError: no lapack/blas resources found * ERROR: sci-libs/scipy-1.0.0::gentoo failed (compile phase): * (no error message) It looks like your system is not set up properly. Did you eselect blas-reference and lapack-reference properly? Well, the output is the following: hobbes ~ # eselect lapack show lib64: reference hobbes ~ # eselect blas show lib64: reference Not really sure if this is enough If I trust the log you posted you are missing /usr/lib64/pkgconfig/cblas.pc. <slapping my face> hum, that means you also need a cblas for scipy, and that it must be properly set. So emerge -1v $your_cblas Thanks a lot, this indeed worked. Previousy I had no cblas package, eselect cblas was reporting gsl as configured provider. Forcing the installation of sci-libs/cblas-reference did the trick. Now I need only to understand what's really happened (I was expecting some missing dep complaint from scipy), but this is another story. Many thanks again. *** Bug 681954 has been marked as a duplicate of this bug. *** |