Skip to content

std build broken for uclibc #154679

@xtqqczze

Description

@xtqqczze
$ cargo new hello_world
$ cd hello_world
$ cargo +nightly --version
cargo 1.96.0-nightly (888f67534 2026-03-30)
$ cargo +nightly check -Zbuild-std --target armv7-unknown-linux-uclibceabihf
   Compiling std v0.0.0 (~/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/std)
error[E0425]: cannot find value `AT_MINSIGSTKSZ` in crate `libc`
   --> ~/.rustup/toolchains/nightly-aarch64-apple-darwin/lib/rustlib/src/rust/library/std/src/sys/pal/unix/stack_overflow.rs:310:63
    |
310 | ...fe { libc::getauxval(libc::AT_MINSIGSTKSZ) };
    |                               ^^^^^^^^^^^^^^
    |
   ::: ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libc-0.2.183/src/unix/linux_like/linux/uclibc/mod.rs:400:1
    |
400 | pub const MINSIGSTKSZ: c_int = 2048;
    | ---------------------------- similarly named constant `MINSIGSTKSZ` defined here
    |
help: a constant with a similar name exists
    |
310 -         let dynamic_sigstksz = unsafe { libc::getauxval(libc::AT_MINSIGSTKSZ) };
310 +         let dynamic_sigstksz = unsafe { libc::getauxval(libc::MINSIGSTKSZ) };
    |

For more information about this error, try `rustc --explain E0425`.
error: could not compile `std` (lib) due to 1 previous error

cc: @skrap

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions