Juan Carlos Martinez Santos
2009-Jun-29 21:09 UTC
[LLVMdev] Generatin code for an ARM-LINUX machine
I am using the below configuration: ./configure --with-llvmgccdir=/home/jcmartin78/LLVM/llvm-gcc4.2 --prefix=/home/jcmartin78/local --enable-optimized=1 --enable-debug-runtime --enable-jit --enable-targets=arm --target=arm When I use LLVMC to compile a simple program I get this: $ llvmc hello.c llc: error auto-selecting target for module 'No available targets are compatible with this module'. Please use the -march option to explicitly pick a target. Using the -march options, I get this: $ llvmc -march=arm hello.c hello.c:1: error: bad value (arm) for -march= switch hello.c:1: error: bad value (arm) for -mtune= switch Somebody has an idea what is wrong in my procedure? I am using a x86-linux machine and I want to generate code for an arm-linux machine (also, I am using the binutils 2.19 to build my cross-compiler). -- Juan Carlos -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090629/66a86e24/attachment.html>
I have not used llvmc to build ARM binaries, but llvm-gcc does work.There's a script to build llvm-gcc x86 -> ARM cross-compiler in llvm/utils/crosstool/ARM/ . 2009/6/29 Juan Carlos Martinez Santos <juanc.martinez.santos at gmail.com>> I am using the below configuration: > > ./configure --with-llvmgccdir=/home/jcmartin78/LLVM/llvm-gcc4.2 > --prefix=/home/jcmartin78/local --enable-optimized=1 --enable-debug-runtime > --enable-jit --enable-targets=arm --target=arm > > When I use LLVMC to compile a simple program I get this: > > $ llvmc hello.c > llc: error auto-selecting target for module 'No available targets are > compatible with this module'. Please use the -march option to explicitly > pick a target. > > Using the -march options, I get this: > > $ llvmc -march=arm hello.c > hello.c:1: error: bad value (arm) for -march= switch > hello.c:1: error: bad value (arm) for -mtune= switch > > Somebody has an idea what is wrong in my procedure? I am using a x86-linux > machine and I want to generate code for an arm-linux machine (also, I am > using the binutils 2.19 to build my cross-compiler). > > -- > Juan Carlos > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090629/f832ba2c/attachment.html>
Juan Carlos Martinez Santos
2009-Jun-30 17:18 UTC
[LLVMdev] Generatin code for an ARM-LINUX machine
Thanks Misha, However, I could not find the crosstool. Could you please check the name of the script? Regards, Juan Carlos On Mon, Jun 29, 2009 at 5:23 PM, Misha Brukman <brukman at gmail.com> wrote:> I have not used llvmc to build ARM binaries, but llvm-gcc does work.There's > a script to build llvm-gcc x86 -> ARM cross-compiler in > llvm/utils/crosstool/ARM/ . > > 2009/6/29 Juan Carlos Martinez Santos <juanc.martinez.santos at gmail.com> > >> I am using the below configuration: >> >> ./configure --with-llvmgccdir=/home/jcmartin78/LLVM/llvm-gcc4.2 >> --prefix=/home/jcmartin78/local --enable-optimized=1 --enable-debug-runtime >> --enable-jit --enable-targets=arm --target=arm >> >> When I use LLVMC to compile a simple program I get this: >> >> $ llvmc hello.c >> llc: error auto-selecting target for module 'No available targets are >> compatible with this module'. Please use the -march option to explicitly >> pick a target. >> >> Using the -march options, I get this: >> >> $ llvmc -march=arm hello.c >> hello.c:1: error: bad value (arm) for -march= switch >> hello.c:1: error: bad value (arm) for -mtune= switch >> >> Somebody has an idea what is wrong in my procedure? I am using a x86-linux >> machine and I want to generate code for an arm-linux machine (also, I am >> using the binutils 2.19 to build my cross-compiler). >> >> -- >> Juan Carlos >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-- Juan Carlos MartÃnez Santos 242 Foster Drive Apt H Colonial Townhouse Apartments Willimantic, CT 06226-1538 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090630/dab81a9b/attachment.html>