You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 -Werror set. Almost certainly the LAPACKE_?ggsvp prototypes in lapack.h should read LAPACK_?ggsvp without the "E" like everything else in that file. I'll prepare a PR for both projects after testing.
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, make CC=clang FC=gfortran all succeeds to build.
Is there further testing I can do easily? I've run make checks but while it does not complain, it's also not saying anything positive (like “N/N tests passed” or …)
If you like you can run the full LAPACK testsuite with make lapack-test (requires python for the driver script however), this should show "close to" zero failures in the summary. (There is usually a single elusive "numerical error" each in REAL and COMPLEX)
Hum, make lapack-test is not giving me any summary. It builds stuff, but that's it:
$ make lapack-test
(cd ./lapack-netlib/TESTING && rm -f x* *.out)
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make -j 8 -j 1 -C ./lapack-netlib/TESTING/EIG xeigtstc xeigtstd xeigtsts xeigtstz
make[1]: `xeigtstc' is up to date.
make[1]: `xeigtstd' is up to date.
make[1]: `xeigtsts' is up to date.
make[1]: `xeigtstz' is up to date.
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/make -j 8 -j 1 -C ./lapack-netlib/TESTING/LIN xlintstc xlintstd xlintstds xlintstrfd xlintstrfz xlintsts xlintstz xlintstzc xlintstrfs xlintstrfc
make[1]: `xlintstc' is up to date.
make[1]: `xlintstd' is up to date.
make[1]: `xlintstds' is up to date.
make[1]: `xlintstrfd' is up to date.
make[1]: `xlintstrfz' is up to date.
make[1]: `xlintsts' is up to date.
make[1]: `xlintstz' is up to date.
make[1]: `xlintstzc' is up to date.
make[1]: `xlintstrfs' is up to date.
make[1]: `xlintstrfc' is up to date.
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 ?)
@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)
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
make -j8 CC=clang FC=gfortran all
and getting exactly the same errors as in the Issue (i.e.
clang -O2 -DMAX_STACK_ALLOC=2048 -DEXPRECISION -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DNO_WARMUP -DMAX_CPU_NUMBER=8 -DMAX_PARALLEL_NUMBER=1 -DVERSION="0.3.10" -UASMNAME -UASMFNAME -UNAME -UCNAME -UCHAR_NAME -UCHAR_CNAME -DASMNAME=_ -DASMFNAME=__ -DNAME=_ -DCNAME= -DCHAR_NAME="_" -DCHAR_CNAME="" -DNO_AFFINITY -I. -DHAVE_LAPACK_CONFIG_H -I../include -c -o lapacke_zggsvp.o lapacke_zggsvp.c
lapacke_cggsvp_work.c:52:9: error: implicit declaration of function 'cggsvp_' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
LAPACK_cggsvp( &jobu, &jobv, &jobq, &m, &p, &n, a, &lda, b, &ldb, &tola,
^
../include/lapack.h:3771:23: note: expanded from macro 'LAPACK_cggsvp'
#define LAPACK_cggsvp LAPACK_GLOBAL(cggsvp,CGGSVP)
^
../include/lapacke_mangling.h:12:39: note: expanded from macro 'LAPACK_GLOBAL'
#define LAPACK_GLOBAL(lcname,UCNAME) lcname##_
^
<scratch space>:228:1: note: expanded from here
cggsvp_
^
...
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....
this would do - perhaps, also changing the subject to say in addition macOS intel and arm platforms to make sure people don't confuse it for an arm-only issue
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 -Werror for some reason.
(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. :-)
Indeed, a part of the "not completely solved" confusion is that the issue appears to task only ARM.
ghost added a commit that references this issue on Sep 30, 2020
Activity
martin-frbg commentedon Aug 31, 2020
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
-Werrorset. Almost certainly the LAPACKE_?ggsvp prototypes in lapack.h should read LAPACK_?ggsvp without the "E" like everything else in that file. I'll prepare a PR for both projects after testing.fxcoudert commentedon Aug 31, 2020
I did not explicitly set
-Werror, so it may be the default here or something in the makefiles added it.martin-frbg commentedon Aug 31, 2020
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.
fxcoudert commentedon Aug 31, 2020
With this patch and #2807,
make CC=clang FC=gfortran allsucceeds to build.Is there further testing I can do easily? I've run
make checksbut while it does not complain, it's also not saying anything positive (like “N/N tests passed” or …)martin-frbg commentedon Aug 31, 2020
If you like you can run the full LAPACK testsuite with
make lapack-test(requires python for the driver script however), this should show "close to" zero failures in the summary. (There is usually a single elusive "numerical error" each in REAL and COMPLEX)fxcoudert commentedon Aug 31, 2020
Hum,
make lapack-testis not giving me any summary. It builds stuff, but that's it:martin-frbg commentedon Sep 1, 2020
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 ?)
brada4 commentedon Sep 1, 2020
OSX does not yet run on aarch64
You need to set HOSTCC=clang to build for iOS, or remove TARGET of non-native architecture.
martin-frbg commentedon Sep 1, 2020
@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)
martin-frbg commentedon Sep 1, 2020
c_check probably thinks hostarch is arm as it does not expect an uname response of arm64 either...
fxcoudert commentedon Sep 1, 2020
Yes I see
CROSS=1inMakefile.conf. I did not set it manually, and I am not cross-compiling (this is indeed running on a macOS pre-release system).uname -mreturnsarm64on macOS (instead of the usualaarch64😢), then these two lines inc_check:mean
hostarchbecomesarm(instead ofarm64). Later, this:correctly detects
architectureasarm64, leading the script to think it's cross-compiling.fxcoudert commentedon Sep 1, 2020
I suggest changing:
to
which works for me (CROSS is not defined anymore after that change).
fxcoudert commentedon Sep 1, 2020
Everything looking real good, now:
2 remaining items
h-vetinari commentedon Sep 2, 2020
I believe I have encountered the same problem - see https://github.com/Reference-LAPACK/lapack/pull/409/commits/127f0bfa04ba1f327fcea63f1771fe4fc5537048 in https://github.com/Reference-LAPACK/lapack/pull/409.
zhiyuanzhai commentedon Sep 14, 2020
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...
dimpase commentedon Sep 22, 2020
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.
In fact, applying the patch for
lapack.hfrom Fix misnaming of LAPACK_?ggsvp and ?ggsvd function prototypes as LAPACKE_ in lapack.h #2808 to 0.3.10 makes it build just fine.dimpase commentedon Sep 22, 2020
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 ?
martin-frbg commentedon Sep 22, 2020
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....
dimpase commentedon Sep 22, 2020
could this issue be re-opened?
martin-frbg commentedon Sep 22, 2020
Would tagging the issue with the 0.3.11 milestione be sufficient ? I would like to keep the list of open issues somewhat manageable.
dimpase commentedon Sep 22, 2020
this would do - perhaps, also changing the subject to say in addition
macOS intel and arm platformsto make sure people don't confuse it for an arm-only issuemartin-frbg commentedon Sep 22, 2020
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
-Werrorfor some reason.dimpase commentedon Sep 22, 2020
-Werroris the default setting of Apple's clang 12 for .implicit declarationerrors, we are now seeing it all over the placemartin-frbg commentedon Sep 22, 2020
Thanks for the pointer (wonder why the openblas ticket there claims that the problem is "not completely solved" by the patch)
dimpase commentedon Sep 22, 2020
well, now we know that it does, and I'll fix the description. :-)
Indeed, a part of the "not completely solved" confusion is that the issue appears to task only ARM.
openblas: Backport and add fix for OpenMathLib/OpenBLAS#2805
openblas: Backport and add fix for OpenMathLib/OpenBLAS#2805