Opened 9 years ago

Closed 9 years ago

#49171 closed defect (fixed)

clang-3.8: ld: library not found for -lc++

Reported by: capponi.francesco87@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: elcapitan Cc: kurtjaeke@…, akimd (Akim Demaille), maehne (Torsten Maehne), lee@…
Port: clang-3.8

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi, I was trying to install clang-3.8 and every time I get the following error message.

--->  Building clang-3.8
Error: org.macports.build for port clang-3.8 returned: command execution failed
Please see the log file for port clang-3.8 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/clang-3.8/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port clang-3.8 failed

The problem seems repeating even if I try to install an older version, like clang-3.7 I've already tried to clean and rebuild, or uninstall and rebuild: the result is always the same

I attach the log file

Attachments (2)

main.log (13.3 MB) - added by capponi.francesco87@… 9 years ago.
: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/clang-3.8/main.log
main.2.log (338.0 KB) - added by akimd (Akim Demaille) 9 years ago.
Failure of clang 3.7 on Yosemite

Change History (9)

Changed 9 years ago by capponi.francesco87@…

Attachment: main.log added

: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-3.8/clang-3.8/main.log

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: elcapitan added; clang-3.8 not working removed
Owner: changed from macports-tickets@… to jeremyhu@…
Summary: clang-3.8 fails on El Capitanclang-3.8: ld: library not found for -lc++

To fix this, run:

sudo port install ld64 +ld64_xcode

comment:2 Changed 9 years ago by kurtjaeke@…

Cc: kurtjaeke@… added

Cc Me!

comment:3 Changed 9 years ago by akimd (Akim Demaille)

Cc: akim.demaille@… added

Cc Me!

comment:4 Changed 9 years ago by akimd (Akim Demaille)

I have had the exact same problem with clang-3.7 for quite a while now. The workaround suggested by Ryan addressed the issue, thanks.

Oh, and I'm not under El Capitan, this is still Yosemite.

Changed 9 years ago by akimd (Akim Demaille)

Attachment: main.2.log added

Failure of clang 3.7 on Yosemite

comment:5 Changed 9 years ago by maehne (Torsten Maehne)

Cc: Torsten.Maehne@… added

Cc Me!

comment:6 Changed 9 years ago by lee@…

Cc: lee@… added

Cc Me!

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

Resolution: fixed
Status: newclosed

This was fixed some weeks ago.

Note: See TracTickets for help on using tickets.