[LLVMdev] Cross-compile to ARM using Code Sourcery Lite Toolchain
grosbach at apple.com
Mon Jul 11 07:58:43 PDT 2011
Have you tried building in a dedicated build directory rather than directly in your source tree? Especially for cross compilers, that's likely to give you better results. That is,
$ mkdir build-llvm
$ cd build-llvm
$ ../<llvm-src-dir/configure --build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi --enable-optimized=no --enable-assertions=yes
I've used that recipe before with good results.
On Jul 10, 2011, at 10:59 PM, Whee Cheng Ong wrote:
> I am new to LLVM and would like to cross-compile LLVM 2.9 on x86
> (Ubuntu) to ARM using Code Sourcery LIte toolchain for ARM EABI
> This is the command I used to configure:
> ./configure --build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi
> followed by:
> make -C llvm.2.9 ENABLE_OPTIMIZED=0
> I encountered the following errors:
> configure:error: Already configured in /llvm2.9
> make: Entering directory '/llvm2.9/BuildTools'
> make: *** No targets specified and no makefile found. Stop.
> make" Leaving directory '/llvm2.9/BuildTools'
> make: *** [cross-compile-build-tools] Error 1
> make: Leaving directory 'llvm2.9'
> How can I resolve the errors and is there anything I missed out while
> trying to cross-compile LLVM on x86 to ARM?
> Thanks in advance for looking into my problem.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev