[MacPorts] #68329: py311-scipy @1.10.1_0+gfortran+openblas not building on Sonoma apple silicon

MacPorts noreply at macports.org
Fri Oct 13 13:22:33 UTC 2023


#68329: py311-scipy @1.10.1_0+gfortran+openblas not building on Sonoma apple
silicon
--------------------------+-----------------------
  Reporter:  quintusdias  |      Owner:  michaelld
      Type:  defect       |     Status:  assigned
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.8.1
Resolution:               |   Keywords:
      Port:  py311-scipy  |
--------------------------+-----------------------

Comment (by bal-agates):

 I get the same error that Chris Jones reports:
 {{{
 duplicate LC_RPATH '/opt/local/lib/libgcc' in
 '/opt/local/lib/libopenblas-r1.dylib'
 }}}
 I am  building on MacBook Pro 2021 (M1) with Sonoma (14.0) with Xcode 15.0
 installed.  Due to a recent [unanticipated] macOS upgrade I deleted all
 MacPorts and tried to rebuild everything.  py311-scipy is one of the few
 ports that didn't build.  I really need this to build QGIS3.

 libopenblas-r1.dylib is provided by port OpenBLAS.  Note that I
 successfully built hugin-app that also depends on port OpenBLAS.  One
 difference I see between between py311-scipy (link problems) and hugin-app
 (builds) is that py311-scipy depends on gcc13.  So I suspect something in
 the linker tool chain.  There appears to be a lot of "magic" in the Apple
 linker tool chain [cached system libraries] that I do not understand.
 Here is what I see on some relevant library paths on my system.

 {{{
 $ otool -L /opt/local/lib/libopenblas-r1.dylib
 /opt/local/lib/libopenblas-r1.dylib:
         /opt/local/lib/libopenblas-r1.dylib (compatibility version 0.0.0,
 current version 0.0.0)
         @rpath/libgfortran.5.dylib (compatibility version 6.0.0, current
 version 6.0.0)
         @rpath/libquadmath.0.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1336.0.0)

 $ otool -L /opt/local/lib/libgcc/libgfortran.5.dylib
 /opt/local/lib/libgcc/libgfortran.5.dylib:
         @rpath/libgfortran.5.dylib (compatibility version 6.0.0, current
 version 6.0.0)
         @rpath/libquadmath.0.dylib (compatibility version 1.0.0, current
 version 1.0.0)
         @rpath/libgcc_s.1.1.dylib (compatibility version 1.0.0, current
 version 1.1.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1336.0.0)

 $ otool -L /opt/local/lib/libgcc/libgcc_s.1.1.dylib
 /opt/local/lib/libgcc/libgcc_s.1.1.dylib (architecture arm64):
         @rpath/libgcc_s.1.1.dylib (compatibility version 1.0.0, current
 version 1.1.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1336.0.0)
 }}}

 Note that "/usr/lib/libSystem.B.dylib" is one of those cached libraries
 that doesn't exist but somehow gets magically resolved.  I am not sure how
 to troubleshoot further.

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


More information about the macports-tickets mailing list