Error during installation

I'm using Windows 11 x64 and I've tried to follow the common installation process using rustup-init.exe, get what dependency is missing, download and install it. When I start the rustup process it only returns: "Fatal Error: HW capability found: 0x178BFBFF 0x3ED8320B, but HW capability requested: 0x200000 0x00".

I was able to install rust using the MSI file provided by Rust Forge, but i can't undertand what i did so wrong to come into this error.

Has anyone seen this before?

I can't find anything about it.

What model of CPU does your computer have?

AMD Ryzen 5 3600

A very similar issue has been filed with Deno a few months ago. Deno 2.5.x inoperable; Fatal Error: HW Compatibility · Issue #31180 · denoland/deno · GitHub

An AMD processor in that case as well.

Have you installed the Windows 11 SDK? It's listed under the 'Desktop development with C++' section in the Visual Studio Installer. I've run into installation errors there before, but I'm not sure if it's the same issue you're having. If you haven't installed it through the installer, just having MSVC installed via command line might not be enough.

I can't say for sure, but I believe this error seems to be related to the processor. I ran the installation process on another machine, and even without previously installing buildtools, the process ran normally, only giving an error when the dependency was actually required.

The issue in this SO question seems similar. The comments suggest that Windows security features may mess with CPU feature detection.

Good find. I wonder if disabling Virtualization Based Security would fix it. That "feature" reminds me a lot more of tivoization and Treacherous Computing than actual security anyway.