Skip to content

Conversation

@Thyre
Copy link
Contributor

@Thyre Thyre commented Nov 18, 2025

Based on the discussion in #5536


When building OpenBLAS on aarch64 with LLVM Flang, tests would segmentation fault when building with INTERFACE64='1'. IIUC, this happens due to a mismatch in integer size between Fortran and C.

Looking at Makefile.system, only GFortran and the old Flang are checked with INTERFACE64. So for flang-new / flang, no compiler flag is added. Checking flang-new 18 and newer, it seems to understand the -fdefault-integer-8 flag, just like GFortran.

Therefore, change the tests slightly to also add -fdefault-integer-8 for FLANGNEW.


This PR does not touch the CMake installation of OpenBLAS. At the first glance, this flag might be added there already, but this needs more investigation. I wanted to get this to work for the Makefile build first...

Signed-off-by: Jan André Reuter <jan@zyten.de>
@martin-frbg
Copy link
Collaborator

CMake is good, I "only" forgot to push Makefile.system at the time...

@martin-frbg martin-frbg added this to the 0.3.31 milestone Nov 18, 2025
@martin-frbg martin-frbg merged commit a51a1b8 into OpenMathLib:develop Nov 18, 2025
22 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants