<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi</div><div><br></div>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: <a href="https://hub.docker.com/r/plotfi/llvm-pi">https://hub.docker.com/r/plotfi/llvm-pi</a><div><br></div><div>My quick steps here <a href="https://github.com/plotfi/llvm-pi/blob/master/Quick-Steps.md">https://github.com/plotfi/llvm-pi/blob/master/Quick-Steps.md</a> are for building the llvm-test-suite for arm64 but they can be repurposed for building clang for arm64 too. </div><div><br></div><div>Hope this helps</div><div><br></div><div>-Puyan</div><div><div><div><br><div dir="ltr">Sent from my iPhone</div><div dir="ltr"><br><blockquote type="cite">On Aug 13, 2020, at 4:33 AM, Dongdong Yang via cfe-dev <cfe-dev@lists.llvm.org> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">May I ask how to build clang for arm on x86 linux ubuntu box? And how to use <span style="color:rgb(31,35,41);font-family:"Helvetica Neue",Tahoma,"PingFang SC","Microsoft Yahei",Arial,"Hiragino Sans GB",sans-serif;font-size:14px;white-space:pre-wrap;background-color:rgb(245,246,247)">sysroot</span> to cross compile clang <span style="color:rgb(31,35,41);font-family:"Helvetica Neue",Tahoma,"PingFang SC","Microsoft Yahei",Arial,"Hiragino Sans GB",sans-serif;font-size:14px;white-space:pre-wrap;background-color:rgb(245,246,247)">libc++</span> for arm on x86 linux? Appreciate any guidance. <div><br></div><div>Thanks,</div><div>Andy</div></div>
<span>_______________________________________________</span><br><span>cfe-dev mailing list</span><br><span>cfe-dev@lists.llvm.org</span><br><span>https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</span><br></div></blockquote></div></div></div></body></html>