-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Cimpile OpenBLAS 0.2.20 Failed under Windows 10 X64 with msys2 #1306
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
Is this the only message you got ? Creating the link happens late in the build process... |
Please remove bold formatting |
The error message as following: My GCC informaation: |
I encountered the same problem when compiling OpenBLAS-0.2.20 using MSYS2 + MingW64. At the end of August, I have encountered this problem, so I switched to CMake + VisualStudio plan. But for some reason, I want to use MingW32(64) to get OpenBLAS compilation done. I retried today but sadly got the same error. Error log(MSYS2 + MingW64): make[1]: Warning: File '../libopenblas_nehalemp-r0.2.20.a' has modification time 0.69 s in the future Static library seems to be created, but I want to get the libopenblas.dll and libopenblas.dll.a . Moreover, I can't compile openBLAS 0.2.20 using MSYS2 + mingw32 . I forgeted to copy the error log. It was said like this: gfortran -mincoming-stack-boundary=2 is not between 3 and 12. I forcefully changed mincoming-stack-boundary to 3, then the compiler died by segment fault. It is really wired. Finally I tried MSYS and MingW32 to compile libopenblas.dll and libopenblas.dll.a . Luckily, it is passed. |
I have done some search, I was told to do "make clean" first. I tried to make clean at the beginning, but still |
Could it be you are (both) missing the "w32api" package in your mingw installation ? (BTW I fixed the formatting in the first message - inline "markdown" styling certainly has some surprises for those not familiar with it) |
Future time might be caused by using network share on server with time not in sync setting access time using its own clock. Get both client and server syncing from same time source. Try this: Now upload typescript file. |
@brada4 I doubt this is a timestamp issue, as both assert and cprintf will be provided by a system library. |
Linux virtual machine works (for me) in all cases. It needs pthread and gfortran dll-s from compact mingw there. Either can be missing in mingw. |
I compiled in the same PC machine. I think the timestamp warning is related to the fact that I used ramdisk to compile the code. It seems no such warnning when I compile the code in harddrive space. |
@martin-frbg I have already inmsys/msys2-w32api-headers and msys/msys2-w32api-runtime |
I install latest MSYS2 with GCC 7.2.0 tool chain and can compile openBLAS 0.2.20 |
@brada4 I just installed mingw-w64-x86_64-gcc-fortran,and it works! Thanks! |
strategist922 I used mingw64 + msys2. There is libopenblas.dll in the source folder. |
@AttufliX Oh...I found it, thanks |
@brada4 good catch. Seems the wiki page is not at all clear on which parts of mingw need to be installed for building OpenBLAS, and that confused/confusing error message from the linker may even warrant an entry in the faq ? |
It should skip all fortran components (LAPACK) in absence of compiler and hopefully wrongly set compiler too. |
It certainly should, I wonder if either there is a breakdown of the Makefile logic (requiring libgfortran in the tests although it was found to be absent in the build phase), or - more likely IMHO - it is possible to install a mingw gfortran without the associated libraries. (Sort of like some Linux distributions split it into a main "gcc-gfortran" and separate "gfortran-devel" or "libgfortran" package). The wiki page only states to "install" mingw-w64 without detailing the process or the list of components. |
@martin-frbg I will add proper command to faq this or next week. I think the hidden issue is that native gfortran here is almost identical to cross-gfortran and if they get mixed up it is not exactly producing absolutely invalid module. |
I think it is very necessary to point out installing mingw-w64-x86_64-gcc-fortran explicitly. |
Yup, I will just list what is needed on top of smallest possible mingw install. |
Without gfortran, there should have been a warning about only being able to build the BLAS component, and the tests should not have been built. So this situation can only come about if there is something else somewhere in the executable search path that acts like gfortran but is not usable for the mingw build. |
I was thinking of what FAQ this is and came to conclusion that: |
@martin-frbg This is my pacman log. [2017-08-30 19:06] [ALPM] installed gcc-fortran (6.3.0-1) It's clear that gcc-fortran cannot compile the the LAPACK part of openBLAS, but mingw-w64-x86_64-gcc-fortran could. |
gcc and gfortran should be from same package. |
I have now modified the wiki page a bit:
|
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I try to use MSYS2 to compile OpenBLAS 0.2.20, with following flags, but it show me error ag begining
Does anyone know how to solve this issus?
thanks in advance!
The text was updated successfully, but these errors were encountered: