The following web say the libc++abi is ready on arm.http://libcxxabi.llvm.org/spec.html I try to build libc++ and libc++abi for host x86_64(linux) and target arm(linux) but fail.I have read the web http://llvm.org/docs/HowToCrossCompileLLVM.html Does anyone know whether it's available for my need? If you know how to build, what is the build options you use? Best regards cschen -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140930/d2a90c39/attachment.html>
Richard Pennington
2014-Sep-30 09:22 UTC
[LLVMdev] Can libc++ build for arm cross compiler?
On 09/30/2014 02:37 AM, gamma_chen wrote:> The following web say the libc++abi is ready on arm. > http://libcxxabi.llvm.org/spec.html > > I try to build libc++ and libc++abi for host x86_64(linux) and target > arm(linux) but fail. > I have read the web http://llvm.org/docs/HowToCrossCompileLLVM.html > > Does anyone know whether it's available for my need? If you know how > to build, what is the build options you use? >I use libc++ and libc++abi (as well as compiler-rt) for the ELLCC cross compilation tool chain project (http://ellcc.org). I use makefiles to build the libc++ stuff, which are pretty dependent on being used in an ELLCC environment. You can get pre built binaries from ftp://ellcc.org/pub. The tarballs contain pre built libraries for ARM (as well as Mips, x86, PowerPC, and semi-functional Microblaze). -Rich -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140930/5121a75a/attachment.html>
Hi cschen, Here are the test scripts which I written when I was developing ARM exception handling support: https://github.com/loganchien/libcxx-scripts The script should work on Debian wheezy (cross-compiling from amd64 to armhf.) In general, here are the necessary steps: 1. Get a working arm-linux-gnueabihf gcc/g++ toolchain (for the headers and libraries) 2. Setup the include search path (e.g. /usr/arm-linux-gnueabihf/include) 3. Compile with correct compiler/linker flags (e.g. -target arm-linux-gnueabihf and some cmake tricks) Feel free to let me know if you have encountered any problem. Sincerely, Logan On Tue, Sep 30, 2014 at 5:22 PM, Richard Pennington <rich at pennware.com> wrote:> On 09/30/2014 02:37 AM, gamma_chen wrote: > > The following web say the libc++abi is ready on arm. > http://libcxxabi.llvm.org/spec.html > > I try to build libc++ and libc++abi for host x86_64(linux) and target > arm(linux) but fail. > I have read the web http://llvm.org/docs/HowToCrossCompileLLVM.html > > Does anyone know whether it's available for my need? If you know how to > build, what is the build options you use? > > I use libc++ and libc++abi (as well as compiler-rt) for the ELLCC cross > compilation tool chain project (http://ellcc.org). I use makefiles to > build the libc++ stuff, which are pretty dependent on being used in an > ELLCC environment. You can get pre built binaries from ftp://ellcc.org/pub. > The tarballs contain pre built libraries for ARM (as well as Mips, x86, > PowerPC, and semi-functional Microblaze). > > -Rich > > _______________________________________________ > 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/20141001/49a369b2/attachment.html>
> > I try to build libc++ and libc++abi for host x86_64(linux) and target > arm(linux) but fail. >Failing in what way? If this isn't working out of the box, we've done something wrong. jroelofs might know more... -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141003/2d0f2434/attachment.html>
On 10/3/14 10:16 AM, Dan Albert wrote:>> >> I try to build libc++ and libc++abi for host x86_64(linux) and target >> arm(linux) but fail. >> > > Failing in what way? If this isn't working out of the box, we've done > something wrong.Yeah, it would help to know more specifics about where you're getting stuck.> > jroelofs might know more...For my baremetal arm toolchain, I use buildit&testit for libc++abi, and buildit&lit for libc++... Which is a bit different than what you'll get out of using cmake for it. Also, I've customized both buildits, the testit, and libc++'s lit config file to do this, and those changes are very specific to my environment (I don't recommend using buildit/testit to build either library unless you're working on porting them to a new platform. Even then, just do it the "right way" with cmake, and don't be stupid like me ;] ). Cheers, Jon -- Jon Roelofs jonathan at codesourcery.com CodeSourcery / Mentor Embedded
Apparently Analagous Threads
- [LLVMdev] Can libc++ build for arm cross compiler?
- [LLVMdev] Can libc++ build for arm cross compiler?
- [LLVMdev] Can libc++ build for arm cross compiler?
- [LLVMdev] [RFC] Progress report on CMake build system's ability to replace autoconf
- [LLVMdev] [RFC] Progress report on CMake build system's ability to replace autoconf