-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Closed
Copy link
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
I tried this code:
fn main() {
println!("Hello, world!");
}
cargo check -Zbuild-std --target armv7-unknown-linux-uclibceabihf
I expected to see this happen: it should work
Instead, this happened: the build fails like this:
error[E0599]: no method named `si_pid` found for struct `siginfo_t` in the current scope
--> /localhome/somers/.rustup/toolchains/nightly-x86_64-unknown-freebsd/lib/rustlib/src/rust/library/std/src/sys/unix/process/process_unix.rs:879:33
|
879 | if unsafe { siginfo.si_pid() } == 0 {
| ^^^^^^ method not found in `siginfo_t`
error[E0599]: no method named `si_status` found for struct `siginfo_t` in the current scope
--> /localhome/somers/.rustup/toolchains/nightly-x86_64-unknown-freebsd/lib/rustlib/src/rust/library/std/src/sys/unix/process/process_unix.rs:917:39
|
917 | let status = unsafe { siginfo.si_status() };
| ^^^^^^^^^ method not found in `siginfo_t`
For more information about this error, try `rustc --explain E0599`.
Meta
rustc --version --verbose
:
rustc 1.76.0-nightly (2f8d81f9d 2023-11-21)
binary: rustc
commit-hash: 2f8d81f9dbac6b8df982199f69da04a4c8357227
commit-date: 2023-11-21
host: x86_64-unknown-freebsd
release: 1.76.0-nightly
LLVM version: 17.0.5
Jan561, JonathanWoollett-Light, SteveLauC, operutka and 360tetsu360
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.O-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateT-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.