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

Missing libgcc_s_dw2-1.dll message after install in Win7 #9218

Closed
putridmelon opened this issue Sep 16, 2013 · 5 comments
Closed

Missing libgcc_s_dw2-1.dll message after install in Win7 #9218

putridmelon opened this issue Sep 16, 2013 · 5 comments
Labels
O-windows Operating system: Windows

Comments

@putridmelon
Copy link

I know this has been reported before, so I apologize for obstinately reporting it again.

In my defense though, the earlier reports were closed without a solution or an explanation as to why this is isn't being addressed, and currently (a year later) it still doesn't work. If there is no intention of or interest in making rustc work on Win64, it would be helpful if someone on the Rust team just said so.

@klutzy
Copy link
Contributor

klutzy commented Sep 16, 2013

mingw recently upgraded whole mingw packages and installer, so current doc is largely out-of-sync, while we are trying to revise it.

The error comes if libgcc package is not installed. (there is no libgcc_s_dw2-1.dll at /bin.) stage0/rustc.exe needs it to run.
I'm not sure what version of gcc you have installed, though libgcc-4.5.2-1-mingw32-dll-1.tar.lzma or libgcc-4.6.2-1-mingw32-dll-1.tar.lzma may work for running rustc.exe.

@putridmelon
Copy link
Author

Currently I don't have gcc installed at all, since the "Getting started" section from the Rust tutorial still confidently states that Windows users should not compile from source but use the installer instead. But perhaps that's one of the docs that are out-of-sync, as you said.

I'm not clear whether you're telling me I should compile from source, or that I need to have GCC installed to run (not just compile) rustc.exe. The latter would be puzzling.

@klutzy
Copy link
Contributor

klutzy commented Sep 17, 2013

Aha! I see the situation. Yes, you need mingw toolchain anyway (#3459):

  • rustc uses external linker g++.exe.
  • Currently all binary depends on mingw runtime including libgcc_s_dw2-1.dll, libstdc++-6.dll and libpthread-2.dll.

Moreover, it is more puzzling to install mingw because of version incompatibility. :( For example, if you get mingw via mingw-installer, it installs libstdc++-6.dll which is incompatible to rust. You have to download it manually. Other binaries cause similar issues and you have to search wiki/issues for information.

@putridmelon
Copy link
Author

klutzy,

It sounds like in order to get rustc to work on Win64, I'll have to manually put the dependency chain together on the basis of hints/tips/clues scattered across various Wiki pages and Github issues. While I'm really interested in Rust, I'll pass on that.

I think that if the Rust team are at all interested in attracting some attention to this language (which from what I can tell it deserves), the lack of a reasonably clear way to get Rust working on the number 1 desktop platform is a pretty serious obstacle. There doesn't necessarily have to be a one-click MSI installer, but a reliable, up-to-date how-to guide would make world of difference.

Thanks for your replies.

@kunos
Copy link

kunos commented Sep 30, 2013

I agree with putridmelon, there is no point in releasing a binary installer that just doesn't work... and no, asking to downgrade my gcc install just to try Rust cannot be considered a solution.

At the moment the windows installer is broken for EVERYBODY unless, for some obscure reason, they have a non updated MinGW install laying around... and all of that without a single line in the readme , the docs, or anywhere saying.. oh, by the way, if you don't have this and that your rustc won't work.
If the devs feels that Windows isn't a platform they are interested in, then fine, stop releasing broken installers.. it just harms the entire project.

@bors bors closed this as completed in 8bb55db Oct 4, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Jun 30, 2023
[`ptr_arg`]: Don't lint when return type uses `Cow`'s lifetime

Closes rust-lang#9218

changelog: [`ptr_arg`]: Don't lint when return type uses `Cow`'s lifetime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-windows Operating system: Windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants