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

MacPorts noreply at macports.org
Wed May 2 16:27:50 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++  |  
-----------------------------------------------------------------------+----
Changes (by jeremyhu@…):

  * status:  assigned => closed
  * resolution:  => worksforme


Comment:

 You're missing --stdlib

 $ /opt/local/bin/clang++-mp-3.0 -I/opt/local/include -c test.cxx
 --stdlib=libc++ --std=c++0x -v
 clang version 3.0 (tags/RELEASE_30/final)
 Target: x86_64-apple-darwin11.4.0
 Thread model: posix
  "/opt/local/libexec/llvm-3.0/bin/clang" -cc1 -triple x86_64-apple-
 macosx10.7.4 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier
 -main-file-name test.cxx -pic-level 1 -mdisable-fp-elim -masm-verbose
 -munwind-tables -target-cpu core2 -target-linker-version 127.2 -v
 -coverage-file test.o -resource-dir
 /opt/local/libexec/llvm-3.0/bin/../lib/clang/3.0 -I /opt/local/include
 -fmodule-cache-path /var/folders/kd/lg174pm94bz417bmp5vv57j80000gn/T
 /clang-module-cache -stdlib=libc++ -std=c++0x -fdeprecated-macro -ferror-
 limit 19 -fmessage-length 125 -stack-protector 1 -fblocks -fobjc-runtime-
 has-arc -fobjc-runtime-has-weak -fobjc-dispatch-method=mixed -fcxx-
 exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
 test.o -x c++ test.cxx
 clang -cc1 version 3.0 based upon llvm 3.0 hosted on x86_64-apple-
 darwin11.4.0
 ignoring nonexistent directory
 "/opt/local/libexec/llvm-3.0/bin/../lib/c++/v1"
 ignoring nonexistent directory "/usr/local/include"
 #include "..." search starts here:
 #include <...> search starts here:
  /opt/local/include
  /usr/include/c++/v1
  /opt/local/libexec/llvm-3.0/bin/../lib/clang/3.0/include
  /usr/include
  /System/Library/Frameworks (framework directory)
  /Library/Frameworks (framework directory)
 End of search list.

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


More information about the macports-tickets mailing list