[MacPorts] #34288: clang ports use the old/dated libstdc++ from the host (gcc-4.2 based)

MacPorts noreply at macports.org
Sun May 13 08:25:59 PDT 2012


#34288: clang ports use the old/dated libstdc++ from the host (gcc-4.2 based)
-----------------------------------------------------------------------+----
  Reporter:  christophe.prudhomme@…                                    |       Owner:  jeremyhu@…           
      Type:  defect                                                    |      Status:  closed               
  Priority:  Normal                                                    |   Milestone:                       
 Component:  ports                                                     |     Version:  2.0.4                
Resolution:  worksforme                                                |    Keywords:                       
      Port:  clang-2.9 clang-3.0 clang-3.1 clang-3.2 libstdc++ libc++  |  
-----------------------------------------------------------------------+----

Comment(by stephen@…):

 From what I can gather from this bug, unlike gcc 4.6/7, MacPorts clang
 doesn't carry its own standard libraries. It's using the header files and
 libraries from the system. It's not an issue with OS X 10.7 since it comes
 with compatible headers and libraries. But on 10.6 there's no system
 libc++ and its accompanying headers.

 For non-C++11 code, it's OK since clang just use the GCC ones. But once
 -std=c++0x and -stdlib=libc++ are enabled, it will fail compiling any
 files.

 Similar issue occurs when trying to build project deployable to 10.6 on
 10.7.

-- 
Ticket URL: <https://trac.macports.org/ticket/34288#comment:9>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list