Skip to content

std lib build broken for uclibc #95866

Closed
Closed
@asomers

Description

@asomers

Commit 33fd73f appears to have broken the build for uclibc. This command fails:

cargo +nightly check -Zbuild-std --target armv7-unknown-linux-uclibceabihf
...
error[E0599]: no method named `si_addr` found for struct `siginfo_t` in the current scope
  --> /usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/unix/stack_overflow.rs:84:28
   |
84 |         let addr = (*info).si_addr() as usize;
   |                            ^^^^^^^ method not found in `siginfo_t`

The problem is that libc does not define that field for uclibc. Whether that's an oversight in libc, or whether uclibc itself doesn't define that field, I don't know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions