Skip to content

Cannot build rust nightly: unresolved import crate::os::unix::net #105467

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
MikaelUrankar opened this issue Dec 8, 2022 · 8 comments · Fixed by #106618
Closed

Cannot build rust nightly: unresolved import crate::os::unix::net #105467

MikaelUrankar opened this issue Dec 8, 2022 · 8 comments · Fixed by #106618
Labels
C-bug Category: This is a bug.

Comments

@MikaelUrankar
Copy link
Contributor

error[E0432]: unresolved import `crate::os::unix::net`
 --> library/std/src/os/net/linux_ext/addr.rs:3:22
  |
3 | use crate::os::unix::net::SocketAddr;
  |                      ^^^ could not find `net` in `unix`
/usr/ports/lang/rust-nightly/work/bootstrap/bin/rustc -vV
rustc 1.66.0-beta.1 (e080cc5a6 2022-11-01)
binary: rustc
commit-hash: e080cc5a659fb760c0bc561b722a790dad35b5e1
commit-date: 2022-11-01
host: x86_64-unknown-freebsd
release: 1.66.0-beta.1
LLVM version: 15.0.2
@MikaelUrankar MikaelUrankar added the C-bug Category: This is a bug. label Dec 8, 2022
@MikaelUrankar
Copy link
Contributor Author

Any ideas?

@MikaelUrankar
Copy link
Contributor Author

Regressed with 8f1e6eba343452ac48412f11d57aa7d206c8c3dd

@MikaelUrankar
Copy link
Contributor Author

cc @jmillikin

@jmillikin
Copy link
Contributor

jmillikin commented Dec 26, 2022

Is there more information available from the error? The linux_ext module should not be part of the FreeBSD build.

Also, an error in resolving crate::os::unix::net doesn't make much sense to me because that module should exist regardless of whether the unix_socket_abstract feature is enabled.

Is it possible that there's either (1) another error further up in the build log, or (2) an existing incorrect dependency that's been exposed by the recent change?

@MikaelUrankar
Copy link
Contributor Author

The full log is available here:
http://mikael.urankar.free.fr/rust-1.66.0.log.txt

@MikaelUrankar
Copy link
Contributor Author

It only happens if I build the documentation.

Is it possible to fix this problem before rust 1.67 lands?

@jmillikin
Copy link
Contributor

Reproduced with the following command:

python3 x.py doc std --target=wasm32-unknown-unknown

@MikaelUrankar could you please see if the patch in #106618 fixes the build for you?

@MikaelUrankar
Copy link
Contributor Author

Your patch fixes the issue.
Many thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants