[MacPorts] #74336: OpenBLAS fails to build on 10.13 High Sierra

MacPorts noreply at macports.org
Sun Aug 23 13:09:01 UTC 2026


#74336: OpenBLAS fails to build on 10.13 High Sierra
------------------------+-------------------------------
  Reporter:  JohnFHall  |      Owner:  (none)
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.12.5
Resolution:             |   Keywords:  highsierra X86_64
      Port:  openBLAS   |
------------------------+-------------------------------

Comment (by tomio-arisaka):

 On macOS High Sierra (10.13), I can build {{{OpenBLAS 0.3.33}}}.
 So my temporary workaround is to use a copy of the
 "{{{OpenBLAS-0.3.33/CMakeLists.txt}}}" file instead of the
 "{{{OpenBLAS-0.3.34/CMakeLists.txt}}}" file.
 (note: the value of {{{OpenBLAS_PATCH_VERSION}}} which is included in the
 copied file should be changed to {{{34}}})\\

 Of course, I made a patch which was the difference between them, and
 applied it with MacPorts.


 {{{
 $ cp -ip ./OpenBLAS-0.3.34/CMakeLists.txt
 ./OpenBLAS-0.3.34/CMakeLists.txt.orig
 $ sed -e 's|\(set(OpenBLAS_PATCH_VERSION\) 33|\1 34|g'
 ./OpenBLAS-0.3.33/CMakeLists.txt > ./OpenBLAS-0.3.34/CMakeLists.txt
 $ cd ./OpenBLAS-0.3.34/
 $ diff -u CMakeLists.txt.orig CMakeLists.txt > ../patch-
 CMakeLists.txt.diff
 }}}

 The {{{patch-CMakeLists.txt.diff}}} file was installed in {{{$(port dir
 openblas)/files}}}, and the portfile was modified:

 {{{
 $ ls -lt $(port dir openblas)/files
 total 24
 -rw-r--r--  1 maxima  staff  10774  8 21 21:42 patch-CMakeLists.txt.diff
 $
 $ cd $(port dir openblas)
 $
 $ diff -u Portfile~ Portfile
 --- Portfile~   2026-08-17 10:12:00.000000000 +0900
 +++ Portfile    2026-08-21 21:50:09.000000000 +0900
 @@ -49,6 +49,8 @@
                      size    25326686
      revision        0

 +    patchfiles      patch-CMakeLists.txt.diff
 +
      conflicts       OpenBLAS-devel

      if {![variant_isset native]} {
 }}}

 Then I was able to build {{{OpenBLAS 0.3.34}}}:

 {{{
 $ port -v installed openblas and active
 The following ports are currently installed:
   OpenBLAS @0.3.34_0+gcc15+lapack (active) requested_variants=''
 platform='darwin 17' archs='x86_64' date='2026-08-21T22:05:06+0900'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/74336#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list