-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Build failure with MinGW-w64 gcc 5.2.0 #29649
Comments
Huh. Could this be due to the difference between the 'win32' and 'posix' flavors of mingw-w64? If it's the latter,we are probably missing libpthread link dependency. |
Oh, right, of course! Hm that kinda sucks though because it means that the default gcc packages in MinGW are no longer usable to build Rust. Does MSYS2 provide win32 threaded gcc implementations? |
Nope, the only way (that I've found) to install win32-threaded gcc is through mingw-builds installer. |
Hm ok, in that case I'm gonna switch this to a docs bug, we basically need to document that using an external package is not only recommended but it's the only option in a case like this as it's not something upstream's gonna fix (unlike the LLVM-wont-build-and-may-segfault bug) |
Same problem here with 4.9.0. I haven't touched my install in ages. |
Can someone help me out here? I'm assuming this needs to be in the README, yeah? What exactly do we need to say? |
Basically, we need to remove this line (and the next) and instead instruct devs to download mingw-builds installer, and choose the threads=win32,exceptions=dwarf/seh flavor (and probably version < 5.0 for now - because of #28260). Finally, they'll need to add its \mingw32\bin (or ...\mingw64\bin - depending on bit-ness) to search path. |
I'm building MXE ( http://mxe.cc/ ) and I'd like to link with some code cross compiled with rust. My MXE is mingw-gcc build is posix threads and dwarf exceptions. Is it a good idea to if I call some code from a dll that has win32 threading model ( rust ) from a code with posix model or it doesn't matter? |
Updated description
We need to document that the standard MSYS2 package for gcc will not work when building Rust, you have to install a custom toolchain with a known good version and the win32 threading model, not the pthread threading model.
Original report
Looks related to #29177, perhaps the
gcc_eh
library picked up new dependencies in 5.2.0?cc @vadimcn
The text was updated successfully, but these errors were encountered: