GNU bug report logs -
#69737
GSL cannot find CBLAS symbols
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Hi y'all,
I'm working on Guile bindings for GNU Scientific Library (GSL), and I
encountered a bug: GSL cannot find CBLAS functions when invoked directly
from Guile.
I'm attaching a script, gslcblas.scm, ran (given that you replace the
path to libgsl.so in it with a machine-specific one) with
guile gslcblas.scm
[gslcblas.scm (text/plain, attachment)]
[Message part 3 (text/plain, inline)]
It errors out with
guile: symbol lookup error: [...]/libgsl.so: undefined symbol: cblas_dscal
Loading libgslcblas.so into the Scheme image doesn't help, it errors out
the same. That's why I'm thinking it's not a Guile Scheme problem, but a
library one: GSL C code breaks with no knowledge of CBLAS.
The suggested fix is to link libgsl.so against libgslcblas.so (or any
other CBLAS library?), so that the functions from the latter are
available in the former. that seems to be what Arch package does
(https://archlinux.org/packages/extra/x86_64/gsl/), at least. Although I
admit this is a strange circular behavior, it makes sense too: CBLAS is
an implementation detail for BLAS support in GSL, and should be linked
as such.
I'm not knowledgeable enough in the ways of building GSL (or any complex
C software really), so I cannot come up with a proper patch. Hopefully
that's enough info for someone to act on.
Acknowledgements: Huge thanks to Arun Isaac who helped me debug this
problem!
Thanks,
--
Artyom Bologov.
This bug report was last modified 1 year and 150 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.