- Notifications
You must be signed in to change notification settings - Fork 13.8k
Open
Labels
A-targetsArea: Concerning the implications of different compiler targetsArea: Concerning the implications of different compiler targetsC-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Build error below. From https://github.com/rust-lang/socket2/actions/runs/18309085762/job/52133230573?pr=617#step:5:51
error[E0425]: cannot find value `_SC_HOST_NAME_MAX` in crate `libc` --> /home/runner/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/std/src/sys/net/hostname/unix.rs:8:60 | 8 | let host_name_max = match unsafe { libc::sysconf(libc::_SC_HOST_NAME_MAX) } { | ^^^^^^^^^^^^^^^^^ not found in `libc` For more information about this error, try `rustc --explain E0425`. error: could not compile `std` (lib) due to 1 previous error
Meta
rustc --version --verbose
:
rustc 1.92.0-nightly (3d8c1c1fc 2025-10-06) binary: rustc commit-hash: 3d8c1c1fc077d04658de63261d8ce2903546db13 commit-date: 2025-10-06 host: x86_64-unknown-linux-gnu release: 1.92.0-nightly LLVM version: 21.1.2
Metadata
Metadata
Assignees
Labels
A-targetsArea: Concerning the implications of different compiler targetsArea: Concerning the implications of different compiler targetsC-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.