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.
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:
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.