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

Oza, Hiral Hiral.Oza at netapp.com
Thu Jan 29 03:48:49 PST 2015


I will try your suggestions and get back you in case of any queries.
Thank you for suggestions.
-Hiral

From: Derek Schuff [mailto:dschuff at google.com]
Sent: Wednesday, January 28, 2015 10:47 PM
To: jonathan at codesourcery.com; Oza, Hiral; İsmail Dönmez
Cc: cfe-dev at cs.uiuc.edu; llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Building clang/llvm without libstdc++ or GPLv3 tools/libraries

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<mailto: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<mailto:jonathan at codesourcery.com>
CodeSourcery / Mentor Embedded
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu<mailto: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/20150129/39f033bf/attachment.html>


More information about the cfe-dev mailing list