[LLVMdev] Cross-compile to ARM using Code Sourcery Lite Toolchain

Whee Cheng Ong owcheng at gmail.com
Sun Jul 10 22:59:57 PDT 2011


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[1]: Entering directory '/llvm2.9/BuildTools'
make[1]: *** No targets specified and no makefile found. Stop.
make[1]" 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.

More information about the llvm-dev mailing list