[Bug 2134476] Re: lziprecover fails to build on riscv64
Bug Watch Updater
2134476 at bugs.launchpad.net
Mon Dec 15 11:20:11 UTC 2025
** Changed in: lziprecover (Debian)
Status: Unknown => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2134476
Title:
lziprecover fails to build on riscv64
Status in lziprecover package in Ubuntu:
New
Status in lziprecover package in Debian:
Confirmed
Bug description:
LP 2103944 removed the riscv64 binary instead of fixing the failure of
lziprecover on riscv64.
In the upstream code the following diff is sufficient to resolve the
problem incorrect relocations:
diff --git a/configure b/configure
index 1412da6..64f3292 100755
--- a/configure
+++ b/configure
@@ -27,6 +27,15 @@ LDFLAGS=
LIBS=-lpthread
MAKEINFO=makeinfo
+# Detect the architecture
+arch=$(uname -m)
+
+# Add architecture specific build flags.
+if [ "$arch" = "riscv64" ]; then
+ echo "Detected RISC-V architecture (riscv64)."
+ CXXFLAGS="$CXXFLAGS -mcmodel=medany -mexplicit-relocs"
+fi
+
# checking whether we are using GNU C++.
/bin/sh -c "${CXX} --version" > /dev/null 2>&1 || { CXX=c++ ; CXXFLAGS=-O2 ; }
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lziprecover/+bug/2134476/+subscriptions
More information about the Ubuntu-sponsors
mailing list