[MacPorts] #52396: clang-3.7 build fails on Sierra
#52396: clang-3.7 build fails on Sierra --------------------------+-------------------------------- Reporter: ibethune@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: clang sierra | Port: clang-3.7 --------------------------+-------------------------------- 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) }}} -- Ticket URL: <https://trac.macports.org/ticket/52396> MacPorts <https://www.macports.org/> Ports system for macOS
#52396: clang-3.7 build fails on Sierra -------------------------+------------------------ Reporter: ibethune@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: sierra Port: clang-3.7 | -------------------------+------------------------ Changes (by mf2k@…): * owner: macports-tickets@… => jeremyhu@… * cc: larryv@… (added) * keywords: clang sierra => sierra Comment: In the future, please Cc the port maintainers ({{{port info --maintainers clang-3.7}}}), if any. -- Ticket URL: <https://trac.macports.org/ticket/52396#comment:3> MacPorts <https://www.macports.org/> Ports system for macOS
#52396: clang-3.7 build fails on Sierra -------------------------+------------------------ Reporter: ibethune@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: sierra Port: clang-3.7 | -------------------------+------------------------ Changes (by jeremyhu@…): * status: new => closed * resolution: => invalid Comment: You need to use the +ld64_xcode variant until Apple releases Xcode 8's ld64 sources -- Ticket URL: <https://trac.macports.org/ticket/52396#comment:4> MacPorts <https://www.macports.org/> Ports system for macOS
#52396: clang-3.7 build fails on Sierra -------------------------+------------------------ Reporter: ibethune@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: sierra Port: clang-3.7 | -------------------------+------------------------ Comment (by ibethune@…): 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) -- Ticket URL: <https://trac.macports.org/ticket/52396#comment:5> MacPorts <https://www.macports.org/> Ports system for macOS
#52396: clang-3.7 build fails on Sierra -------------------------+------------------------ Reporter: ibethune@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: sierra Port: clang-3.7 | -------------------------+------------------------ Comment (by jeremyhu@…): What's the output of : {{{ ls -l /opt/local/libexec/ld64/ld }}} -- Ticket URL: <https://trac.macports.org/ticket/52396#comment:6> MacPorts <https://www.macports.org/> Ports system for macOS
#52396: clang-3.7 build fails on Sierra -------------------------+------------------------ Reporter: ibethune@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: sierra Port: clang-3.7 | -------------------------+------------------------ Comment (by ibethune@…): {{{ 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 }}} -- Ticket URL: <https://trac.macports.org/ticket/52396#comment:7> MacPorts <https://www.macports.org/> Ports system for macOS
#52396: clang-3.7 build fails on Sierra -------------------------+------------------------ Reporter: ibethune@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: sierra Port: clang-3.7 | -------------------------+------------------------ Comment (by jeremyhu@…): Which indicates that you're not using the +ld64_xcode variant of ld64. Please install ld64 with the +ld64_xcode variant. -- Ticket URL: <https://trac.macports.org/ticket/52396#comment:8> MacPorts <https://www.macports.org/> Ports system for macOS
#52396: clang-3.7 build fails on Sierra -------------------------+------------------------ Reporter: ibethune@… | Owner: jeremyhu@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: invalid | Keywords: sierra Port: clang-3.7 | -------------------------+------------------------ Comment (by ibethune@…): Thanks Jeremy, all working now :) -- Ticket URL: <https://trac.macports.org/ticket/52396#comment:9> MacPorts <https://www.macports.org/> Ports system for macOS
participants (1)
-
MacPorts