[LLVMdev] llvm-gcc cross compiler for ARM Linux failing

Anton Korobeynikov anton at korobeynikov.info
Sat Jul 4 00:20:03 PDT 2009

Hello, Neel

> So I think I llvm-gcc is using the Linux i386 assembler to assemble
> ARM code. Not good.
Yes, seems so

> What assembler is it supposed to use? The one in CodeSourcery?

> Configured with: /home/neel/xllvm/build-xl/src/llvm-gcc-4.2/configure
> --enable-languages=c,c++
> --enable-llvm=/home/neel/xllvm/install-xl/llvm-project/x86_64-unknown-linux-gnu/arm-none-linux-gnueabi/llvm
> --prefix=/home/neel/xllvm/install-xl/llvm-project/x86_64-unknown-linux-gnu/arm-none-linux-gnueabi/llvm-gcc-4.2
> --program-prefix=llvm- --target=arm-none-linux-gnueabi
> --with-cpu=cortex-a8
> --with-gnu-as=/home/neel/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-as
> --with-gnu-ld=/home/neel/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-ld
> --with-sysroot=/home/neel/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/libc
It seems that --with-gnu-as / --with-gnu-ld is somehow broken... Or
something like that. What if you add
/home/neel/CodeSourcery/Sourcery_G++_Lite/bin to your PATH before
configuring (so you can run arm-none-linux-gnueabi-as by hands) and
configure llvm-gcc without --with-gnu-as/ld options?

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

More information about the llvm-dev mailing list