-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no SIGSTKFLT on sparc? #408
Comments
--- a/vendor/rustix/src/imp/libc/process/types.rs
+++ b/vendor/rustix/src/imp/libc/process/types.rs
@@ -197,6 +197,8 @@ pub enum Signal {
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
+ target_arch = "sparc",
+ target_arch = "sparc64",
all(
any(target_os = "android", target_os = "linux"),
any(target_arch = "mips", target_arch = "mips64"),
@@ -274,6 +276,8 @@ impl Signal {
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
+ target_arch = "sparc",
+ target_arch = "sparc64",
all(
any(target_os = "android", target_os = "linux"),
any(target_arch = "mips", target_arch = "mips64"),
diff --git a/vendor/rustix/src/imp/linux_raw/process/types.rs b/vendor/rustix/src/imp/linux_raw/process/types.rs
index 53e2c7d..859a108 100644
--- a/vendor/rustix/src/imp/linux_raw/process/types.rs
+++ b/vendor/rustix/src/imp/linux_raw/process/types.rs
@@ -119,7 +119,7 @@ pub enum Signal {
/// `SIGTERM`
Term = linux_raw_sys::general::SIGTERM,
/// `SIGSTKFLT`
- #[cfg(not(any(target_arch = "mips", target_arch = "mips64")))]
+ #[cfg(not(any(target_arch = "mips", target_arch = "mips64", target_arch = "sparc", target_arch = "sparc64")))]
Stkflt = linux_raw_sys::general::SIGSTKFLT,
/// `SIGCHLD`
#[doc(alias = "Chld")]
@@ -179,7 +179,7 @@ impl Signal {
linux_raw_sys::general::SIGPIPE => Some(Self::Pipe),
linux_raw_sys::general::SIGALRM => Some(Self::Alarm),
linux_raw_sys::general::SIGTERM => Some(Self::Term),
- #[cfg(not(any(target_arch = "mips", target_arch = "mips64")))]
+ #[cfg(not(any(target_arch = "mips", target_arch = "mips64", target_arch = "sparc", target_arch = "sparc64")))]
linux_raw_sys::general::SIGSTKFLT => Some(Self::Stkflt),
linux_raw_sys::general::SIGCHLD => Some(Self::Child),
linux_raw_sys::general::SIGCONT => Some(Self::Cont), this diff against old rustix before |
gentoo-bot
pushed a commit
to gentoo/gentoo
that referenced
this issue
Sep 25, 2022
Issue: bytecodealliance/rustix#408 Bug: https://bugs.gentoo.org/872725 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
expeditioneer
pushed a commit
to expeditioneer/gentoo-portage
that referenced
this issue
Sep 27, 2022
Issue: bytecodealliance/rustix#408 Bug: https://bugs.gentoo.org/872725 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
sunfishcode
added a commit
that referenced
this issue
Sep 27, 2022
Adjust cfg's as needed to fix compilation errors on sparc. Fixes #408.
sunfishcode
added a commit
that referenced
this issue
Sep 27, 2022
* Fix compilation on sparc targets. Adjust cfg's as needed to fix compilation errors on sparc. Fixes #408. * Rust's 32-bit sparc Linux target has a 32-bit time_t.
sunfishcode
added a commit
that referenced
this issue
Sep 27, 2022
* Fix compilation on sparc targets. Adjust cfg's as needed to fix compilation errors on sparc. Fixes #408. * Rust's 32-bit sparc Linux target has a 32-bit time_t.
sunfishcode
added a commit
that referenced
this issue
Sep 27, 2022
* Fix compilation on sparc targets. Adjust cfg's as needed to fix compilation errors on sparc. Fixes #408. * Rust's 32-bit sparc Linux target has a 32-bit time_t.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
rust-1.64.0 added vendored
rustix-0.35.6
and now rustc fails to build on sparc.
I think
sparc/sparc64
needs similar treatment tomips/mips64
wrtSIGSTKFLT
downstream bug: https://bugs.gentoo.org/872725
full build log: https://bugs.gentoo.org/attachment.cgi?id=814030
build log snip:
The text was updated successfully, but these errors were encountered: