[MacPorts] #65575: [OSX 10.6.8] -- Error: Failed to build ld64-274: command execution failed

MacPorts noreply at macports.org
Sun Jul 31 17:28:03 UTC 2022


#65575: [OSX 10.6.8] -- Error: Failed to build ld64-274: command execution failed
-----------------------+--------------------
  Reporter:  lawlist   |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:
      Port:  ld64-274  |
-----------------------+--------------------

Comment (by kencu):

 during bootstrap on 10.6 (and 10.5) the rust port, via the cargo
 portgroup, then via the rust portgroup, will download a bootstrap cargo
 binary from Marcus' personal github repo here:

 https://github.com/MarcusCalhoun-Lopez/rust/releases/

 that bootstrap cargo is hard-coded to look for it's libraries in
 /opt/local :

 {{{
 % otool -L cargo
 cargo:
         /opt/local/lib/libiconv.2.dylib (compatibility version 9.0.0,
 current version 9.1.0)
         /System/Library/Frameworks/Security.framework/Versions/A/Security
 (compatibility version 1.0.0, current version 55471.14.40)
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 (compatibility version 150.0.0, current version 855.17.0)
 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
 (compatibility version 1.0.0, current version 596.15.0)
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.12)
         /opt/local/libexec/openssl11/lib/libssl.1.1.dylib (compatibility
 version 1.1.0, current version 1.1.0)
         /opt/local/libexec/openssl11/lib/libcrypto.1.1.dylib
 (compatibility version 1.1.0, current version 1.1.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1197.1.1)
         /usr/lib/libresolv.9.dylib (compatibility version 1.0.0, current
 version 1.0.0)
 }}}

 So to use that prebuilt cargo bootstrap binary with an alternate prefix,
 you will need to make it happy somehow.

 Either install all those libraries it wants into "/opt/local", or use
 install_name_tool to change the library locations in the cargo binary
 itself.

 This port, at present, cannot be installed in an alternate prefix on <
 10.7 at least.

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


More information about the macports-tickets mailing list