<div dir="ltr">Yes, i&#39;ve started from this manual and i&#39;ve tried few dozens of differene build environments including 32/64 bit,<div>different OSs (max, linux) and different toolchains (standalone from ndk, linaro, ubuntu arm toolchain packages).</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/16 Thiago C. Santini <span dir="ltr">&lt;<a href="mailto:qpsantini@gmail.com" target="_blank">qpsantini@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Anton,<div><br></div><div>If you are trying to compile LLVM in your host (i.e. arm-&gt;arm), it seems there is some info <a href="http://llvm.org/docs/HowToBuildOnARM.html" target="_blank">here</a>. Else, if you are trying to cross-compile(i.e. x86-&gt;arm), check <a href="http://llvm.org/docs/HowToCrossCompileLLVM.html" target="_blank">this one</a>.</div>


</div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Wed, Oct 16, 2013 at 8:40 AM, Tinti <span dir="ltr">&lt;<a href="mailto:viniciustinti@gmail.com" target="_blank">viniciustinti@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Anton,<div><br></div><div>I have never tried it but I would suggest you to take a look on Android build system. You probably already know that Android builds a version of LLVM to do some stuff.</div>


<div>
<br></div><div>I don&#39;t know exactly what but Android is able to build LLVM for some purpose. Then you would need to build Clang using this LLVM. This may be the easy way.</div><div><br></div><div>I hope it helps.</div>



<div><br></div><div>Regards,</div><div>Tinti</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 16, 2013 at 8:34 AM, Anton Smirnov <span dir="ltr">&lt;<a href="mailto:dev@antonsmirnov.name" target="_blank">dev@antonsmirnov.name</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, Tinti.<div><br></div><div>I&#39;m trying to compile llvm/clang to work on arm android (host) and compile for arm android (target).</div>



<div>If you targeted to compile USING Clang, then i don&#39;t mind to compile Clang for ARM Android USING Clang on my build machine.</div>
<div><br></div><div>I&#39;ve asked for suggestions or any compilation guide in llvm mail-list but it seems that nobody did it before and there are A LOT of different problems there from not ready sources/configs to my small experience in native tools, toolchains, etc.</div>




<div><br></div><div>So can anybody help to compile Clang for ARM Android?</div><div><br></div><div>Regards, Anton.</div><div><br></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/10/16 Tinti <span dir="ltr">&lt;<a href="mailto:viniciustinti@gmail.com" target="_blank">viniciustinti@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Anton,<div><br></div><div>Are you trying to build LLVM/Clang for Android, I mean have the toolchain inside Android or you are trying to build Android itself with LLVM/Clang?</div>




<div><br></div><div>The LLVMLinux project is more related to build Linux Kernel or Android Kernel *with* LLVM/Clang and not to provide LLVM/Clang *for being used* inside Linux or Android. If you are trying to build a toolchain for Android I would recommend you to ask in LLVM maillist, other wise we have the following quick starts:</div>





<div><br></div><div>- <a href="http://llvm.linuxfoundation.org/index.php/Quick_Start_Guide" target="_blank">http://llvm.linuxfoundation.org/index.php/Quick_Start_Guide</a></div><div>- <a href="http://llvm.linuxfoundation.org/index.php/Nexus_7" target="_blank">http://llvm.linuxfoundation.org/index.php/Nexus_7</a></div>





<div><br></div><div>Regards,</div><div>Tinti</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Wed, Oct 16, 2013 at 4:58 AM, Anton Smirnov <span dir="ltr">&lt;<a href="mailto:dev@antonsmirnov.name" target="_blank">dev@antonsmirnov.name</a>&gt;</span> wrote:<br>





</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello.<div><br></div><div>I&#39;ve tried to compile the subject but no luck.</div>




<div><br></div><div>My wrap-up for attempts:</div>
<div>&quot;<span style="font-family:arial,sans-serif;font-size:13px">* On mac linker does not support &#39;with-version&#39; argument (i&#39;ve asked for it and did not get any solution except DIY)</span></div>
<div style="font-family:arial,sans-serif;font-size:13px">* on linux 64 bit (VM) it&#39;s including &quot;-L/lib64&quot; to linker and it fails to link</div><div style="font-family:arial,sans-serif;font-size:13px">* compiled with armeabihf toolchain can&#39;t be  linked as ndk does not support linking with hard-float.</div>






<div style="font-family:arial,sans-serif;font-size:13px">* compiled with armeabi toolchain can&#39;t be loaded as it fails to find libdl.so.2.</div><div style="font-family:arial,sans-serif;font-size:13px">* compilation with standalone toolchain from android ndk fails because of futimes() and futimens() function not found.</div>






<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Last time i&#39;ve found <a href="https://android.googlesource.com/platform/external/llvm/" target="_blank">https://android.googlesource.com/platform/external/llvm/</a> repo (also externa/clang and external/compiler-rt)</div>






<div><span style="font-family:arial,sans-serif;font-size:13px">but they can&#39;t be compiled using standalone toolchain from ndk because of source code errors (&quot;master&quot; branch because of cast error, &quot;jb-release&quot; because of no getsid() function definition). This repo seems to be internal source code which can be not ready to be used for not android OS developer, so no wonder.</span>&quot;</div>






<div><br></div><div>Can somebody help me or is there step-by-step guide for this?</div><div><br></div><div>Thanks,</div><div>Anton.</div></div>
<br></div></div>_______________________________________________<br>
LLVMLinux mailing list<br>
<a href="mailto:LLVMLinux@lists.linuxfoundation.org" target="_blank">LLVMLinux@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a><span><font color="#888888"><br></font></span></blockquote>
</div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">
Simplicity is the ultimate sophistication<br></div>
</font></span></div>
<br>_______________________________________________<br>
LLVMLinux mailing list<br>
<a href="mailto:LLVMLinux@lists.linuxfoundation.org" target="_blank">LLVMLinux@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a><br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
LLVMLinux mailing list<br>
<a href="mailto:LLVMLinux@lists.linuxfoundation.org" target="_blank">LLVMLinux@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">



Simplicity is the ultimate sophistication<br></div>
</div>
</div></div><br>_______________________________________________<br>
LLVMLinux mailing list<br>
<a href="mailto:LLVMLinux@lists.linuxfoundation.org" target="_blank">LLVMLinux@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br></div>
</div>Atenciosamente / Kind Regards<br>

<br>Thiago Caberlon Santini<br>Computer Engineer - Federal University of Rio Grande do Sul<br><br>Website:   <a href="http://www.inf.ufrgs.br/~tcsantini/" target="_blank">http://www.inf.ufrgs.br/~tcsantini/</a><br>PGP-Key: <a href="http://www.inf.ufrgs.br/~tcsantini/tcsantini.asc" target="_blank">http://www.inf.ufrgs.br/~tcsantini/tcsantini.asc</a><br>



</div>
<br>_______________________________________________<br>
LLVMLinux mailing list<br>
<a href="mailto:LLVMLinux@lists.linuxfoundation.org">LLVMLinux@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux</a><br></blockquote></div><br></div>