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

rustc.exe depends on winpthreads #13501

Closed
klutzy opened this issue Apr 14, 2014 · 9 comments
Closed

rustc.exe depends on winpthreads #13501

klutzy opened this issue Apr 14, 2014 · 9 comments
Assignees

Comments

@klutzy
Copy link
Contributor

klutzy commented Apr 14, 2014

Buildbot seems to use mingw-w64 package from mingw-builds with "thread=posix" option. In this setting, libstdc++-6.dll depends on libwinpthread-1.dll. Thus llvm binaries and rustc.exe/rustdoc.exe depend on it.
The dependency can be dropped by re-installing mingw-builds with "thread=win32" option.

cc @brson @vadimcn

@klutzy
Copy link
Contributor Author

klutzy commented Apr 14, 2014

Side issue: stage0 doesn't have libwinpthread-1.dll now. It causes missing dll error on old mingw setup.

@brson brson self-assigned this Apr 14, 2014
@qoh
Copy link

qoh commented Apr 14, 2014

Using the nightly installer, running rustc always gives "The program can't start because libwinpthread-1.dll is missing from your computer. Try reinstalling the program to fix this problem." for me (can't run at all).

@vadimcn
Copy link
Contributor

vadimcn commented Apr 14, 2014

Oh, that's right, it's coming back to me now: there is a performance bug in winpthreads. I agree, we should use threads=win32.

@brson
Copy link
Contributor

brson commented Apr 14, 2014

I've started updating the bot to use win32 threads.

@brson
Copy link
Contributor

brson commented Apr 15, 2014

I just updated the bots to use win32 threads.

@brson
Copy link
Contributor

brson commented Apr 17, 2014

We have a new snap based on win32 threads. Can anyone confirm this is ok now?

@klutzy
Copy link
Contributor Author

klutzy commented Apr 18, 2014

Yep, it's fixed!

@tomaka
Copy link
Contributor

tomaka commented Sep 14, 2014

This issue is back in the 64 bits windows nightlies.
Starting rustc immediatly pops a missing libwinpthreads-1.dll error.
The 32 bits nightlies are working.

@vadimcn
Copy link
Contributor

vadimcn commented Sep 14, 2014

Yep. Only seems to be a problem with nightlies though, snapshots are OK.
@brson, perhaps the nightly bot got installed with "posix" mingw?

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

Successfully merging a pull request may close this issue.

5 participants