[Bug 2134476] [NEW] lziprecover fails to build on riscv64
Launchpad Bug Tracker
2134476 at bugs.launchpad.net
Mon Dec 15 08:54:49 UTC 2025
You have been subscribed to a public bug by Heinrich Schuchardt (xypron):
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 ; }
** Affects: lziprecover (Ubuntu)
Importance: Undecided
Assignee: Heinrich Schuchardt (xypron)
Status: New
--
lziprecover fails to build on riscv64
https://bugs.launchpad.net/bugs/2134476
You received this bug notification because you are a member of Ubuntu Sponsors, which is subscribed to the bug report.
More information about the Ubuntu-sponsors
mailing list