[MacPorts] #68400: esmf @8.5.0: ld: duplicate LC_RPATH '/opt/local/lib/libgcc' in '/opt/local/lib/libnetcdff.7.dylib'

MacPorts noreply at macports.org
Sun Dec 3 04:14:01 UTC 2023


#68400: esmf @8.5.0: ld: duplicate LC_RPATH '/opt/local/lib/libgcc' in
'/opt/local/lib/libnetcdff.7.dylib'
-------------------------+--------------------
  Reporter:  ekinakoglu  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  sonoma
      Port:  esmf ncarg  |
-------------------------+--------------------

Comment (by Dave-Allured):

 Please look closely.  There are TWO DIFFERENT LC_RPATH messages coming
 from the v15 linker, and they mean two completely different things.  In
 the current context, one is a harmless warning, the other is a fatal
 error.  Taken directly from the quoted log file above:

 {{{
 :info:build ld: warning: duplicate -rpath '/opt/local/lib' ignored
 }}}

 This one is only a warning.  This is complaining about options specified
 on the CURRENT linker command line.  For example, see line 16 in the above
 log file quote.
 {{{
 :info:build ld: duplicate LC_RPATH '/opt/local/lib/libgcc' in
 '/opt/local/lib/libnetcdff.7.dylib'
 }}}
 This is the real error.  This is complaining about the contents of a
 PREVIOUSLY BUILT FILE, namely **/opt/local/lib/libnetcdff.7.dylib**.  This
 problem can be solved by building **libnetcdff** without duplicate
 LC_RPATH's, thereby making it compatible with Xcode 15.

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


More information about the macports-tickets mailing list