[MacPorts] #74022: OpenBLAS @0.3.32+gcc15+lapack+native: Clang misoptimization leads to SIGILL

MacPorts noreply at macports.org
Fri May 22 13:50:56 UTC 2026


#74022: OpenBLAS @0.3.32+gcc15+lapack+native:  Clang misoptimization leads to
SIGILL
-----------------------------+----------------------
 Reporter:  Chengcheng-Xiao  |      Owner:  (none)
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:  2.12.5
 Keywords:                   |       Port:  OpenBLAS
-----------------------------+----------------------
 See: https://github.com/OpenMathLib/OpenBLAS/issues/5818

 Clang with optimization level higher than `-O0` misoptimizes zgetrf.
 Leading to SIGILL for fortran code when compiled using gfortran with
 `-ffpe-trap=zero`.

 This can be fixed in two ways:

 1. Lower the optimization level to `-O0`.
 2. Change compiler to gcc.

 This port already has a gcc variant from `Portgroup compilers` but does
 not set `CC`, `CXX`, `OBJCC` and `OBJCXX` to use gcc suite.

 A simple fix would be something like:


 {{{
 variant gcc15 description {Build using GCC 15} {
     depends_build-append \
         port:gcc15

     configure.compiler macports-gcc-15

     build.args-append \
         CC=${prefix}/bin/gcc-mp-15 \
         CXX=${prefix}/bin/g++-mp-15 \
         OBJC=${prefix}/bin/gcc-mp-15 \
         OBJCXX=${prefix}/bin/g++-mp-15 \
         FC=${prefix}/bin/gfortran-mp-15
 }
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/74022>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list