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
msvcr140.dll has been replaced with vcruntime140.dll #76716
Comments
File msvcr140.dll does not exist after installing Microsoft Visual C++ 2015 Redistributable or Visual Studio 2015. It has been replaced with vcruntime140.dll. See discussion here: https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/yLH46ilPQeo In addition, I was only able to build an extension (https://github.com/mattjj/pyhsmm) after copying the vcruntime140.dll from the Python installation folder (Anaconda 3 5.0.1 64-bit, Python 3.6.3) to the libs folder. I also had to change file include/pyconfig.h by removing the definitions of hypot (#880). In sum, I suggest replacing return ['msvcr140'] with return ['vcruntime140'] |
Where is that code? Presumably in distutils, and yet distutils has worked just fine for the 3.5 and 3.6 releases. Perhaps you can clarify the bug report into something we can understand and investigate? That only thing in that thread I see that matches your suggestion is code that somebody *added* to distutils and found that it doesn't work (as expected). |
Steve, I tried building the pyhsmm project (https://github.com/mattjj/pyhsmm) using: python setup.py build -c mingw32 I got a link error saying that -lmsvcr140 could not be found. Then I realized that msvcr140.dlll doesn't exist. Instead, vcruntime140.dll seems to be the correct DLL. I was only able to build that project after making the modifications mentioned in my previous message, which requires changing a few files. In order to try to reproduce the problem, one should try to build that project after installing Visual C++ 2015 Redistributable or Visual Studio 2015 to fall into the same MSVC version case as mine. Does this clarify the issue? |
A little bit. You're trying to build with mingw32? Do they support linking against the UCRT? |
Correct. I installed the x86_64 version from mingw32-w64 (https://mingw-w64.org, v5.0.3). I found this post https://mingwpy.github.io/ucrt.html, which actually references a post of yours. I honestly don't know if UCRT is supported by MinGW compiler. What are you going for? After googling a lot, I found many complaints of "missing msvcr140.dll", so I'm pretty much convinced that doesn't exist and has been replaced. But what does this have to do with the UCRT business? This is a bit beyond my knowledge on the matter. :) |
The CRT isn't a simple DLL anymore, and MinGW isn't a fully supported compiler either. You're going to be best to work with the people behind mingwpy to get it working, as there really isn't anything we can do on our end (though I do what I can to help them out, short of committing code). As I understand it, work on mingwpy has basically stopped right now for a variety of reasons, and most projects have found ways to work with MSVC. I'm going to close this bug as external. When there is something for us to change in core, then we can consider it. (About the only thing worth doing right now is fully removing the mingw support to avoid confusion, but there's no value in that so why bother.) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: