crash: build failure on RISC-V

Bug #1935679 reported by Heinrich Schuchardt
This bug report is a duplicate of:  Bug #1931432: crash FTBFS on riscv64. Edit Remove
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
crash (Ubuntu)
New
Undecided
Unassigned

Bug Description

version: 7.3.0-1ubuntu1

Building crash for RISC-V fails with a segfault. This segfault is due to missing support for architecture RISC-V in file configure.c. configure is used to update Makefile. It replaces "TARGET " by "(NULL)". A patch is at https://github.com/xypron/crash/commit/2391175c7936a3d873b7b7f1b6c6cae2f4c166b8

Current upstream crash uses an version 7.6 for gdb which does not support RISC-V. Patch series https://listman.redhat.com/archives/crash-utility/2021-March/msg00078.html provides an update to gdb 10.1.

https://github.com/YustasSwamp/crash/tree/crash-gdb10.2-devel-temp provides patches for using gdb 10.2.

For building we need command makeinfo which is provided by missing package texinfo.

Revision history for this message
Heinrich Schuchardt (xypron) wrote :
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

makeinfo is provided in universe.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "0001-configure.c-add-RISC-V-architecture.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Heinrich Schuchardt (xypron) wrote :

Additionally to adjusting configure.c the following changes to the upstream source are needed:

Add RISC-V to defs.h
Create riscv64.c, unwind_riscv64.c

Revision history for this message
Heinrich Schuchardt (xypron) wrote :

The upstream issue for RISC-V support is https://github.com/crash-utility/crash/issues/89

tags: added: riscv64
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Possibly fixes the issue reported in bug 1931432 as wel...

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.