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

Allow using using windows-gnu target without rust-mingw component #1543

Closed
1 of 2 tasks
mati865 opened this issue Nov 15, 2018 · 3 comments
Closed
1 of 2 tasks

Allow using using windows-gnu target without rust-mingw component #1543

mati865 opened this issue Nov 15, 2018 · 3 comments

Comments

@mati865
Copy link
Contributor

mati865 commented Nov 15, 2018

It would fix rust-lang/rust#47048

TL;DR
rust-mingw contains set of libraries compiled with specific versions of GCC and mingw-w64 and have higher priority then system libraries. This causes mismatch between headers and libraries when host toolchain is different than one used by Rust.

Removing it isn't possible now:

rustup : error: component 'rust-mingw' for target 'x86_64-pc-windows-gnu' is required for toolchain 'stable-x86_64-pc-windows-gnu' and cannot be removed

To fix this issue 2 things are necessary:

  • ability to remove rust-mingw component
  • option to install windows-gnu without rust-mingw component
@crlf0710
Copy link
Member

crlf0710 commented Dec 8, 2018

This alone won't be enough. We'll need to point the linker to use the correct crt2.o and dllcrt2.o file too...

@crlf0710
Copy link
Member

crlf0710 commented Dec 9, 2018

rust-lang/rust#53454

@mati865
Copy link
Contributor Author

mati865 commented Dec 9, 2018 via email

@mati865 mati865 closed this as completed Oct 29, 2019
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