Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#54506 closed defect (duplicate)

clang-3.7 @3.7.1_5: ld: unexpected token: !tapi-tbd-v2

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: larryv (Lawrence Velázquez), cjones051073 (Chris Jones)
Port: clang-3.7

Description

macOS Sierra 10.12.5
Xcode 8.3.3

:info:build ld: unexpected token: !tapi-tbd-v2 file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib/libc++abi.tbd' for architecture x86_64
:info:build ld: unexpected token: !tapi-tbd-v2 file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib/libc++abi.tbd' for architecture i386
:info:build clang: error: unable to execute command: Segmentation fault: 11
:info:build clang: error: linker command failed due to signal (use -v to see invocation)
$ port -v installed cctools ld64 ld64-latest llvm-3.7 llvm-3.9
The following ports are currently installed:
  cctools @895_4+llvm39+universal (active) platform='darwin 16' archs='i386 x86_64' date='2017-01-03T17:43:31-0600'
  ld64 @3_0+universal (active) platform='darwin 16' archs='i386 x86_64' date='2016-12-27T16:46:25-0600'
  ld64-latest @274.2_1+llvm39+universal (active) platform='darwin 16' archs='i386 x86_64' date='2017-03-14T15:52:06-0500'
  llvm-3.7 @3.7.1_4+universal (active) platform='darwin 16' archs='i386 x86_64' date='2017-07-20T10:06:25-0500'
  llvm-3.9 @3.9.1_3+universal (active) platform='darwin 16' archs='i386 x86_64' date='2017-03-04T07:46:20-0600'

Attachments (1)

main.log.bz2 (95.3 KB) - added by ryandesign (Ryan Carsten Schmidt) 7 years ago.

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log.bz2 added

comment:1 Changed 7 years ago by cjones051073 (Chris Jones)

Cc: cjones051073 added

comment:2 Changed 7 years ago by michaellass (Michael Lass)

I think this is related to #53784. As a workaround, you can install ld64 with the +ld64_xcode variant. After that llvm-3.7 builds fine.

By the way: If you are compiling llvm-3.7 because you need to build xorg-server, you may face another issue later on: #54504.

Last edited 7 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 7 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: duplicate
Status: newclosed

comment:4 Changed 6 years ago by ken-cunningham-webuse

In 5698d9483b44984a826d0f41154a4381b7957223/macports-ports (master):

ld64: default to +ld64_xcode on Xcode9+

ld64 does not understand tapi in the open-source
versions at present.

closes: #56843
closes: #53784
closes: #56398
closes: #56277
see: #56647
see: #54510
see: #54506
see: #53151

Note: See TracTickets for help on using tickets.