Hi,
I am having problem linking my application with liblapacke.so.3.5.0. Here is the linker errors:
/usr/lib64/gcc/x86_64-suse-linux/6/…/…/…/…/lib64/liblapacke.so: undefined reference to slagsy_' /usr/lib64/gcc/x86_64-suse-linux/6/../../../../lib64/liblapacke.so: undefined reference to
claghe_’
/usr/lib64/gcc/x86_64-suse-linux/6/…/…/…/…/lib64/liblapacke.so: undefined reference to dlagsy_' /usr/lib64/gcc/x86_64-suse-linux/6/../../../../lib64/liblapacke.so: undefined reference to
zlagge_’
/usr/lib64/gcc/x86_64-suse-linux/6/…/…/…/…/lib64/liblapacke.so: undefined reference to dlagge_' /usr/lib64/gcc/x86_64-suse-linux/6/../../../../lib64/liblapacke.so: undefined reference to
zlaghe_’
/usr/lib64/gcc/x86_64-suse-linux/6/…/…/…/…/lib64/liblapacke.so: undefined reference to zlatms_' /usr/lib64/gcc/x86_64-suse-linux/6/../../../../lib64/liblapacke.so: undefined reference to
clagsy_’
/usr/lib64/gcc/x86_64-suse-linux/6/…/…/…/…/lib64/liblapacke.so: undefined reference to dlatms_' /usr/lib64/gcc/x86_64-suse-linux/6/../../../../lib64/liblapacke.so: undefined reference to
clagge_’
/usr/lib64/gcc/x86_64-suse-linux/6/…/…/…/…/lib64/liblapacke.so: undefined reference to clatms_' /usr/lib64/gcc/x86_64-suse-linux/6/../../../../lib64/liblapacke.so: undefined reference to
slagge_’
/usr/lib64/gcc/x86_64-suse-linux/6/…/…/…/…/lib64/liblapacke.so: undefined reference to zlagsy_' /usr/lib64/gcc/x86_64-suse-linux/6/../../../../lib64/liblapacke.so: undefined reference to
slatms_’
collect2: error: ld returned 1 exit status
All missing symbols(undefined regerences) are LAPACK testing routines. Am I missing some LAPACK testing package ?
I checked what symbols defined in lapacke.so and lapack.so:
=====
nm -D /usr/lib64/liblapacke.so.3.5.0 | grep slagsy
prodiced output:
0000000000101450 T LAPACKE_slagsy_work
U slagsy_
while
nm -D /usr/lib64/lapack/liblapack.so.3.5.0 | grep slagsy
produces empty output (no symbol slagsy in liblapack.so.3.5.0)
LAPACKE is a part of LAPACK package. It would be reasonable to expect that the sets of symbols in lapacke.so and in lapack.so are consistent. As it stands now it is impossible to link apps that use LAPACKE routines.
I wish maintainers of LAPACK{,E} could either separate testing routines in a separate package or include them in lapack.so.
Does anybody know how to deal with this, except for compiling and installing a separate copy of LAPACK ?
All advises are appreciated very much. Thank you.