-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
I've tried to compile OpenBLAS 0.3.27 and 0.3.29 with LLVM 19.1.1 and 20.1.0-rc1 clang/flang-new.
Everything works fine, test suite included, but there seems to be some extra undefined symbols that are usually not present when compiling with GCC
$ nm -D libopenblas.so | grep _Fort
U _FortranAAssign
U _FortranACharacterCompareScalar1
U _FortranAcpowi
U _FortranAExponent4_4
U _FortranAExponent8_4
U _FortranAzpowi
This is causing a problem in the specific when building numpy 1.26.4 on top of OpenBLAS, which seems to be triggered by the library being dlopened without the RTLD_LAZY flag triggering the undefined symbol error (_FortranACharacterCompareScalar1 in the specific case).
It also seems to be related by the problem reported in #4868, specifically the comment by @martin-frbg #4868 (comment).
Not sure if there are some flags for building with flang-new that I am missing, or if this is not the right venue to report this.