-
Notifications
You must be signed in to change notification settings - Fork 237
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
Fails to build with VC++ build tools #161
Comments
Do you have more info about this? Do the vc++ build tools not include rc? Are they in a special location? Are you using 2017? 2015? |
I have the VC++ 2015 build tools installed, in addition to Visual Studio 2017, everything with default settings. VC++ build tools includes As a work-around, I was able to copy |
This crate currently relies on gcc-rs to do detection of these tools, so is there something else that needs to be added to |
It looks like the issue is here: https://github.com/alexcrichton/gcc-rs/blob/88eb0745dd2b4525a8d11961e31c6acd1277a5c3/src/windows_registry.rs#L273 This checks that a given SDK is "complete" by looking for I'm afraid I don't know what the correct checks should look like, to ensure that a given SDK is complete. Maybe @retep998 can help? |
What could work as a solution is finding the Windows SDK for bin purposes independently of finding the Windows SDK for library purposes. |
I will include a fix for it in my gcc-rs patch for vs2017. |
This teaches gcc-rs to find tools installed by MSVC 2017. It's not obvious to what extend the new COM interfaces are expected to be use. This patch only uses it to find the product installation directory, then infers everything else. A lot of COM scaffolding to do very little. The toolchains seem to have a different directory structure in this release to better support cross-compilation. It looks to me like all the lib/include logic is pretty much the same as it always has been. This is tested to fix the rustup installation logic, and to fix rustc in basic use cases on x86_64. cc rust-lang#143 cc rust-lang/rustup#1003 cc rust-lang/rust#38584 cc alexcrichton/curl-rust#161
This teaches gcc-rs to find tools installed by MSVC 2017. It's not obvious to what extent the new COM interfaces are expected to be used. This patch only uses it to find the product installation directory, then infers everything else. A lot of COM scaffolding to do very little. The toolchains seem to have a different directory structure in this release to better support cross-compilation. It looks to me like all the lib/include logic is pretty much the same as it always has been. This is tested to fix the rustup installation logic, and to fix rustc in basic use cases on x86_64. cc rust-lang#143 cc rust-lang/rustup#1003 cc rust-lang/rust#38584 cc alexcrichton/curl-rust#161
This teaches gcc-rs to find tools installed by MSVC 2017. It's not obvious to what extent the new COM interfaces are expected to be used. This patch only uses it to find the product installation directory, then infers everything else. A lot of COM scaffolding to do very little. The toolchains seem to have a different directory structure in this release to better support cross-compilation. It looks to me like all the lib/include logic is pretty much the same as it always has been. This is tested to fix the rustup installation logic, and to fix rustc in basic use cases on x86_64. cc rust-lang#143 cc rust-lang/rustup#1003 cc rust-lang/rust#38584 cc alexcrichton/curl-rust#161
In theory closed by rust-lang/cc-rs#160, but if it's still her ejust let me know! |
This teaches gcc-rs to find tools installed by MSVC 2017. It's not obvious to what extent the new COM interfaces are expected to be used. This patch only uses it to find the product installation directory, then infers everything else. A lot of COM scaffolding to do very little. The toolchains seem to have a different directory structure in this release to better support cross-compilation. It looks to me like all the lib/include logic is pretty much the same as it always has been. This is tested to fix the rustup installation logic, and to fix rustc in basic use cases on x86_64. cc rust-lang#143 cc rust-lang/rustup#1003 cc rust-lang/rust#38584 cc alexcrichton/curl-rust#161
Fails to find
rc
, on this line:https://github.com/alexcrichton/curl/blob/651be36a7459015d601c22dc36161c9db60c7a1c/winbuild/MakefileBuild.vc#L497
Presumably with a full MSVC install,
nmake
ensures thatrc
is on the PATH.The text was updated successfully, but these errors were encountered: