Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519984 - dev-python/numpy-1.8.0-r1 - system_info.py fails to correctly process site.cfg in which several sections share the same lib-dirs
Summary: dev-python/numpy-1.8.0-r1 - system_info.py fails to correctly process site.cf...
Status: RESOLVED DUPLICATE of bug 700848
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-15 10:59 UTC by Zhang Bo
Modified: 2020-04-27 10:20 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zhang Bo 2014-08-15 10:59:09 UTC
During installing process of scipy package, a log info may be reported like following:
****
blas_info:
libraries mkl_rt,iomp5,mkl_rt,iomp5 not found in ['/opt/intel/composerxe-2013.3.174/mkl/lib/intel64', '/opt/intel/composerxe-2013.3.174/compiler/lib/intel64', '/usr/lib64']
NOT AVAILABLE"
****
then a BlasNotFoundError will raise and cut off the installing.

Content of site.cfg:
****
[blas]
include_dirs = /opt/intel/composerxe-2013.3.174/mkl/include
library_dirs = /opt/intel/composerxe-2013.3.174/mkl/lib/intel64:/opt/intel/composerxe-2013.3.174/compiler/lib/intel64:/usr/lib64
blas_libs = iomp5,mkl_rt
[lapack]
library_dirs = /opt/intel/composerxe-2013.3.174/mkl/lib/intel64:/opt/intel/composerxe-2013.3.174/compiler/lib/intel64:/usr/lib64
lapack_libs = iomp5,mkl_rt
****
Note that sections [blas] and [lapack] share the same libs and lib-dirs. The script system_info.py, or the method get_libs() more precisely, parses this file and recognize there are 4 libs (rather than 2) to match, and then the method _check_libs() does the matching job and removes the duplicate results. The if condition in method _check_libs() is length comparing, namely if the amount of matched libs is not equal to amount of total libs, then matching fails. 

the core statement in get_libs() is 
****
libs = self.cp.get(self.section, key)
****
the parsing result "libs" can be fault.

386269 and 502406 might due to the problem above. I think this is the bug in numpy rather than scipy.


Reproducible: Always
Comment 1 Zhang Bo 2014-08-15 11:10:08 UTC
I've added a few codes in system_info.py (did it to every python slot) and fixed this problem temporarily, but it's just a risky way.
Comment 2 Benda Xu gentoo-dev 2020-04-27 10:20:08 UTC
This is fix by the new ldso switching framework.

*** This bug has been marked as a duplicate of bug 700848 ***