[LLVMdev] Cross-compile to ARM using Code Sourcery Lite Toolchain
Jim Grosbach
grosbach at apple.com
Mon Jul 11 07:58:43 PDT 2011
Hello,
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
$ make
I've used that recipe before with good results.
-Jim
On Jul 10, 2011, at 10:59 PM, Whee Cheng Ong wrote:
> Hello
>
> 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
> (2011.03-41).
>
> This is the command I used to configure:
> ./configure --build=i686-pc-linux-gnu --host=arm-none-linux-gnueabi
> --target=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.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list