#52396 closed defect (invalid)
clang-3.7 build fails on Sierra
Reported by: | ibethune (Iain Bethune) | Owned by: | jeremyhu (Jeremy Huddleston Sequoia) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | sierra | Cc: | larryv (Lawrence Velázquez) |
Port: | clang-3.7 |
Description
Attemping to install clang-3.7 after upgrading to Mac OS X Sierra (from a clean install of macports), I run into the following error:
Iains-MacBook-Pro:genefer ibethune$ sudo port install clang-3.7 Password: ---> Computing dependencies for clang-3.7 ---> Building clang-3.7 Error: org.macports.build for port clang-3.7 returned: command execution failed Please see the log file for port clang-3.7 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port clang-3.7 failed
I attach the file /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/main.log
in which the problem seems to be a linking error:
: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: linker command failed with exit code 1 (use -v to see invocation)
Attachments (2)
Change History (11)
Changed 8 years ago by ibethune (Iain Bethune)
comment:1 Changed 8 years ago by ibethune (Iain Bethune)
Cc: | ibethune@… added |
---|
comment:3 Changed 8 years ago by mf2k (Frank Schima)
Cc: | larryv@… added |
---|---|
Keywords: | clang removed |
Owner: | changed from macports-tickets@… to jeremyhu@… |
In the future, please Cc the port maintainers (port info --maintainers clang-3.7
), if any.
comment:4 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Resolution: | → invalid |
---|---|
Status: | new → closed |
You need to use the +ld64_xcode variant until Apple releases Xcode 8's ld64 sources
comment:5 Changed 8 years ago by ibethune (Iain Bethune)
Thanks Jeremey, but the same seems to occur when I install the +ld64_xcode variant:
Iains-MacBook-Pro:genefer ibethune$ sudo port clean clang-3.7 Password: Sorry, try again. Password: ---> Cleaning clang-3.7 Iains-MacBook-Pro:genefer ibethune$ sudo port install clang-3.7 +ld64_xcode ---> Computing dependencies for clang-3.7 ---> Fetching archive for clang-3.7 ---> Attempting to fetch clang-3.7-3.7.1_4+analyzer.darwin_16.x86_64.tbz2 from https://packages.macports.org/clang-3.7 ---> Attempting to fetch clang-3.7-3.7.1_4+analyzer.darwin_16.x86_64.tbz2 from http://lil.fr.packages.macports.org/clang-3.7 ---> Attempting to fetch clang-3.7-3.7.1_4+analyzer.darwin_16.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/clang-3.7 ---> Fetching distfiles for clang-3.7 ---> Verifying checksums for clang-3.7 ---> Extracting clang-3.7 ---> Applying patches to clang-3.7 ---> Configuring clang-3.7 ---> Building clang-3.7 Error: org.macports.build for port clang-3.7 returned: command execution failed Please see the log file for port clang-3.7 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.7/clang-3.7/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port clang-3.7 failed
Updated log file attached (but seems to be the same error as before)
Changed 8 years ago by ibethune (Iain Bethune)
Attachment: | main.2.log added |
---|
log file from clang-3.7 +ld64_xcode build
comment:6 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)
What's the output of :
ls -l /opt/local/libexec/ld64/ld
comment:7 Changed 8 years ago by ibethune (Iain Bethune)
Iains-MacBook-Pro:genefer ibethune$ ls -l /opt/local/libexec/ld64/ld lrwxr-xr-x 1 root admin 9 12 Sep 11:15 /opt/local/libexec/ld64/ld -> ld-latest Iains-MacBook-Pro:genefer ibethune$ ls -l /opt/local/libexec/ld64/ld-latest -rwxr-xr-x 1 root admin 1738032 12 Sep 11:15 /opt/local/libexec/ld64/ld-latest
comment:8 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)
Which indicates that you're not using the +ld64_xcode variant of ld64. Please install ld64 with the +ld64_xcode variant.
Cc Me!