Bug 189642 - /usr/lib/sse2 path not added to ld.so.conf
Summary: /usr/lib/sse2 path not added to ld.so.conf
Alias: None
Product: Fedora
Classification: Fedora
Component: atlas   
(Show other bugs)
Version: 5
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Quentin Spencer
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2006-04-22 00:22 UTC by petrosyan
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-04-22 03:52:13 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

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):

How reproducible:

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
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

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.

Note You need to log in before you can comment on or make changes to this bug.