On Samstag, 16. März 2019 21:46:42 CET Chris Coutinho wrote:
Hi all,
I think the update-alternatives configuration set up for openblas incorrectly/incompletely overrides an alternative for libblas.so.3. Namely, the libopenblas_pthreads provides an alternative for itself (libopenblas_pthreads.so.0), but then places a link to the more generic openblas library libopenblas.so.0. This overrides the alternatives set up for libblas, and gets picked up by e.g. cmake and its FindBLAS module.
Long story short, update-alternatives for openblas in openSUSE is broken for a long time, as each alternative has a different soname (i.e. not the file name, but the SONAME in the library): $> objdump -p /usr/lib64/libopenblas.so.0 | grep SONAME SONAME libopenblas_pthreads.so.0 You can not switch between them with update-alternatives, as the binaries are linked to the specific flavors: $> ldd /usr/bin/octave-cli | grep blas libopenblas_pthreads.so.0 => /usr/lib64/libopenblas_pthreads.so.0 (0x00007fae00dac000) libblas.so.3 => /usr/lib64/libblas.so.3 (0x00007fadfea0b000) Kind regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019