[llvmlinux] Compile LLVM/Clang for ARM android

Tinti viniciustinti at gmail.com
Wed Oct 16 11:27:45 UTC 2013


Hi Anton,

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?

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:

- http://llvm.linuxfoundation.org/index.php/Quick_Start_Guide
- http://llvm.linuxfoundation.org/index.php/Nexus_7

Regards,
Tinti


On Wed, Oct 16, 2013 at 4:58 AM, Anton Smirnov <dev at antonsmirnov.name>wrote:

> Hello.
>
> I've tried to compile the subject but no luck.
>
> My wrap-up for attempts:
> "* On mac linker does not support 'with-version' argument (i've asked for
> it and did not get any solution except DIY)
> * on linux 64 bit (VM) it's including "-L/lib64" to linker and it fails to
> link
> * compiled with armeabihf toolchain can't be  linked as ndk does not
> support linking with hard-float.
> * compiled with armeabi toolchain can't be loaded as it fails to find
> libdl.so.2.
> * compilation with standalone toolchain from android ndk fails because of
> futimes() and futimens() function not found.
>
> Last time i've found
> https://android.googlesource.com/platform/external/llvm/ repo (also
> externa/clang and external/compiler-rt)
> but they can't be compiled using standalone toolchain from ndk because of
> source code errors ("master" branch because of cast error, "jb-release"
> 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."
>
> Can somebody help me or is there step-by-step guide for this?
>
> Thanks,
> Anton.
>
> _______________________________________________
> LLVMLinux mailing list
> LLVMLinux at lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/llvmlinux
>



-- 
Simplicity is the ultimate sophistication
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/llvmlinux/attachments/20131016/118e0840/attachment.html>


More information about the LLVMLinux mailing list