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