<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>Le 9 nov. 2013 à 20:02, Fons Rademakers <<a href="mailto:Fons.Rademakers@cern.ch">Fons.Rademakers@cern.ch</a>> a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Hi Jean-Daniel,<br><br>thanks for the reply. However, it seems putting the libcxx <llvmsource>/projects/ does not work, as shown in config.log:<br><br>configure:3639: WARNING: Unknown project (livcxx) won't be configured automatically</div></blockquote><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">configure:3680: checking build system type<br><br>and even in projects/Makefile it says:<br><br># Don't build libcxx, it isn't designed to be built directly.<br>DIRS := $(filter-out libcxx,$(DIRS))<br><br></div></blockquote><div><br></div>It is expected. The copy of the headers is driven by a Makefile in llvm/tools/clang/runtime/libcxx/</div><div>It only copies the headers during the install step and does not try to rebuild the libc++ binary.</div><div><br><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">so what is the best approach to inject:<br><br>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1/<br><br>as search directory to self compiled clang?<br><br><br>Cheers, Fons.<br><br><br>On 09/11/2013 10:20, Jean-Daniel Dupas wrote:<br><blockquote type="cite">Le 9 nov. 2013 à 01:00, Fons Rademakers <<a href="mailto:Fons.Rademakers@cern.ch">Fons.Rademakers@cern.ch</a>> a écrit :<br><br><blockquote type="cite">Hi,<br><br>when compiling clang (todays trunk) from source on Mavericks, which ships with libc++ in:<br><br>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1/<br><br>and for LLVM configured like this:<br><br>$ /Users/rdm/root/interpreter/llvm/src/configure --prefix=/Users/rdm/root/interpreter/llvm/inst --disable-docs --disable-bindings --disable-visibility-inlines-hidden --enable-libcpp --disable-optimized --enable-targets=host --with-extra-options= CC=clang CXX=clang++ CFLAGS=-m64 CXXFLAGS=-m64<br><br>but that does not seem to be enough as the built clang++ does look for libc++ in:<br><br>…<br>so what config option should I specify to get clang++ to use the one and only copy of libc++, namely the one in:<br><br>/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/c++/v1/<br><br>Should configure not take the libc++ location from the specified CXX compiler? Which indeed is:<br><br>…<br><br>Any suggestions welcome.<br><br><br>Cheers, Fons.<br></blockquote><br>Since Xcode 5 (or Maverick, I'm not sure), libc++ headers are no longer part of the system, but part of the toolchain.<br><br>So Maverick does not ships with C++ header, clang in Xcode does (and it know where to look for its own libc++ headers). If you are using your own clang build, you have to provide libc++ headers yourself.<br><br>Actually, this is easy as it is done automatically by the build system if libcxx is checked out in <llvm source>/projects/<br><br>For the record, libcxx can be checked out using :<br><br>svn co <a href="http://llvm.org/svn/llvm-project/libcxx/trunk">http://llvm.org/svn/llvm-project/libcxx/trunk</a> libcxx<br><br>-- Jean-Daniel<br><br><br><br><br></blockquote><br>--<span class="Apple-converted-space"> </span><br>Org:    CERN, European Laboratory for Particle Physics.<br>Mail:   1211 Geneve 23, Switzerland<br>E-Mail:<span class="Apple-converted-space"> </span><a href="mailto:Fons.Rademakers@cern.ch">Fons.Rademakers@cern.ch</a><span class="Apple-converted-space"> </span>             Phone: +41 22 7679248<br>WWW:    <a href="http://fons.rademakers.org/">http://fons.rademakers.org</a><span class="Apple-converted-space"> </span>          Fax:   +41 22 7669640</div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div>-- Jean-Daniel</div><div><br></div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br></body></html>