Skip to content

missing libc::SYS_futex for riscv32gc-unknown-linux-gnu target #5627

Closed as not planned

Description

@Wyvern

rustc 1.101.0-nightly (080cc2714 2026-10-11)
build: -Zbuild-std
target: riscv32gc-unknown-linux-gnu

error[: cannot find value `SYS_futex` in crate `libc`
    ╭▸ /cargo/registry/25cdd57fae9f0462/parking_lot_core-0.9.12/src/thread_parker/linux.rs:113:23
    │
113 │                 libc::SYS_futex,
    │                       ━━━━━━━━━ not found in `libc`
    ╰╴
note: similarly named constant `SYS_fstat` defined here
    ╭▸ /cargo/registry/25cdd57fae9f0462/libc-0.2.190/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs:446:1
    │
446 │ pub const SYS_fstat: c_long = 80;
    ╰╴━━━━━━━━━━━━━━━━━━━━━━━━━━━
help: a constant with a similar name exists
    ╭╴
113 -                 libc::SYS_futex,
113 +                 libc::SYS_fstat,
    ╰╴
error[: cannot find value `SYS_futex` in crate `libc`
    ╭▸ /cargo/registry/25cdd57fae9f0462/parking_lot_core-0.9.12/src/thread_parker/linux.rs:141:19
    │
141 │             libc::SYS_futex,
    │                   ━━━━━━━━━ not found in `libc`
    ╰╴
note: similarly named constant `SYS_fstat` defined here
    ╭▸ /cargo/registry/25cdd57fae9f0462/libc-0.2.190/src/unix/linux_like/linux/gnu/b32/riscv32/mod.rs:446:1
    │
446 │ pub const SYS_fstat: c_long = 80;
    ╰╴━━━━━━━━━━━━━━━━━━━━━━━━━━━
help: a constant with a similar name exists
    ╭╴
141 -             libc::SYS_futex,
141 +             libc::SYS_fstat,
    ╰╴
For more information about this error, try `rustc --explain E0425`.

Activity

  1. tgross35 commented on Oct 13, 2026

    @tgross35
    Member

    PRs welcome!

  2. added a commit that references this issue on Oct 15, 2026
    c2fcaca
  3. tgross35 commented on Oct 15, 2026

    @tgross35
    Member

    Do these actually exist on Linux? #5631 (comment)

  4. tgross35 commented on Oct 16, 2026

    @tgross35
    Member

    Looks like they don't #5631 (comment), while musl does (internally at least)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions