Public bug reported:

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
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2134476

Title:
  lziprecover fails to build on riscv64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lziprecover/+bug/2134476/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to