[LLVMdev] LLVM-gcc for ARM

Anton Korobeynikov anton at korobeynikov.info
Sat Jan 16 18:09:00 PST 2010


> /tmp/ccm99Neh.s:711: Error: selected processor does not support `sxtb r1,r1'
> make[3]: *** [libgcc/thumb/unwind-dw2-fde.o] Error 1
> Any ideas?
Yes. LLVM defaults to ARMv5 in codegeneration and does not support
ARMv4. Without any extra option arm-elf-as assumes ARMv4 and thus
gives you these errors. So:

1. If your desired target platform is ARMv4 and not newer - then
you're out of luck
2. Otherwise - add --with-cpu or --with-arch to llvm-gcc configure to
select the processor / arch desired.

It seems that you're interested in Cortex CPUs
("/tmp/arm-cortex-toolchain"), then your desired arch is armv7,
configure with --with-arch=armv7 or e.g. --with-cpu=cortex-a8

With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

More information about the llvm-dev mailing list