[llvm-dev] Help Building LLVM for Android

Justin Giannone via llvm-dev llvm-dev at lists.llvm.org
Sat Jun 8 08:59:49 PDT 2019


Hey Guys,

I'm working on a project in Android related to System-level Audio DSP
Effects for Tuning Android Audio.  I want to leverage Faust (
https://faust.grame.fr/) to allow users to program their own filters.
Faust provides a libfaust implementation which includes a JIT Compiler
which leverages LLVM and seems to be the best path for me to use.
Unfortunately I'm having problems cross-compiling LLVM for Android on my
Windows Dev machine.  Wondering if anyone has any advice for me?

I've been trying to use the android-ndk cmake & toolchains to build LLVM so
that I can cross-compile Faust against the Android LLVM build.  I've
managed to get Android's cmake to generate an Android Gradle Ninja project,
but when I try to build it I get lots of errors that seem to indicate that
the Ninja project is invalid, such as the following errors :

FAILED: cmTC_4a28c.exe
>
>   cmd.exe /C "cd .  &&
>
> C:\Users\jgiannone\AppData\Local\Android\Sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\bin\clang.exe
>   CMakeFiles/cmTC_4a28c.dir/testCCompiler.c.obj -o cmTC_4a28c.exe
>   -Wl,--out-implib,libcmTC_4a28c.dll.a
>   -Wl,--major-image-version,0,--minor-image-version,0 -lkernel32 -luser32
>   -lgdi32 -lwinspool -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32
>   -ladvapi32 && cd ."
>
>   clang: error: unable to execute command: program not executable
>
>   clang: error: linker command failed with exit code 1 (use -v to see
>   invocation)
>
>   ninja: build stopped: subcommand failed.
>

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190608/86baa6b0/attachment-0001.html>


More information about the llvm-dev mailing list