Bug#655586: libatlas3gf-base and "Illegal instruction"
Stefano Lattarini
stefano.lattarini at gmail.com
Thu Jan 12 14:57:29 UTC 2012
Package: libatlas3gf-base
Version: 3.8.3-27
Severity: serious
-- System Information:
Debian Release: wheezy/sid
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages libatlas3gf-base depends on:
ii libc6 2.13-21 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.6.2-11 GCC support library
ii libgfortran3 4.6.2-11 Runtime library for GNU Fortran ap
libatlas3gf-base recommends no packages.
Versions of packages libatlas3gf-base suggests:
ii libblas3gf 1.2.20110419-2 Basic Linear Algebra Reference imp
ii liblapack3gf 3.3.1-1 library of linear algebra routines
-*-*-*-
Programs linked with libatlas3gf-base unexpectedly die with an
"Illegal instruction" signal:
$ cat > foo.c <<'END'
#include <atlas/cblas.h>
int main (void)
{
static double a[2*2];
static double b[2*2];
static double c[2*2];
double alpha = 1.0, beta = 0.0;
cblas_dgemm (CblasRowMajor, CblasNoTrans, CblasNoTrans, 2, 2, 2,
alpha, a, 2, b, 2, beta, c, 2);
return 0;
}
END
$ gcc -lcblas foo.c
$ ./a.out; echo status = $?
Illegal instruction
status = 132
-*-*-*-
JFTR, I tripped on the above issue while trying to install a hand-compiled
version of numpy; in fact, the problem is there also for the version of
numpy installed by the package manager:
$ dpkg --status python-numpy
Package: python-numpy
...
Source: python-numpy (1:1.3.0-3)
Version: 1:1.3.0-3+b2
...
Homepage: http://numpy.scipy.org/
Python-Version: 2.5, 2.6
$ python -c 'import numpy; numpy.test()'; echo status = $?
Running unit tests for numpy
NumPy version 1.3.0
NumPy is installed in /usr/lib/python2.6/dist-packages/numpy
Python version 2.6.6 (r266:84292, Apr 20 2011, 11:58:30) [GCC 4.5.2]
nose version 1.0.0
Illegal instruction
status = 132
-*-*-*-
Regards,
Stefano
More information about the debian-science-maintainers
mailing list