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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110510/e415a6ff/attachment.html>
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 > >
> This is actually not well working yet AFAIK.I saw there is a buildbot for llvm-arm-linux on http://google1.osuosl.org:8011/one_box_per_builder How do it compile LLVM for ARM? Not using cross-compile? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667
Hi, Jason I guess Poki want to build LLVM for ARM and use LLVM library to do something, not just using LLVM to compile ARM binary. Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667
Hi all I want to cross compile llvm for arm architecture on Devkit8000. ARM toolchain: arm-2011.03 LLVM: llvm-2.9 binutils: binutils-2.21 The following is my approach: 1. install binutils- 2.21 put binutils to llvm src directory ./configure --target=arm-linux --prefix=/path/llvm-src/arm --disable-optimized --enable-bindings=none --disable-multilib --disable-bootstrap --with-sysroot=/path/llvm/arms/sys-root --with-binutils-include=/path/llvm/binutils-2.21/include --with-llvmgccdir=/path/llvm/llvm-gcc-4.2 make make install 2.install LLVM ../llvm-2.9/configure --target=arm-none-linux-gnueabi --host=arm-none-linux-gnueabi --prefix=/path/llvm/install --disable-optimized --enable-bindings=none --disable-multilib --disable-bootstrap --with-sysroot=/path/llvm/arms/sys-root --with-binutils-include=/path/llvm/binutils-2.21/include --with-llvmgccdir=/path/llvm/llvm-gcc/llvm-gcc-4.2-2.9-i686-linux CFLAGS = '-static' make make install done ! Regards, Poki 2011/5/10 李柏舉 <poki.gzca at gmail.com>> 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 > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110610/814c8acb/attachment.html>
Hi,> --with-llvmgccdir=/path/llvm/llvm-gcc/llvm-gcc-4.2-2.9-i686-linux > CFLAGS = '-static'^^^^^^^ Have trouble with dynamic linking? BTW, can someone make this a HOWTO on the LLVM website? Regards, chenwj -- Wei-Ren Chen (陳韋任) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667