[cfe-dev] Consult how to cross compile clang for arm on x86 linux ubuntu box

Puyan Lotfi via cfe-dev cfe-dev at lists.llvm.org
Thu Aug 20 02:45:57 PDT 2020


You’ll want an arm64 Linux sysroot and an arm64 libcxx. I have a docker setup on docker hub for building a cross build toolchain for arm64 that you can look at: https://hub.docker.com/r/plotfi/llvm-pi

My quick steps here https://github.com/plotfi/llvm-pi/blob/master/Quick-Steps.md are for building the llvm-test-suite for arm64 but they can be repurposed for building clang for arm64 too. 

Hope this helps


Sent from my iPhone

> On Aug 13, 2020, at 4:33 AM, Dongdong Yang via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> May I ask how to build clang for arm on x86 linux ubuntu box? And how to use  sysroot  to cross compile clang  libc++  for arm on x86 linux?   Appreciate any guidance. 
> Thanks,
> Andy
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200820/85238cf4/attachment.html>

More information about the cfe-dev mailing list