Skip to content

uclibc: cannot find value AT_MINSIGSTKSZ #5039

@xtqqczze

Description

@xtqqczze
   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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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