lziprecover fails to build on riscv64
| 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 ; }
Related branches
- Ubuntu Sponsors: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 42 lines (+12/-1)3 files modifieddebian/changelog (+6/-0)
debian/control (+2/-1)
debian/rules (+4/-0)
| Changed in lziprecover (Ubuntu): | |
| assignee: | nobody → Heinrich Schuchardt (xypron) |
| Changed in lziprecover (Ubuntu): | |
| assignee: | Heinrich Schuchardt (xypron) → nobody |
| tags: | added: ftbfs |
| Changed in lziprecover (Debian): | |
| status: | Unknown → Confirmed |
