-
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
can't find crate for std
on mingw-w64-32bit
#10329
Comments
Found! It's mingw/libuv issue. libuv uses
mingw uses:
Yes, no |
Quick fix - #if defined(_MSC_VER)
+ #if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
swprintf(path2, len + 3, fmt, pathw);
#else
swprintf(path2, fmt, pathw);
#endif |
This seems fixed in upstream. |
cc @alexcrichton (for the libuv upgrade). |
Closing #10246 will fix this one too, but it's currently waiting for joyent/libuv#979 to land. |
Oh, this goes more complicated than I expected. Upstream libuv will make rustc crash if not built carefully. msvc and mingw-w64 provide posix-conforming This means we must define the macro on building libuv. If not, libuv crashes on |
Currently the easiest fix is to pass |
@alexcrichton libuv fixed it by avoiding |
I have upgraded and this'll close when my uv-rewrite branch merges (hopefully soon!) |
Not sure what caused it.
make clean
didn't help.The text was updated successfully, but these errors were encountered: