-
Notifications
You must be signed in to change notification settings - Fork 162
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
Link fails with msys2/multirust #42
Comments
Yeah unfortunately I'd recommend MSVC for now. This is an unfortunate interaction where the linker that we're bundling is incompatible with the system linker. Specifically, the miniz library is getting compiled with the system gcc, but we're linking with the bundled gcc, and those two libraries are incompatible, causing this link error. I'm surprised though that the libz.a feature didn't work? Maybe the installed version is for the wrong architecture? You can fix this with a few methods:
The latter should allow you to run in the same environment you currently are and target executables for mingw. |
I just hit this trying to add in gzip decoding into reqwest. I'm not sure I could make a release that no longer works on mingw Windows... Is this something that cannot be fixed in this crate? |
At least for now I know of nothing this crate can do. My "solution" is to install MSVC rust and then add a MinGW target, but it's definitely not a great solution. |
This hasn't come up in quite awhile, so I'm going to close this. There's only so much a crate like this can do to "fix" the environment, but in a situation like this I don't think there's much more we can do. |
FYI: I ran into similar problem on another crate, but it's related -- MSVC rust wouldn't work for me because one of the crate dependencies uses pkg-config which bails out on MSVC. I used the GNU to work around it, but now I don't know what to do about linking problem. |
I can't get an executable to link using either back end.
With miniz,
__assert_func
can't be found:And with zlib, the linker can't find
-lz
even though '/usr/lib/libz.a
' exists:I'm not sure whether these problems are related to flate2's build script or msys2, but I'll try using an msvc toolchain in the meantime.
The text was updated successfully, but these errors were encountered: