lziprecover fails to build on riscv64

Bug #2134476 reported by Heinrich Schuchardt
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lziprecover (Debian)
Confirmed
Unknown
lziprecover (Ubuntu)
New
Undecided
Unassigned

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 ; }

Tags: ftbfs

Related branches

Changed in lziprecover (Ubuntu):
assignee: nobody → Heinrich Schuchardt (xypron)
Changed in lziprecover (Ubuntu):
assignee: Heinrich Schuchardt (xypron) → nobody
Graham Inggs (ginggs)
tags: added: ftbfs
Changed in lziprecover (Debian):
status: Unknown → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.