Thanks Misha,<br><br>However, I could not find the crosstool. Could you please check the name of the script?<br><br>Regards,<br><br>Juan Carlos<br><br><div class="gmail_quote">On Mon, Jun 29, 2009 at 5:23 PM, Misha Brukman <span dir="ltr"><<a href="mailto:brukman@gmail.com">brukman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have not used llvmc to build ARM binaries, but llvm-gcc does work.<div>There's a script to build llvm-gcc x86 -> ARM cross-compiler in llvm/utils/crosstool/ARM/ .</div>
<div><br><div class="gmail_quote">2009/6/29 Juan Carlos Martinez Santos <span dir="ltr"><<a href="mailto:juanc.martinez.santos@gmail.com" target="_blank">juanc.martinez.santos@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">I am using the below configuration:<br><br>./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<br>
<br>When I use LLVMC to compile a simple program I get this:<br><br>$ llvmc hello.c<br>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.<br>
<br>Using the -march options, I get this:<br><br>$ llvmc -march=arm hello.c<br>hello.c:1: error: bad value (arm) for -march= switch<br>hello.c:1: error: bad value (arm) for -mtune= switch<br><br>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).<br clear="all">
<br>-- <br><font color="#888888">Juan Carlos<br>
</font><br></div></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Juan Carlos Martínez Santos<br>242 Foster Drive Apt H<br>Colonial Townhouse Apartments<br>Willimantic, CT 06226-1538<br>