[cfe-dev] Clang for Android ARM (wrap-up)

Anton Smirnov dev at antonsmirnov.name
Tue Oct 15 22:53:35 PDT 2013


Hi there.

I'm still trying to compile libclang.so for ARM android and it's just a
hell ;)

* 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.

Is there anyone who did it once (or who can do it) at least (since i'm
android developer and it's pretty difficult to solve all this issues for
me)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131016/daf3b34f/attachment.html>


More information about the cfe-dev mailing list