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

xbuild on Windows with git bash using gnu linker when msvc linker unavailable #85

Open
Neben5 opened this issue Jul 27, 2020 · 1 comment

Comments

@Neben5
Copy link

Neben5 commented Jul 27, 2020

Recently, I accidentally uninstalled MSVC tooling on my windows machine unknowingly. This removed the MSVC linker, which (I believe) xbuild normally tries to use. Because I am using git bash, there is an included linker in the shell, which was used instead, and made builds fail.
Untitled-1.txt
This massive error message is what resulted. It was extremely hard to find out what was wrong, and I ended up having to reinstall xbuild, rust, all my toolchains, etc. Would it be possible to add some sort of check to ensure that the user knows the issue? This massive linker error dump is not useful at all.

@phil-opp
Copy link
Member

This sounds more like an issue in rustc/cargo itself, than related to cargo-xbuild. We only invoke cargo for the sysroot build, nothing else. So if the wrong linker is used, it is invoked directly from cargo/rustc.

I would recommend looking through the rust/cargo issues to see whether it was already reported, and open a new issue there otherwise. From a quick search, maybe these threads are related: rust-lang/rust#43069, rust-lang/rust#72296

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