[MacPorts] #58895: OpenBLAS @0.3.7 +native build failure: ld: library not found for -lSystem

MacPorts noreply at macports.org
Wed Aug 28 17:35:08 UTC 2019

#58895: OpenBLAS @0.3.7 +native build failure: ld: library not found for -lSystem
  Reporter:  prbuen    |      Owner:  NicosPavlov
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  OpenBLAS  |

Comment (by prbuen):

 Thanks. I was naively just running
 sudo port install openblas +native
 without specifying `clang-5.0` explicitly (though macports installed it).

 Upon closer inspection, it looks as though the compilation is failing
 during the compilation of tests, since it occurs after:
 :info:build make[1]: Entering directory
 Maybe these tests are not run for the non-native version?

 By the way, I had the same problem trying to install `openblas-devel`
 (which has +native by default).

 To test your suggestion, I removed my symlinks, uninstalled and cleaned
 `openblas`, and reinstalled it with your suggested command
 sudo port install openblas +native configure.compiler=macports-clang-5.0
 but it failed just the same (same reason, same location)

 I have just set up macports newly, and have never installed xcode - only
 the command-line tools. Not sure why `ld` doesn't get the system flags?

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

More information about the macports-tickets mailing list