Bug 189642

Summary: /usr/lib/sse2 path not added to ld.so.conf
Product: [Fedora] Fedora Reporter: petrosyan
Component: atlasAssignee: Quentin Spencer <qspencer>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-04-22 03:52:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description petrosyan 2006-04-22 00:22:17 UTC
Description of problem:
After installing atlas-sse2 and atlas-sse2-devel packages ./configure script
does not detect any atlas or blas libraries because they were added into
/usr/lib/sse2/ directory and that directory was not added to the
/etc/ld.so.conf.d/ location.

Version-Release number of selected component (if applicable):
atlas-sse2-3.6.0-10.fc5

How reproducible:
Always

Steps to Reproduce:
1. install atlas-sse2 and atlas-sse2-devel
2. try ./configure-ing any package which requires BLAS
 
Actual results:
Atlas is not found by the ./configure script.

Expected results:
It should be found.

Comment 1 Quentin Spencer 2006-04-22 03:52:13 UTC
This is expected behavior. Even if you manually install a config file in
/etc/ld.so.conf.d and run ldconfig, you will still get the same behavior (I
tried this with the configure script for octave). I'm not an expert on this, but
it appears that the linker does not look in /usr/lib/sse2 at compile time, but
it does at run time. In order to detect BLAS at compile time, you need to
install blas-devel (note that blas-devel is a build dependency of octave, but it
is possible to install octave without blas if atlas is installed). While
installing blas-devel will also install blas, at run time the linker will still
load the atlas blas library. For example, on my system, I have three packages
with blas installed, blas, atlas, and atlas-sse2 (in /usr/lib /usr/lib/atlas and
/usr/lib/sse2, respectively). With octave installed, the command "ldd
/usr/bin/octave | grep blas" gives:
       libblas.so.3 => /usr/lib/sse2/libblas.so.3 (0x0373a000)


Comment 2 petrosyan 2006-04-22 12:45:07 UTC
Indeed if atlas-sse2 is installed then at runtime the application links to sse2
libraries.
So the only problem then is that after installing atlas-sse2-devel ./configure
scripts can't detect any BLAS library. 

would making atlas-sse2-devel depend on blas-devel being installed, be a good
solution?

Comment 3 Quentin Spencer 2006-04-25 20:18:12 UTC
Yes, I could do that. I'll add it to the next release, but I probably won't do a
release just for this.