-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
julia make fails with newest mingw (4.8.1) due to not passing the correct parameters to openblas make #3287
Comments
Cross-compilation works after changing the relevant
to make it work on my OS. I don't submit a pull request because I don't know if there is a consensus to make cross-compilation compatible with as many systems as possible at this stage; to make the above change permanent one would have to add the above statement between lines 659-692 of |
On older gcc, the issue was that the code compiled fine, but failed the test suite for numerical issues. The newer version appears to be just missing a compile flag? Thanks for this detective work!
I expect this should work on all OS cross-build combinations. I can add it later today.
Sure, can you submit a pull request? |
Yes, I think it is just the compile flag that is missing, but to be able to answer your question, will need to do some more digging. After the openblas
I am aware that this new error has been reported before here: So I will have to try out the solution proposed in the above thread in order to see whether the rest of the Julia cross-compilation completes successfully. I will do this and will also submit the pull request for the cross-compilation of Windows on Arch within the next couple of days. |
I git-cloned Julia to cross-compile from scratch; I don't know if I should submit this as a separate issue (and also don't know if it implicitly relates to the OpenBLAS issue, which has been resolved after making the above change to
Any ideas what may be causing this error? I may have to change sth in |
I think this means that you can't execute windows binaries without calling wine. That would have been a kernel compile option. I think this can be easily fixed by replacing the call to |
The Windows.mk file is for the windows nmake compiler. The cross-compile works entirely through gmake |
Great, the Julia
to
Would it be useful to make this change permanent? After |
I submitted the pull request with the updated instructions to include Arch cross-compilation. May I close this issue? |
It is mentioned in README.windows.md that Julia does not make properly with gcc<4.6 due to OpenBLAS problems. Nevertheless, it turns out that the issue persists even when one uses the newest version (4.8.1) of mingw-gcc (x86_64-w64-mingw32-gcc) for cross-compilation. For this reason, I git-cloned OpenBLAS separately, and the issue now has been resolved by replacing the OpenBLAS
make
withSee
OpenMathLib/OpenBLAS#226
for more details re the OpenBLAS proper compilation with the newest mingw-gcc compiler.
The reason I opened this Julia issue is because I want to see how the Julia makefile can be adapted so as to invoke the OpenBLAS make with the above appropriate parameters.
P.S. On a second note, I have notes for cross-compiling Julia on Arch Linux for Windows, in case you would like to extend the cross-compilation instructions in README.windows.md for Linux OS other than Ubuntu.
The text was updated successfully, but these errors were encountered: