-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Compilation fails on macOS with clang 12 #2805
Comments
That looks like a typo (or copypasta) in Reference-LAPACK (where OpenBLAS gets most of LAPACK from). I think I saw it before, but it would not terminate the build if you did not have |
I did not explicitly set |
Probably affects all "deprecated" LAPACK functions (which were apparently added to lapack.h as an afterthought), but I am too tired already to prepare a proper fix today. |
With this patch and #2807, Is there further testing I can do easily? I've run |
If you like you can run the full LAPACK testsuite with |
Hum,
|
If it builds the tests but does not run them, you are missing the python interpreter to run lapack-testing.py (or the build system thinks you are cross-compiling, do you see CROSS=1 in Makefile.conf ?) |
OSX does not yet run on aarch64 |
@brada4 he is most likely building on a pre-release Apple system. If CROSS=1 gets set there it is a bug (and probably introduced by me in a recent effort to aid OSX/iOS cross-compilation) |
c_check probably thinks hostarch is arm as it does not expect an uname response of arm64 either... |
Yes I see
mean
correctly detects |
I suggest changing:
to
which works for me (CROSS is not defined anymore after that change). |
Everything looking real good, now:
|
Thx for confirming - #2812 currently adds it to the arm64 line, not sure which is the more readable or elegant |
I believe I have encountered the same problem - see Reference-LAPACK/lapack@127f0bf in Reference-LAPACK/lapack#409. |
Actually I've met with the same problem with older version of macOS even though I have a x86-based Mac. My issue is also resolved in this developing version... |
I think this was closed too early. I get errors while trying to build version 0.3.10 on (Intel) macOS 10.15.6 with clang 12 from XCode 12 and gfortran 10, just doing
and getting exactly the same errors as in the Issue (i.e.
|
So we now have the fresh set of tools on macOS 10.15.6 which don't work with 0.3.10. Time for 0.3.11 ? |
There are still a few open issues that I would like to see fixed (or at least given another look) before 0.3.11, among them the proposed renaming of the new bfloat16 functions from SH.... to SB.... |
could this issue be re-opened? |
Would tagging the issue with the 0.3.11 milestione be sufficient ? I would like to keep the list of open issues somewhat manageable. |
this would do - perhaps, also changing the subject to say in addition |
It is two issues rolled into one, and I still think the lapacke flaw should not stop compilation if your build would not default to |
|
Thanks for the pointer (wonder why the openblas ticket there claims that the problem is "not completely solved" by the patch) |
well, now we know that it does, and I'll fix the description. :-) |
I am building on macOS with clang 12 and gfortran 10, using:
which leads to a build failure:
The text was updated successfully, but these errors were encountered: