[LLVMdev] How to Cross compile llvm to ARM ?
Jason Kim
jasonwkim at google.com
Tue May 10 08:53:34 PDT 2011
This is actually not well working yet AFAIK.
There are a few issues with ELF/MC/.o that needs fixing on 2.9.
What I suggest you do is just create an x86 llvm (as per normal) and
use that llvm/llc to create the object files for ARM using
-mtriple=amv7-linux-gnueabi (for example when invoking llc).
Note that -g and Thumb2 is not yet supported AFAIK on ARM/ELF on 2.9
(MachO is much better supported I hink)
There are a few patches that I will push in to address some of these
issues on tip-of-tree but this will unfortunately not be helpful for
2.9
Sorry!
-jason
On Tue, May 10, 2011 at 3:57 AM, 李柏舉 <poki.gzca at gmail.com> wrote:
> Hi, all
>
> I want to compile llvm for arm board , running llvm on Devkit8000
>
> cross-compiler : arm-2008q3 (arm-none-linux-gnueabi)
> below is my configure:
> ../llvm-2.9/configure
> --with-llvmgccdir=/home/poki/hybridQ/llvm/llvm-gcc/llvm-gcc-4.2-2.9-i686-linux
> --enable-optimized
> --enable-jit
> --disable-threads
> --enable-pic
> --disable-shared
> --with-pic
> --prefix=/home/poki/hybridQ/llvm/temp_install
> --build=i686-pc-linux-gnu
> --host=arm-none-linux-gnueabi
> --target=arm-none-linux-gnueabi
> I'm not familiar with llvm.
> Is there an error about mu configure?
> then make -j4 //it's ok
> make install //error
> error message:
> strip: Unable to recognise the format of the input
> file `/home/poki/hybridQ/llvm/temp_install/bin/tblgen'
> /usr/bin/install: strip process terminated abnormally
> make[2]: ***
> [/home/poki/hybridQ/llvm/temp_install/bin/tblgen] Error 1
> make[2]: Leaving directory
> `/home/poki/hybridQ/llvm/bbuild/utils/TableGen'
> make[1]: *** [TableGen/.makeinstall] Error 2
> make[1]: Leaving directory
> `/home/poki/hybridQ/llvm/bbuild/utils'
> make: *** [install] Error 1
>
>
> Regards,
>
> Poki
>
>
> _______________________________________________
> 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