-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Building with VS2017 fails #1424
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
Are you using latest master of OpenBLAS? What is the cmake generator and the options you used? |
Yes, 0.2.20 and I'm following the instructions of point 1 of https://github.com/xianyi/OpenBLAS/wiki/How-to-use-OpenBLAS-in-Microsoft-Visual-Studio |
You need to use openblas git version for that. |
Well, then perhaps change the entry sentence.
|
Hmm, not better
|
flang detection is only with development version |
This was with development version. |
Your version of CMAKE is too old to recognize flang - it seems that the relevant definitions were added to cmake in August as https://gitlab.kitware.com/cmake/cmake/commit/2f3a07a9 so you would need at least CMAKE 3.10.0 |
Actually for recognizing flang on windows, you need the development version of cmake. (Or use the cmake from conda) |
Thanks, updated cmake and advanced quite a bit ... but it stops with hundreds of errors like
A missing slash separator apparently because, for example, the
|
One more try. I hand edited the
|
Did you clean the build directory after changing cmake version? |
No, I hadn't but it makes no difference. Same errors. |
Sorry, cleaned the |
but again, no difference. Still errors. |
I was able to build OpenBLAS (recent commit c7b55b6 from Then, however, there were errors with linking:
Using
to
But that was not all. There was another small bug:
This problem was solved by manually copying |
@vakonovalov, can you remove your changes and try with cmake-3.11.0 and see if it succeeds or not? |
I tried to build OpenBLAS using CMake 3.11.0. The build was successful, there was no need for my intervention in the process. I noticed that the rule
Now it works correctly. Also, there was no need to manually copy So, with CMake 3.11.0 it seems that everything works fine. |
According to #1521, building with VS2017 should work as well with current conda/cmake/ninja/flang |
First error was that it insisted in requiring gfortran so I tricked it my making a symlink with flang.exe.
Next error, which I could not solve is this:
apparently openblas.def should have been generated in previous step, but it wasn't
The text was updated successfully, but these errors were encountered: