Oza, Hiral
2015-Jan-28 11:57 UTC
[LLVMdev] Building clang/llvm without libstdc++ or GPLv3 tools/libraries
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 (3) and then re-build libcxx 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 -----Original Message----- From: İsmail Dönmez [mailto:ismail at donmez.ws] Sent: Wednesday, January 28, 2015 5:17 PM To: Oza, Hiral Cc: cfe-dev at cs.uiuc.edu; llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] Building clang/llvm without libstdc++ or GPLv3 tools/libraries On Wed, Jan 28, 2015 at 1:31 PM, Oza, Hiral <Hiral.Oza at netapp.com> wrote:> Greetings!!! > > > > Could you please suggest ways to build clang/llvm without libstdc++? > > In short, to avoid using GPLv3 libraries or tools while building clang/llvm.Have a look at libc++ (http://libcxx.llvm.org/), you can use it in place of libstdc++. ismail
Jonathan Roelofs
2015-Jan-28 14:39 UTC
[LLVMdev] Building clang/llvm without libstdc++ or GPLv3 tools/libraries
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 errorWhat's the error?> (3) and then re-build libcxxI 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
Derek Schuff
2015-Jan-28 17:16 UTC
[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> 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/llvm-dev/attachments/20150128/192c245b/attachment.html>