<div dir="ltr">We ship PNaCl's LLVM on Linux and Mac with libc++ and libc++abi. We build a libc++.so/dylib that includes the libc++abi files directly and doesn't depend on libstdc++ at all (it does depend on libc.so and libgcc_s.so; on mac it only depends on libSystem.B.dylib and not on any external libc++abi). Doing it this way sidesteps any layering issues with libc++ and libc++abi.<br></div><br><div class="gmail_quote">On Wed Jan 28 2015 at 6:42:30 AM Jonathan Roelofs <<a href="mailto:jroelofs.lists@gmail.com">jroelofs.lists@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On 1/28/15 4:57 AM, Oza, Hiral wrote:<br>
> Thank Ismail for quick reply.<br>
><br>
> I read that Linux, we need to build...<br>
> (1) libcxx (without libcxxabi) ==> done<br>
> (2) build libcxxabi ==> failing with following error<br>
What's the error?<br>
> (3) and then re-build libcxx<br>
I don't think you need to build & rebuild libcxx. The correct order is:<br>
<br>
1) build libcxxabi<br>
2) build libcxx<br>
3) test libcxxabi<br>
4) test libcxx<br>
<br>
This is because of some unfortunate layering violations in libcxxabi,<br>
where it depends on the c++ library's headers. Also, the libcxxabi<br>
tests depend on libcxx being built.<br>
<br>
<br>
Cheers,<br>
<br>
Jon<br>
><br>
> By the way I am building libcxx and libcxxabi Out-of-tree llvm build.<br>
><br>
> Please correct me if I am missing something.<br>
><br>
> Thank you.<br>
> -Hiral<br>
><br>
><br>
<br>
--<br>
Jon Roelofs<br>
<a href="mailto:jonathan@codesourcery.com" target="_blank">jonathan@codesourcery.com</a><br>
CodeSourcery / Mentor Embedded<br>
______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/llvmdev</a><br>
</blockquote></div>