-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
x86_64-win7-windows-msvc target cannot run #128218
Comments
Do you know the most recent version this worked with, was it 1.78? And can you test with nightly? Per the docs you will need to build with |
Cc @roblabla who is listed as the target maintainer, if you know anything more. |
@tgross35 Use x86 64-win7-windows-msvc only at night, right? |
I think maybe. Could you try the following?
The cargo command might tell you to run a rustup command, do that if it asks. |
I tried to run the command you said
The compilation succeeded, but the linking failed:
|
Ok, the second result is more like what is expected. However, I have no clue whether or not Microsoft's more recent link.exe is supposed to work for windows 7 targets. Maybe you can try following the cross compilation steps at https://doc.rust-lang.org/beta/rustc/platform-support/win7-windows-msvc.html#cross-compilation-toolchains-and-c-code? |
@tgross35 thank you I have successfully compiled and linked but it won't work under Windows 7 IsProcessCritical Function Minimum support Windows 8.1 I don't quite understand the reason for the rust compiler, will I not be able to run in win7 after I set the win7 target? |
Windows 7 reached its EOL in 2020 and its end of extended support in early 2023. After that happened, it was demoted to a tier3 target. Tier3 means that the Rust compiler knows about it, but it is not really officially supported. Meaning it is not tested in CI, and things may break. Fixes are always welcome from anyone who uses the target, it's just unlikely that anybody who doesn't use windows 7 will pick it up. Some more info: https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-3. I don't know what the fix is here, but if you figure out exactly where the requirement for |
Hm actually - could you try compiling a simple |
x86_64-win7-windows-msvc is tier3, so it is not built by the Rust CI, and hence not available through rustup. You'll need to use a nightly toolchain with -Zbuild-std to run it. I do run the CI on private infrastructure to make sure it works on windows 7, and it's currently passing. I think the immediate problem you're seeing is here. Your program is using Furthermore, there are currently problems with |
I'm closing this because I don't think there's anything for us to do here. Don't let that stop you from continuing to comment, if you want to. |
@roblabla When compiling and running the project on Windows 7, the
Environment:
|
@deadash that seems like a separate problem from the original here (the original being related to a dependency that is using |
I'm using rust 1.79.0 and can't find the win7 target
cargo build --release --target x86_64-win7-windows-msvc
:rustup target add x86_64-win7-windows-msvc
:rustc --version
:rustc --version --verbose
:The text was updated successfully, but these errors were encountered: