#49177: clang-3.5: ld: library not found for -lc++ -----------------------------+------------------------ Reporter: carsten.sinz@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: elcapitan Port: clang-3.5 | -----------------------------+------------------------ Changes (by ryandesign@…): * keywords: => elcapitan * owner: macports-tickets@… => jeremyhu@… Old description:
Trying to build clang-3.5 with Xcode 7.0.1 (Build version 7A1001) on OS X El Capitan 10.11 (15A284) fails:
$ sudo port install clang-3.5 \\ ---> Computing dependencies for clang-3.5 \\ ... \\ ---> Building clang-3.5 \\ Error: org.macports.build for port clang-3.5 returned: command execution failed \\ Please see the log file for port clang-3.5 for details: \\ /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.5/clang-3.5/main.log \\ ...\\ Error: Processing of port clang-3.5 failed \\
This seems to be a linker problem related to libc++, as the log file repeatedly contains the lines:
:info:build ld: library not found for -lc++ \\ :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) \\
BTW: Building clang-3.6 on the same system works without a problem.
New description: Trying to build clang-3.5 with Xcode 7.0.1 (Build version 7A1001) on OS X El Capitan 10.11 (15A284) fails: {{{ $ sudo port install clang-3.5 ---> Computing dependencies for clang-3.5 ... ---> Building clang-3.5 Error: org.macports.build for port clang-3.5 returned: command execution failed Please see the log file for port clang-3.5 for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.5/clang-3.5/main.log ... Error: Processing of port clang-3.5 failed }}} This seems to be a linker problem related to libc++, as the log file repeatedly contains the lines: {{{ :info:build ld: library not found for -lc++ :info:build clang: error: linker command failed with exit code 1 (use -v to see invocation) }}} BTW: Building clang-3.6 on the same system works without a problem. -- -- Ticket URL: <https://trac.macports.org/ticket/49177#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X