Changes between Initial Version and Version 1 of Ticket #59794


Ignore:
Timestamp:
Dec 2, 2019, 6:26:58 PM (4 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

The log says the reason for the crash was:

:info:build collect2: fatal error: ld terminated with signal 6 [Abort trap: 6]
:info:build compilation terminated.
:info:build dyld: Library not loaded: /opt/local/libexec/llvm-3.9/lib/libLTO.dylib
:info:build   Referenced from: /opt/local/bin/ld
:info:build   Reason: image not found

It seems your ld is still linked with an llvm 3.9 library, although llvm 3.9 was made obsolete. The llvm39 variant was removed from the ld64 port, but the revision was not increased, leaving any users who had the port installed with that variant with broken installations.

There are several subports of ld64 that provide different versions of ld64. Since you're on Sierra, you're probably using ld64-latest, and you could fix the immediate problem by reinstalling ld64-latest with a newer llvm variant. (See port variants ld64-latest for the available options.)

However ld64-latest is not actually that new: it currently contains the version of ld64 that shipped with Xcode 8.2.1. Your log shows you are using Xcode 9.2, so using ld64 from Xcode 8.2.1 with that may not always work.

Until we update ld64-latest to a newer version, it's probably better to install the ld64 port with the +ld64_xcode variant, so that MacPorts will just use the ld64 from Xcode itself:

sudo port install ld64 +ld64_xcode

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59794

    • Property Status changed from new to assigned
    • Property Cc michaelld removed
    • Property Summary changed from py36-scipy crashes during build upon upgrade outdated to ld64: dyld: Library not loaded: /opt/local/libexec/llvm-3.9/lib/libLTO.dylib
    • Property Owner set to jeremyhu
    • Property Port ld64 added; py36-scipy removed
  • Ticket #59794 – Description

    initial v1  
    22I tried to clean and redo, same, to de-install and re-install, same.
    33
    4 {{{bash-3.2$ sudo port clean py36-scipy
     4{{{
     5bash-3.2$ sudo port clean py36-scipy
    56--->  Cleaning py36-scipy
    67bash-3.2$ sudo port upgrade outdated
     
    1718Error: Failed to build py36-scipy: command execution failed
    1819Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-scipy/py36-scipy/main.log for details.
    19 Error: Follow https://guide.macports.org/#project.tickets to report a bug.}}}
     20Error: Follow https://guide.macports.org/#project.tickets to report a bug.
     21}}}