hwcap and ld search path
Cournapeau David
cournape at atr.jp
Thu Jul 28 02:14:37 UTC 2005
Hi there,
I am developing some math C libraries on Ubuntu, which depend on the
library ATLAS. ATLAS is in ubuntu repository, but unfortunately, I
cannot link against it "the normal way". For the object file
libcblas.so: "ld -lcblas" returns "cannot find -lcblas". For ld
to find the library, I have to enter "ld -L/usr/lib/sse2 -lcblas".
I first thought that maybe /usr/lib/sse2 is not in the ld cache,
but it actually is: ldconfig -p | grep libcblas returns:
libcblas.so.3 (libc6, hwcap: 0x4000000) => /usr/lib/sse2/libcblas.so.3
libcblas.so.3 (libc6) => /usr/lib/libcblas.so.3
libcblas.so (libc6, hwcap: 0x4000000) => /usr/lib/sse2/libcblas.so
I guess the problem is coming from hwcap: as far as I understand, hwcap
is used by ubuntu to load a special library, optimized for some special
architecture, but I couldn't find any useful informations on internet
about it.
Does anyone know why ld cannot load the library labeled hwcap ?
(of course my CPU supports sse2, and is sse2 flag is detected by the
kernel, I checked in /proc/cpuinfo ).
Thank you very much,
David
More information about the ubuntu-users
mailing list