[MacPorts] #63899: gfortran missing @rpath

MacPorts noreply at macports.org
Wed Nov 10 10:30:16 UTC 2021


#63899: gfortran missing @rpath
----------------------+--------------------
 Reporter:  mdekauwe  |      Owner:  (none)
     Type:  defect    |     Status:  new
 Priority:  Normal    |  Milestone:
Component:  ports     |    Version:
 Keywords:            |       Port:
----------------------+--------------------
 Hi,

 I have built gfortran fine (sudo port install gcc10 +gfortran) without
 errors. I have used it to successfully compile code; however, when it runs
 it complains:

 {{{
 dyld: Library not loaded: @rpath/libgfortran.5.dylib
 }}}

 As best I can tell, this relates to the path not being expanded at run
 time. If I check it...


 {{{
 $ 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/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 1292.100.5)
 }}}

 Any assistance would be greatly appreciated.

 This is on a 2020 M1 MacBook if that affects anything.

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


More information about the macports-tickets mailing list