Bug#680096: libblas3: Shared library for BLAS level3 (dgemm) is broken on WHEEZY/powerpc

Dima Sorkin dima at minignu.minidns.net
Tue Jul 3 14:12:41 UTC 2012


Package: libblas3
Version: 1.2.20110419-3
Severity: normal

The following simple testcase
-------------
$ cat try_dgemm.f90
program try_dgemm ! -*-fortran-*-
integer, parameter :: N = 20
double precision, dimension(N,N) :: A, B, C
call dgemm( 'N', 'N', N, N, N, 1.0, A, N, B, N, 0.0, C, N)
end program try_dgemm
-------------

fails to run when linked with a shared BLAS library. Each of the following cases
    gfortran -o try_dgemm -ggdb -pedantic -Wall try_dgemm.f90 -lblas
    gfortran -o try_dgemm -ggdb -pedantic -Wall try_dgemm.f90 /usr/lib/libblas/libblas.so
    gfortran -o try_dgemm -ggdb -pedantic -Wall try_dgemm.f90 /usr/lib/atlas-base/atlas/libblas.so
    gfortran -o try_dgemm -ggdb -pedantic -Wall try_dgemm.f90 /usr/lib/libblas.so

will fail:
--------------------------------
$ ./try_dgemm
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/dima/Desktop/fortran/try_dgemm...done.
(gdb) run
Starting program: /home/dima/Desktop/fortran/try_dgemm
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/powerpc-linux-gnu/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0x0fc7f55c in ATL_dptgemm_nt () from /usr/lib/libblas.so.3
(gdb)
----------------------------------

However statically linking it:
    gfortran -o try_dgemm -ggdb -pedantic -Wall try_dgemm.f90 /usr/lib/libblas.a

will produce an executable that runs ok.

Thanks, regards,
  Dima.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: powerpc (ppc)

Kernel: Linux 3.2.0-2-powerpc
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libblas3 depends on:
ii  libc6         2.13-33
ii  libgcc1       1:4.7.1-2
ii  libgfortran3  4.7.1-2

libblas3 recommends no packages.

libblas3 suggests no packages.

-- no debconf information





More information about the debian-science-maintainers mailing list