[LLVMdev] Targetting the raspberry pi

David Chisnall David.Chisnall at cl.cam.ac.uk
Sun Dec 30 02:57:08 PST 2012

It depends, of course, what operating system you have installed on the RPi, but given that it's an ARM1176JZFS (ARMv6) chip, I would expect to see armv6, not armv4t, in the CPU part of the triple.  It has a VFP unit, so I'd assume that you'd want to set hardfp (unless you installed an OS that doesn't support hardfp in its standard library), but if ld is complaining then you almost certainly have a mismatch.


On 30 Dec 2012, at 10:42, Carlo Kok wrote:

> Targetting the raspberry pi, what triple/flags should I set?
> I tried triple: armv4t-unknown-linux-gnueabi and ld fails with:
>  a.out uses VFP register arguments
> if i set hardfloat (using optdata.FloatABIType = FloatABI::Hard), ld fails with an assertion:
> 2.22 assertion fail ../../bfd/elf32-arm.c:11477
> what am I missing?
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

More information about the llvm-dev mailing list