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">juanc.martinez.santos@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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>_______________________________________________<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></div>