[LLVMdev] Generatin code for an ARM-LINUX machine

Juan Carlos Martinez Santos juanc.martinez.santos at gmail.com
Tue Jun 30 10:18:48 PDT 2009


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>


More information about the llvm-dev mailing list