Venkata Suneel Kota
2013-Jul-17 14:53 UTC
[LLVMdev] regarding compiling clang for different platform
Hi, I am new to LLVM I want to use llvm and clang on Android, I have downloaded android toolchain and did the configure for llvm using the following commad ./configure --build=arm-linux-androideabi --host=arm-linux-androideabi --target=arm-linux-androideabi --with-float=hard --with-fpu=neon --enable-targets=arm --enable-optimized --enable-assertions and was getting the error "checking build system type... Invalid configuration `arm-linux-androideabi': system `androideabi' not recognized configure: error: /bin/bash autoconf/config.sub arm-linux-androideabi failed" i modified the command available in the following link http://llvm.org/releases/3.3/docs/HowToBuildOnARM.html ./configure --build=armv7l-unknown-linux-gnueabihf \ --host=armv7l-unknown-linux-gnueabihf \ --target=armv7l-unknown-linux-gnueabihf --with-cpu=cortex-a9 \ --with-float=hard --with-abi=aapcs-vfp --with-fpu=neon \ --enable-targets=arm --enable-optimized --enable-assertions can any one help me on how to do it... Thanks in Advance.. Have A Nice Day..... Thanks & Regards chanakya -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130717/c6d93096/attachment.html>
Renato Golin
2013-Jul-18 07:37 UTC
[LLVMdev] regarding compiling clang for different platform
Hi Venkata, Some folks are working on Clang+LLVM to work on Android on a separate project called LLVMLinux: http://llvm.linuxfoundation.org/index.php/Main_Page There you can find a lot of information on how to build Android with Clang, and find the modified trees for the kernel and userland, as well as LLVM to compile and boot on your device. Feel free to join the mailing list and ask the same question, I'm sure they'll be able to help. cheers, --renato On 17 July 2013 15:53, Venkata Suneel Kota <chanakya.sun at gmail.com> wrote:> Hi, > I am new to LLVM > I want to use llvm and clang on Android, I have downloaded android > toolchain and did the configure for llvm using the following commad > ./configure --build=arm-linux-androideabi --host=arm-linux-androideabi > --target=arm-linux-androideabi --with-float=hard --with-fpu=neon > --enable-targets=arm --enable-optimized --enable-assertions > > and was getting the error > "checking build system type... Invalid configuration > `arm-linux-androideabi': system `androideabi' not recognized > configure: error: /bin/bash autoconf/config.sub arm-linux-androideabi > failed" > > i modified the command available in the following link > http://llvm.org/releases/3.3/docs/HowToBuildOnARM.html > > > ./configure --build=armv7l-unknown-linux-gnueabihf \ > --host=armv7l-unknown-linux-gnueabihf \ > --target=armv7l-unknown-linux-gnueabihf --with-cpu=cortex-a9 \ > --with-float=hard --with-abi=aapcs-vfp --with-fpu=neon \ > --enable-targets=arm --enable-optimized --enable-assertions > > > can any one help me on how to do it... > Thanks in Advance.. > Have A Nice Day..... > > Thanks & Regards > chanakya > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130718/7a66345b/attachment.html>
Tim Northover
2013-Jul-18 07:50 UTC
[LLVMdev] regarding compiling clang for different platform
Hi Venkata,> ./configure --build=arm-linux-androideabi --host=arm-linux-androideabi > --target=arm-linux-androideabi --with-float=hard --with-fpu=neon > --enable-targets=arm --enable-optimized --enable-assertionsRenato's suggestion is a good one, but I suspect the immediate problem here is that this configure line is for building *on* an ARM board. You're probably executing this on your x86 desktop, which means the --build option wouldn't work. Also, unless you actually want to run the resulting Clang on Android (rather than just use it to compile for Android), the --host isn't needed either. But then you'll hit the fun of trying to get Clang to find Android's headers and libraries, which is where Renato's suggestion becomes even better. We're not really Android experts here (mostly). Cheers. Tim.
Renato Golin
2013-Jul-18 08:14 UTC
[LLVMdev] regarding compiling clang for different platform
On 18 July 2013 08:50, Tim Northover <t.p.northover at gmail.com> wrote:> But then you'll hit the fun of trying to get Clang to find Android's > headers and libraries >Some Linaro folks are also trying to build Android with Clang and they have some wrappers to make clang work transparently (as a cross-compiler from Intel to ARM). They all hangout on the LLVMLinux mailing list or IRC channel (OFTC, #llvmlinux). There are also ABI issues, since androideabi is not gnueabi which is not aeabi and Clang/LLVM knows very little about the difference (but the Kernel breaks because of enum sizes and other little things). I never built it myself, but I know that it's not trivial because the Android build system is something of a marvel of the modern world that has GCC hard-coded all over the place. Using the Clang wrapper should work with a standard Clang binary (if it has the ARM back-end), so the way you build Clang shouldn't matter much. Good luck! --renato -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130718/dd7ed084/attachment.html>
Possibly Parallel Threads
- [LLVMdev] regarding compiling clang for different platform
- cuda cross compiling issue for target aarch64-linux-androideabi
- cuda cross compiling issue for target aarch64-linux-androideabi
- Help building OPUS library using FIXED_POINT option
- [RFC] Stop giving a default CPU to the LTO plugin?