8000 Support for `RISC-V` · Issue #156 · rust-minidump/minidump-writer · GitHub
[go: up one dir, main page]

Skip to content

Support for RISC-V #156

Open
Open

Description

@Jake-Shadle

Is your feature request related to a problem? Please describe.
Firefox cannot be built with the crash reporter module on Risc-V.

Describe the solution you'd like
Support for Risc-V.

Describe alternatives you've considered
Disabling the crash reporter in Firefox.

Additional context
Only ARM, x86 and x64 are currently accounted for in linux.rs and getcontext.rs, causing failure to compile in Risc-V:

:: 118:58.17 error[E0412]: cannot find type `ucontext_t` in module `super`
:: 118:58.18   --> /build/firefox/parts/firefox/build/third_party/rust/crash-context/src/linux/getcontext.rs:11:54
:: 118:58.19    |
:: 118:58.19 11 |     pub fn crash_context_getcontext(ctx: *mut super::ucontext_t) -> i32;
:: 118:58.20    |                                                      ^^^^^^^^^^ not found in `super`
:: 118:58.21    |
:: 118:58.21 help: consider importing this struct
:: 118:58.22    |
:: 118:58.23 3  + use libc::ucontext_t;
:: 118:58.23    |
:: 118:58.24 help: if you import `ucontext_t`, refer to it directly
:: 118:58.24    |
:: 118:58.25 11 -     pub fn crash_context_getcontext(ctx: *mut super::ucontext_t) -> i32;
:: 118:58.26 11 +     pub fn crash_context_getcontext(ctx: *mut ucontext_t) -> i32;
:: 118:58.27    |
:: 118:58.27 error[E0412]: cannot find type `ucontext_t` in this scope
:: 118:58.27   --> /build/firefox/parts/firefox/build/third_party/rust/crash-context/src/linux.rs:25:18
:: 118:58.28    |
:: 118:58.28 25 |     pub context: ucontext_t,
:: 118:58.29    |                  ^^^^^^^^^^ not found in this scope
:: 118:58.29    |
:: 118:58.29 help: consider importing this struct
:: 118:58.30    |
:: 118:58.30 3  + use libc::ucontext_t;
:: 118:58.30    |
:: 118:58.31 error[E0412]: cannot find type `fpregset_t` in this scope
:: 118:58.32   --> /build/firefox/parts/firefox/build/third_party/rust/crash-context/src/linux.rs:30:22
:: 118:58.33    |
:: 118:58.33 30 |     pub float_state: fpregset_t,
:: 118:58.34    |                      ^^^^^^^^^^ not found in this scope
:: 118:59.00 For more information about this error, try `rustc --explain E0412`.

Originally reported in EmbarkStudios/crash-handling#100, but that's only because crash-context is a dependency of this crate. I don't know what plans Firefox has to support RISC-V if any, so putting this issue here instead since even if I (I have no personal motivation to do any work on it) or someone implements getcontext for RISC-V, this crate would still need to do further work.

Activity

  1. gabrielesvelto commented on Aug 1, 2025

    @gabrielesvelto
    Contributor

    Thanks @Jake-Shadle. For anybody stumbling upon this, RISC-V is not even a tier-3 platform for Firefox, so we won't be able to work on it anytime soon. Patches are welcome too if you feel adventurous and have access to hardware or a software emulator.

  2. added a commit that references this issue on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0