Does not work for me on fresh install of 12.04 x86_64, fully updated:

$ dpkg -S libblas.a
libblas-dev: /usr/lib/libblas/libblas.a
libatlas-base-dev: /usr/lib/atlas-base/atlas/libblas.a

$ cat plop.c 
int main() {
}

$ gcc -o main plop.c -static -lblas
/usr/bin/ld: cannot find -lblas
collect2: ld returned 1 exit status

$ gcc -o main plop.c  -lblas
$ ls -la main-rwxrwxr-x 1 gdo gdo 8326 Jun 25 12:56 main


There are no registered alternatives for libblas.a or links under /usr/lib:

$ ll /etc/alternatives/libblas*
lrwxrwxrwx 1 root root 36 May 16 17:02 /etc/alternatives/libblas.so -> 
/usr/lib/atlas-base/atlas/libblas.so
lrwxrwxrwx 1 root root 40 May 16 17:02 /etc/alternatives/libblas.so.3gf -> 
/usr/lib/atlas-base/atlas/libblas.so.3gf

$ ll /usr/lib/libblas*
lrwxrwxrwx 1 root root   28 May 16 16:58 /usr/lib/libblas.so -> 
/etc/alternatives/libblas.so
lrwxrwxrwx 1 root root   32 May 16 16:58 /usr/lib/libblas.so.3gf -> 
/etc/alternatives/libblas.so.3gf

/usr/lib/libblas:
total 1868
drwxr-xr-x   2 root root    4096 May 16 16:58 ./
drwxr-xr-x 178 root root   36864 Jun 25 12:30 ../
-rw-r--r--   1 root root 1236664 Sep 10  2011 libblas.a
lrwxrwxrwx   1 root root      14 Sep 10  2011 libblas.so -> libblas.so.3gf
lrwxrwxrwx   1 root root      16 Sep 10  2011 libblas.so.3gf -> libblas.so.3gf.0
-rw-r--r--   1 root root  630056 Sep 10  2011 libblas.so.3gf.0

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/885641

Title:
  libblas.a cannot be found by ld

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/blas/+bug/885641/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to