[LLVMdev] building a llvm-arm-elf crosscompiler on OSX 10.5
Pazzo Da Legare
pazzodalegare at gmail.com
Fri Jan 8 17:55:45 PST 2010
Dear ML,
I'm trying to understand how to build a llvm (2.6) cross compiler for
arm-elf target using the gcc frontend with newlib. Could you please
indicate, if possible steps I should follow?
I try to configure and build llvm with
../llvm-2.6/configure
--prefix=/usr/local/cross-llvm-gcc-arm-elf-4.2-2.6 --enable-optimized
--disable-threads --enable-targets=cbe,cpp,arm
and LLVM-GCC frontend with
../llvm-gcc4.2-2.6.source/configure
--prefix=/usr/local/cross-llvm-gcc-arm-elf-4.2-2.6
--program-prefix=llvm-
--enable-llvm=/Users/dummy/Develop/llvm/llvm-2.6
--enable-languages=c,c++ --host=i686-apple-darwin9
--build=i686-apple-darwin9 --target=arm-elf
--with-gxx-include-dir=/usr/include/c++/4.0.0 --enable-interwork
--with-newlib --with-header=../newlib-1.18.0/newlib/libc/include
But I got the followings errors:
/var/folders/7f/7fiRIEm-FruFfT7mGbk3uk+++TI/-Tmp-//ccDFjySd.s:
Assembler messages:
/var/folders/7f/7fiRIEm-FruFfT7mGbk3uk+++TI/-Tmp-//ccDFjySd.s:96:
Error: selected processor does not support `sxtb r5,r5'
/var/folders/7f/7fiRIEm-FruFfT7mGbk3uk+++TI/-Tmp-//ccDFjySd.s:537:
Error: selected processor does not support `sxtb r6,r6'
/var/folders/7f/7fiRIEm-FruFfT7mGbk3uk+++TI/-Tmp-//ccDFjySd.s:705:
Error: selected processor does not support `sxtb r1,r1'
/var/folders/7f/7fiRIEm-FruFfT7mGbk3uk+++TI/-Tmp-//ccDFjySd.s:711:
Error: selected processor does not support `sxtb r1,r1'
Thank you for your help,
pz
More information about the llvm-dev
mailing list