[LLVMdev] Generatin code for an ARM-LINUX machine

Misha Brukman brukman at gmail.com
Mon Jun 29 14:23:36 PDT 2009

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>

More information about the llvm-dev mailing list