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

cargo install cargo-clone-crate mio v0.7.14 fails #8

Closed
davehorner opened this issue Nov 22, 2021 · 6 comments
Closed

cargo install cargo-clone-crate mio v0.7.14 fails #8

davehorner opened this issue Nov 22, 2021 · 6 comments

Comments

@davehorner
Copy link

could not find 'ioapiset' in 'um' and expected struct OVERLAPPED_ENTRY, found struct windows_sys::Windows::Win32::System::IO::OVERLAPPED_ENTRY

error[E0432]: unresolved import `winapi::um::ioapiset`
  --> C:\Users\\.cargo\registry\src\github.com-1ecc6299db9ec823\mio-0.7.14\src\sys\windows\named_pipe.rs:12:17
   |
12 | use winapi::um::ioapiset::CancelIoEx;
   |                 ^^^^^^^^ could not find `ioapiset` in `um`

error[E0308]: mismatched types
   --> C:\Users\r\.cargo\registry\src\github.com-1ecc6299db9ec823\mio-0.7.14\src\sys\windows\selector.rs:514:26
    |
514 |                 callback(iocp_event.entry(), Some(events));
    |                          ^^^^^^^^^^^^^^^^^^ expected struct `OVERLAPPED_ENTRY`, found struct `windows_sys::Windows::Win32::System::IO::OVERLAPPED_ENTRY`
    |
    = note: expected reference `&OVERLAPPED_ENTRY`
               found reference `&windows_sys::Windows::Win32::System::IO::OVERLAPPED_ENTRY````

===rustup show===
Default host: i686-pc-windows-msvc
rustup home:  C:\Users\\.rustup
installed toolchains
--------------------
stable-x86_64-pc-windows-msvc
nightly-i686-pc-windows-msvc
nightly-x86_64-pc-windows-gnu
nightly-x86_64-pc-windows-msvc (default)
active toolchain
----------------
nightly-x86_64-pc-windows-msvc (default)
rustc 1.58.0-nightly (a77da2d45 2021-11-19)

any ideas on how to resolve these errors?

@ehuss
Copy link
Owner

ehuss commented Nov 22, 2021

It looks like this was caused by a new version of miow, which has since been yanked (yoshuawuyts/miow#51). Can you try to install again?

@davehorner
Copy link
Author

Installing again provides a linker error about userenv.lib being missing.

@ehuss
Copy link
Owner

ehuss commented Nov 23, 2021

Which versions of the Windows SDK do you have installed?

Can you include the full text of the output from cargo?

@davehorner
Copy link
Author

I did not realize there was a windows sdk dependency. Installing choco install windows-sdk-10.0. This did not resolve the issue

error: linking with link.exe failed: exit code: 1181
= note: LINK : fatal error LNK1181: cannot open input file 'userenv.lib'
error: could not compile proc-macro2 due to previous error
warning: build failed, waiting for other jobs to finish...
error: linking with link.exe failed: exit code: 1181

the environment vars I do not share typically.

@ehuss
Copy link
Owner

ehuss commented Nov 23, 2021

The typical way to install the SDK is via the Visual Studio Installer. One way is to check the "Visual Studio Build Tools" option, enable "Desktop development with C++", and make sure that "Windows 10 SDK" is enabled.

@davehorner
Copy link
Author

working fine on two machines after using:
choco install visualstudio2019-workload-vctools
thank you.

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

2 participants