[cfe-dev] [LLVMdev] Building clang/llvm without libstdc++ or GPLv3 tools/libraries

Derek Schuff dschuff at google.com
Wed Jan 28 09:16:53 PST 2015


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.

On Wed Jan 28 2015 at 6:42:30 AM Jonathan Roelofs <jroelofs.lists at gmail.com>
wrote:

>
>
> On 1/28/15 4:57 AM, Oza, Hiral wrote:
> > Thank Ismail for quick reply.
> >
> > I read that Linux, we need to build...
> >   (1) libcxx (without libcxxabi) ==> done
> > (2) build libcxxabi ==> failing with following error
> What's the error?
> > (3) and then re-build libcxx
> I don't think you need to build & rebuild libcxx. The correct order is:
>
>    1) build libcxxabi
>    2) build libcxx
>    3) test libcxxabi
>    4) test libcxx
>
> This is because of some unfortunate layering violations in libcxxabi,
> where it depends on the c++ library's headers.  Also, the libcxxabi
> tests depend on libcxx being built.
>
>
> Cheers,
>
> Jon
> >
> > By the way I am building libcxx and libcxxabi Out-of-tree llvm build.
> >
> > Please correct me if I am missing something.
> >
> > Thank you.
> > -Hiral
> >
> >
>
> --
> Jon Roelofs
> jonathan at codesourcery.com
> CodeSourcery / Mentor Embedded
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150128/192c245b/attachment.html>


More information about the cfe-dev mailing list