-
Notifications
You must be signed in to change notification settings - Fork 279
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
__imp___acrt_iob_func linking errors under msys2 #919
Comments
Hmm... It's upstream issue so I'm not sure I can handle it 😓 |
Full build log: buildlog.txt Nightly Rust. Master branch here. Msys2 up to date. GCC 8.2.0. Windows 10 x64 in a unix-like bash environment, basically. |
@Jimmio92 This has been the case for quite a while now. It's because MSYS2 ships GCC 8.x, and Rust itself ships GCC 7.x. I have some experience dealing with this. So basically you have two ways to workaround this issue.
This works until you do a |
crt2.o and crt2dll.o are no longer the name of the now multiple files named crtbegin and crtend, plus some mathematical section of the runtime. So.. I don't know what to do. I guess building Rust from source in this environment would alleviate this problem? |
@Jimmio92 those files still exists. there was a typo however, it's called They're located at(taking 64-bit example on my machine):
And they come with You should use them to replace (I'm using stable, but you might want to change the directory to nightly one):
Also, be careful that since the gcc.exe will be removed as part of rust-mingw, any Rust program's compilation will be using the gcc.exe that comes from MSYS2 mingw64. It will error if it can't find it. |
@Jimmio92 |
@crlf0710 in fact this is because Rust's GCC was build with way older mingw-w64 than MSYS2 (GCC version doesn't matter). |
Hello,
I am trying to build racer from master branch (pulled yesterday) and it seems to be linking both the GNU C library like it should as well as MSVCRT.. and I'm not sure if that's where the problem lies. Basically, it seems this error occurs when a library is built with MSVC tools prior to VS2015 and then used in VS2015.. It also seems to pop up only in a few curl functions. Any ideas?
The text was updated successfully, but these errors were encountered: