Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#35757 closed defect (duplicate)

clang-2.9, clang-3.0, clang-3.1, clang-3.2: problems with "libc++"

Reported by: michael.lehn@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: clang-2.9, clang-3.0, clang-3.1, clang-3.2

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

clang++ compilers (any version) installed with MacPorts have problems when C++11 are being used. That's because the C++11 can not be found.

I attached a simple C++ source file with 3 lines of code. It can not be compiled with an MacPort installation of any clang compiler. Try

clang++ main.cc

#fails because one header is c++11 specific

clang++ -std=c++11 main.cc

#fails because <type_traits> can not be found

clang++ -std=c++11 -stdlib=libc++ main.cc

#fails because <complex> can not be found

Please understand, a clang++ installation that can not be used with C++11 is pretty useless.

The problem was discussed on the clang developer mailing list: http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-August/023867.html

Douglas Gregor <dgregor@…> says: "MacPorts needs to start installing libc++ headers relative to the clang binaries it installs; they can look at where those headers land in an Xcode-installed Clang."

Attachments (1)

main.cc (56 bytes) - added by michael.lehn@… 12 years ago.

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by michael.lehn@…

Attachment: main.cc added

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

Description: modified (diff)
Owner: changed from macports-tickets@… to jeremyhu@…
Port: clang-2.9 clang-3.0 clang-3.1 clang-3.2 added
Priority: HighNormal
Summary: clang in MacPorts has problems with "libc++"clang-2.9, clang-3.0, clang-3.1, clang-3.2: problems with "libc++"

comment:2 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: duplicate
Status: newclosed

Yeah, this is a dupe of something else. I have a radar open about it and need to follow up on it...

comment:3 Changed 12 years ago by michael.lehn@…

dupe of what ticket? I would like to get a chance to get a notice once this issue is fixed.

comment:4 Changed 12 years ago by jeremyhu (Jeremy Huddleston Sequoia)

comment:5 Changed 12 years ago by michael.lehn@…

Thanks!

Note: See TracTickets for help on using tickets.