Skip to content

hermit building failed due to IPV6_UNICAST_HOPS and IPV6_MULTICAST_HOPS missing #164495

Closed

Description

@Wyvern

rustc 1.101.0-nightly (8006091 2026-10-17)
build with -Zbuild-std
affected targets:
aarch64-unknown-hermit aarch64_be-unknown-hermit riscv64gc-unknown-hermit x86_64-unknown-hermit

error[: cannot find value `IPV6_UNICAST_HOPS` in crate `c`
    ╭▸ /rustc/8006091eb71ae7d9e9bccb66c6122c9d68af4466/library/std/src/sys/net/connection/socket/mod.rs:534:61
    │
534 │                 setsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_UNICAST_HOPS, limit as c_int)
    ╰╴                                                            ━━━━━━━━━━━━━━━━━ not found in `c`

error[: cannot find value `IPV6_UNICAST_HOPS` in crate `c`
    ╭▸ /rustc/8006091eb71ae7d9e9bccb66c6122c9d68af4466/library/std/src/sys/net/connection/socket/mod.rs:546:74
    │
546 │                     unsafe { getsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_UNICAST_HOPS)? };
    ╰╴                                                                         ━━━━━━━━━━━━━━━━━ not found in `c`

error[: cannot find value `IPV6_UNICAST_HOPS` in crate `c`
    ╭▸ /rustc/8006091eb71ae7d9e9bccb66c6122c9d68af4466/library/std/src/sys/net/connection/socket/mod.rs:687:61
    │
687 │                 setsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_UNICAST_HOPS, limit as c_int)
    ╰╴                                                            ━━━━━━━━━━━━━━━━━ not found in `c`

error[: cannot find value `IPV6_UNICAST_HOPS` in crate `c`
    ╭▸ /rustc/8006091eb71ae7d9e9bccb66c6122c9d68af4466/library/std/src/sys/net/connection/socket/mod.rs:699:74
    │
699 │                     unsafe { getsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_UNICAST_HOPS)? };
    ╰╴                                                                         ━━━━━━━━━━━━━━━━━ not found in `c`

error[: cannot find value `IPV6_UNICAST_HOPS` in crate `c`
    ╭▸ /rustc/8006091eb71ae7d9e9bccb66c6122c9d68af4466/library/std/src/sys/net/connection/socket/mod.rs:932:61
    │
932 │                 setsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_UNICAST_HOPS, limit as c_int)
    ╰╴                                                            ━━━━━━━━━━━━━━━━━ not found in `c`

error[: cannot find value `IPV6_UNICAST_HOPS` in crate `c`
    ╭▸ /rustc/8006091eb71ae7d9e9bccb66c6122c9d68af4466/library/std/src/sys/net/connection/socket/mod.rs:944:74
    │
944 │                     unsafe { getsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_UNICAST_HOPS)? };
    ╰╴                                                                         ━━━━━━━━━━━━━━━━━ not found in `c`

error[: cannot find value `IPV6_MULTICAST_HOPS` in crate `c`
    ╭▸ /rustc/8006091eb71ae7d9e9bccb66c6122c9d68af4466/library/std/src/sys/net/connection/socket/mod.rs:957:61
    │
957 │                 setsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_MULTICAST_HOPS, limit as c_int)
    │                                                             ━━━━━━━━━━━━━━━━━━━ not found in `c`
    ╰╴
note: similarly named constant `IPV6_MULTICAST_LOOP` defined here
    ─▸ /cargo/registry/25cdd57fae9f0462/hermit-abi-0.5.3/src/lib.rs:102:0
help: a constant with a similar name exists
    ╭╴
957 -                 setsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_MULTICAST_HOPS, limit as c_int)
957 +                 setsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_MULTICAST_LOOP, limit as c_int)
    ╰╴

error[: cannot find value `IPV6_MULTICAST_HOPS` in crate `c`
    ╭▸ /rustc/8006091eb71ae7d9e9bccb66c6122c9d68af4466/library/std/src/sys/net/connection/socket/mod.rs:969:74
    │
969 │                     unsafe { getsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_MULTICAST_HOPS)? };
    │                                                                          ━━━━━━━━━━━━━━━━━━━ not found in `c`
    ╰╴
note: similarly named constant `IPV6_MULTICAST_LOOP` defined here
    ─▸ /cargo/registry/25cdd57fae9f0462/hermit-abi-0.5.3/src/lib.rs:102:0
help: a constant with a similar name exists
    ╭╴
969 -                     unsafe { getsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_MULTICAST_HOPS)? };
969 +                     unsafe { getsockopt(&self.inner, c::IPPROTO_IPV6, c::IPV6_MULTICAST_LOOP)? };
    ╰╴

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

maybe pertained to #138744 PR

Activity

  1. added
    needs-triage
    on Oct 18, 2026
  2. changed the title [-]hermit building due to `IPV6_UNICAST_HOPS` missing[/-] [+]hermit building failed due to `IPV6_UNICAST_HOPS` missing[/+] on Oct 18, 2026
  3. changed the title [-]hermit building failed due to `IPV6_UNICAST_HOPS` missing[/-] [+]hermit building failed due to `IPV6_UNICAST_HOPS` and ``IPV6_MULTICAST_HOPS`` missing[/+] on Oct 18, 2026
  4. added
    O-hermit
    and removed
    needs-triage
    on Oct 18, 2026
  5. Tushar15769 commented on Oct 18, 2026

    @Tushar15769
  6. maxdexh commented on Oct 18, 2026

    @maxdexh
    Member

    @Tushar15769
    Please make sure to follow the LLM policy. You can use @rustbot claim to assign yourself to the issue.

  7. added
    C-bug
    T-libs
    -Zbuild-std
    on Oct 18, 2026
  8. Tushar15769 commented on Oct 18, 2026

    @Tushar15769
  9. xtqqczze commented on Nov 1, 2026

    @xtqqczze
    Contributor

    @rustbot claim

  10. added a commit that references this issue on Nov 2, 2026
  11. added a commit that references this issue on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

-Zbuild-stdC-bugO-hermitT-libs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions