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

Windows GNU: Check if there is ABI #3085

Open
SergioGasquez opened this issue Oct 11, 2022 · 2 comments
Open

Windows GNU: Check if there is ABI #3085

SergioGasquez opened this issue Oct 11, 2022 · 2 comments

Comments

@SergioGasquez
Copy link

Problem you are trying to solve

When using x86_64-pc-windows-msvc there is a check to see if the ABI dependencies are installed and if there are not, it allows the user to install VS and the dependencies (#2954). This is not available for x86_64-pc-windows-gnu

Solution you'd like

I would like to have the same behavior for x86_64-pc-windows-gnu, rustup could check the requirements and ask the user to install them if they are not present.

Notes

No response

@Diggsey
Copy link
Contributor

Diggsey commented Oct 11, 2022

Rust already bundles the necessary components when using the -gnu toolchain if you're only building pure Rust code - those requirements you linked are only necessary for building C code. This is in contrast to the -msvc toolchain where you need the VC++ build tools even for pure Rust code. No harm in being more helpful though.

@SergioGasquez
Copy link
Author

Hi! Sorry if I am getting something wrong, but if I do the installation with the x86_64-pc-windows-gnu rustup-init script or if I use the standalone installer for the same triple and I try to build any crate I get:

error occurred: Failed to find tool. Is `gcc.exe` installed? (see https://github.com/alexcrichton/cc-rs#compile-time-requirements for help) 

A similar error happens for x86_64-pc-windows-msvc if you don't install Visual Studio C++ Build tools when prompted to do so. What I would expect for x86_64-pc-windows-gnu is a similar prompt where the user could install compile time requirements.

Thanks in advance, and let me know if I am missing something!

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

No branches or pull requests

2 participants