[MacPorts] #57994: OpenBLAS compilation fails on MacBook Pro MacOS 10.14

MacPorts noreply at macports.org
Fri Feb 1 22:22:59 UTC 2019


#57994: OpenBLAS compilation fails on MacBook Pro MacOS 10.14
-------------------------+-------------------------
  Reporter:  Tim-at-AST  |      Owner:  NicosPavlov
      Type:  defect      |     Status:  closed
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.5.4
Resolution:  invalid     |   Keywords:
      Port:  OpenBLAS    |
-------------------------+-------------------------

Comment (by kencu):

 Here is your error:
 {{{
 :info:build /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall
 -frecursive -m64   -o sblat1 sblat1.o ../libopenblas-r1.a -lpthread
 -lgfortran -lpthread -lgfortran
 :info:build ld: library not found for -lSystem
 :info:build collect2: error: ld returned 1 exit status
 :info:build make[1]: *** [sblat1] Error 1
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_OpenBLAS/OpenBLAS/work/OpenBLAS-0.3.5/test'
 }}}
 You can see for yourself what it happening, if you like.

 Go into the noted directory:
 {{{
 cd
 /_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_OpenBLAS/OpenBLAS/work/OpenBLAS-0.3.5/test
 }}}
 open up the permissions a bit
 {{{
 sudo chmod -R a+rw .
 }}}
 and then run your command:
 {{{
 /opt/local/bin/gfortran-mp-8 -O3 -m128bit-long-double -Wall -frecursive
 -m64   -o sblat1 sblat1.o ../libopenblas-r1.a -lpthread -lgfortran
 -lpthread -lgfortran
 }}}
 it will most likely fail with the noted inability to find `-lSystem`
 (which is a basic system library that is apparently not being found where
 gcc8 is expecting it to be found.

 Then you can get more info by doing something like this, to see where gcc8
 and the linker are looking:
 {{{
 /opt/local/bin/gfortran-mp-8 -v -Wl,-v -O3 -m128bit-long-double -Wall
 -frecursive -m64   -o sblat1 sblat1.o ../libopenblas-r1.a -lpthread
 -lgfortran -lpthread -lgfortran
 }}}

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


More information about the macports-tickets mailing list