Bug#1018917: gnss-sdr ftbfs on riscv64
Package: gnss-sdr
Version: 0.0.17-1
Severity: minor
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu kinetic ubuntu-patch
Hi Carles,
The gnss-sdr source package is failing to build from source in Debian and
Ubuntu due to a failure to detect lapack support:
[...]
-- Found BLAS: /usr/lib/riscv64-linux-gnu/libblas.so
-- Looking for cheev_
-- Looking for cheev_ - not found
-- Could NOT find LAPACK (missing: LAPACK_LIBRARIES)
The LAPACK library has not been found.
You can try to install it by typing:
sudo apt-get install liblapack-dev
CMake Error at CMakeLists.txt:1850 (message):
LAPACK is required to build gnss-sdr
[...]
(https://buildd.debian.org/status/fetch.php?pkg=gnss-sdr&arch=riscv64&ver=0.0.17-1%2Bb4&stamp=1661681286&raw=0)
The cause of this build failure is subtle; I believe ultimately there is a
toolchain bug here on riscv64, but the problem can be worked around by
adding a Build-Conflict with libopenblas-dev, as in the attached patch.
libopenblas-dev is being pulled in as a preferred alternative by
libsuperlu-dev, but it's not the version of blas that any of the dependent
packages are built against, and avoiding it fixes this build failure.
Thanks for considering,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
slangasek@ubuntu.com vorlon@debian.org
diff -Nru gnss-sdr-0.0.17/debian/control gnss-sdr-0.0.17/debian/control
--- gnss-sdr-0.0.17/debian/control 2022-06-12 23:16:19.000000000 -0700
+++ gnss-sdr-0.0.17/debian/control 2022-09-01 16:32:05.000000000 -0700
@@ -32,6 +32,7 @@
pkg-config,
protobuf-compiler,
python3-mako
+Build-Conflicts: libopenblas-dev
Standards-Version: 4.6.0
Homepage: https://gnss-sdr.org
Vcs-Browser: https://salsa.debian.org/debian-hamradio-team/gnss-sdr
Reply to: