<br>I am trying to build a x86_64 to ARM cross compiler.<br><br>I configured, built and installed LLVM as follows:<br><br>$ ../../../src/llvm/configure --with-llvmgccdir=<llvm-root>/install/x86_64-arm/llvm-gcc-4.2 --enable-optimized --enable-jit --prefix=<llvm-root>/install/x86_64-arm/llvm --target=arm-unknown-linux-gnueabi<br>
<br>$ make<br>$ make install<br><br>Then I configured gcc front end as follows:<br><br>$ ../../../src/llvm-gcc-4.2/configure --prefix=<llvm-root>/install/x86_64-arm/llvm-gcc-4.2 --program-prefix=llvm-x86_64-arm --enable-llvm=<llvm-root>/install/x86_64-arm/llvm --enable-languages=c,c++ --disable-multilib --target=arm-unknown-linux-gnueabi<br>
<br>I get the following error:<br><br>exec: 2: -meabi=4: not found<br><br>while assembling ../../../../src/llvm-gcc-4.2/gcc/crtstuff.c<br><br>I found that execution of the command<br> <llvm-root>/build/x86_64-arm/llvm-gcc-4.2/./gcc/as <br>
<br>which is part of execution of the command<br><br><llvm-root>/build/x86_64-arm/llvm-gcc-4.2/./gcc/xgcc<br><br>is the resulting in this error. It turns out that this is a 2 line shell script that exec's the arguments like thus:<br>
<br>#!/bin/sh<br>exec "$@"<br><br>Where is the assembler that needs to be invoked? What do I need to do to get the configuration find it?<br><br>What am I doing wrong?<br><br>Thanks for any help!<br><br>Bharadwaj<br>