-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Build mlir failed in Windows #171
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
Comments
Seems like your issues are related to MinGW and the standard library. I don't know enough about MinGW to help you on this. |
Good point. I will try visual studio c++ instead. Will report whether it works soon. Thank you for answering! |
My team does regularly build and use MLIR on Windows with Visual Studio
2019 (both VC/cl and clang-cl).
If I had to guess (and it is a complete guess), something in your MinGW
setup is not causing an appropriate -std= copt to be passed and it may be
falling back to a pre-c++-11 standard (some of your reported errors are
reminiscent of that sort of mismatch). I've personally found CMake on
windows to be quite fiddly when it comes to configuring it to use different
compilers and there is usually an option or two that needs to be set. I
don't know what that would be in this case.
…On Thu, Mar 12, 2020 at 10:03 PM Chun-Wei Chen ***@***.***> wrote:
Seems like your issues are related to MinGW and the standard library. I
don't know enough about MinGW to help you on this.
The windows fix you saw recently were MSVC related, I doubt it would help.
Good point. I will try visual studio c++ instead. Will report whether it
works soon. Thank you for answering!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#171 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADYVADVKECO3SUIWNN4ACDRHG5CLANCNFSM4LG2C6OA>
.
|
Your issue is most probably that you've got a GCC/MinGW setup that uses win32 threading model, which doesn't support C++11 threads. For native toolchains, there's often separate installs for ones with the pthreads/posix threading model, which do support C++11 threads. For cross toolchains on e.g. debian/ubuntu, both are often available in tandem, where you can call either |
Thank you all for the answering. I kept failing on MinGW so I tried to build it in Visual Studio C++ command line and it seems work. (Pass all test except one Unexpected Failures) |
…erm/FortranDrop002 Initial Flang-new drop 001
Here are commands for my mlir build:
However, I bumped into some errors while executing the last command. (cmake --build . --target check-mlir)
It seems like a version issue, but I do not know the proper version. I am using cmake-3.17.0-rc2-win64-x64, ninja v1.10.0, latest MinGW and latest Windows 10.
I saw that there are some updates for fixing Windows issue today. I was wondering that is latest repo works well in Windows? How can I fix my errors?
Thanks!
The text was updated successfully, but these errors were encountered: