Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fail Compilation with Rust Nightly. #75

Open
icommit opened this issue Jun 17, 2018 · 7 comments
Open

Fail Compilation with Rust Nightly. #75

icommit opened this issue Jun 17, 2018 · 7 comments

Comments

@icommit
Copy link

icommit commented Jun 17, 2018

net2 is a dependent crate for hyper- Rust http library. I'm trying to compile the hyper crate with the Rust nightly compiler but the error messages I'm getting seems to be coming from this crate.

error[E0432]: unresolved import sys
--> /home/myUsername/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/tcp.rs:18:5
|
18 | use sys::c;
| ^^^ Maybe a missing extern crate sys;?

error[E0432]: unresolved import sys
--> /home/myUsername/.cargo/registry/src/github.com-1ecc6299db9ec823/net2-0.2.32/src/udp.rs:18:5
|
18 | use sys::c;
| ^^^ Maybe a missing extern crate sys;?

There is at least 245 similar errors from this crate.

@turboladen
Copy link

turboladen commented Jun 27, 2018

Same here. I'm now on 1.28.0-nightly (84804c387 2018-06-26), but was getting this while running 1.28.0-nightly (e2348c2db 2018-06-07) too.

@jareddlc
Copy link

same issue: rustc 1.30.0-nightly (63d66494a 2018-08-23)

@metasyn
Copy link

metasyn commented Mar 13, 2019

Seeing this with: rustc 1.32.0 (9fda7c223 2019-01-16)

@MartinKavik
Copy link

rustc 1.34.0 (91856ed52 2019-04-10)

@MartinKavik
Copy link

Hey guys, I don't have this problem anymore - I've just done a stupid mistake. Check if you compile it with correct target - e.g. cargo build --target x86_64-pc-windows-msvc instead of default one (in my case it was wasm32-unknown-unknown configured in a parent folder in .cargo/config)

@justacec
Copy link

But what if that is your intended target?

@MartinKavik
Copy link

But what if that is your intended target?

If you think wasm32-unknown-unknown - it isn't possible (?), see list of supported platforms: https://github.com/rust-lang-nursery/net2-rs/blob/master/src/lib.rs#L64. Probably wasi is the nearest option but I've never used it, just tip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants