[LLVMdev] Is cross-compiling for ARM on x86 with llvm/Clang possible?

Anton Korobeynikov anton at korobeynikov.info
Tue Jun 19 01:12:07 PDT 2012


Hello

> ./clang -v -emit-llvm -ccc-host-triple arm-none-linux-gnueabi
> -I/home/hum/Documents/Projects/llvm_clang/gnuarm-4.0.2/arm-elf/include
> -L/home/hum/Documents/Projects/llvm_clang/gnuarm-4.0.2/arm-elf/bin hello.c
You forgot about sysroot here.

> /home/hum/Documents/Projects/llvm_clang/gnuarm-4.0.2/arm-elf/bin/ld:
> unrecognised emulation mode: armelf_linux_eabi
> Supported emulations: armelf
1. Your ld is too old
2. Your ld was built for arm-elf, not arm-linux-eabi

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



More information about the llvm-dev mailing list