<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi,</DIV>
<DIV>   I use the crosstool build script to build a crosscompiler for ARM. I get the following error when compilng "helloworld" program:</DIV>
<DIV> </DIV>
<DIV>llvm-gcc hello.c -o hello</DIV>
<DIV> </DIV>
<DIV><FONT color=#ff0000>as: unrecognized option `-meabi=4' </FONT></DIV>
<DIV><FONT color=#ff0000></FONT> </DIV>
<DIV><FONT color=#000000>I know that the reason is not to get proper cross assembler. It tries to use the native assembler but I am unable to fix the problem. I use </DIV>
<DIV>llvm-gcc -### hello.c -o hello and see the following going on:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT color=#007f40>Using built-in specs.<BR>Target: arm-none-linux-gnueabi<BR>Configured with: /MinGW/llvm-project/src/llvm-gcc-4.2/configure --enable-languag<BR>es=c --enable-bindings=none --disable-threads --enable-llvm=/usr/local/crosstool<BR>/arm-none-linux-gnueabi/llvm --disable-gold --disable-multilib --prefix=/usr/loc<BR>al/crosstool/arm-none-linux-gnueabi/llvm-gcc-4.2 --disable-shared --disable-libs<BR>sp --program-prefix=llvm- --disable-bootstrap --disable-libmudflap --target=arm-<BR>none-linux-gnueabi --disable-libstdcxx-pch --enable-optimized --with-as=/usr/loc<BR>al/crosstool/codesourcery/arm-2010q1/bin/arm-none-linux-gnueabi-as --with-ld=/us<BR>r/local/crosstool/codesourcery/arm-2010q1/bin/arm-none-linux-gnueabi-ld --with-s<BR>ysroot=/usr/local/crosstool/codesourcery/arm-2010q1/arm-none-linux-gnueabi/libc<BR>Thread model: single<BR>gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM
 build)<BR> "c:/mingw/msys/1.0/local/crosstool/arm-none-linux-gnueabi/llvm-gcc-4.2/bin/../l<BR>ibexec/gcc/arm-none-linux-gnueabi/4.2.1/cc1.exe" "-quiet" "-iprefix" "c:\\mingw\<BR>\msys\\1.0\\local\\crosstool\\arm-none-linux-gnueabi\\llvm-gcc-4.2\\bin\\../lib/<BR>gcc/arm-none-linux-gnueabi/4.2.1/" "hello.c" "-quiet" "-dumpbase" "hello.c" "-au<BR>xbase" "hello" "-o" "D:/DOCUME~2/AZIM/LOCALS~1/Temp/ccO28l0y.s"<BR> "as" "-meabi=4" "-o" "D:/DOCUME~2/AZIM/LOCALS~1/Temp/ccs3L4rX.o" "D:/DOCUME~2/A<BR>ZIM/LOCALS~1/Temp/ccO28l0y.s"<BR> "c:/mingw/msys/1.0/local/crosstool/arm-none-linux-gnueabi/llvm-gcc-4.2/bin/../l<BR>ibexec/gcc/arm-none-linux-gnueabi/4.2.1/collect2.exe" "--sysroot=C:/MinGW/msys/1<BR>.0/local/crosstool/codesourcery/arm-2010q1/arm-none-linux-gnueabi/libc" "--eh-fr<BR>ame-hdr" "-dynamic-linker" "/lib/ld-linux.so.3" "-X" "-m" "armelf_linux_eabi" "-<BR>o" "hello"
 "C:/MinGW/msys/1.0/local/crosstool/codesourcery/arm-2010q1/arm-none-l<BR>inux-gnueabi/libc/usr/lib/crt1.o" "C:/MinGW/msys/1.0/local/crosstool/codesourcer<BR>y/arm-2010q1/arm-none-linux-gnueabi/libc/usr/lib/crti.o" "c:/mingw/msys/1.0/loca<BR>l/crosstool/arm-none-linux-gnueabi/llvm-gcc-4.2/bin/../lib/gcc/arm-none-linux-gn<BR>ueabi/4.2.1/crtbegin.o" "-Lc:/mingw/msys/1.0/local/crosstool/arm-none-linux-gnue<BR>abi/llvm-gcc-4.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1" "-Lc:/mingw/msys/1<BR>.0/local/crosstool/arm-none-linux-gnueabi/llvm-gcc-4.2/bin/../lib/gcc" "-LC:/Min<BR>GW/msys/1.0/local/crosstool/arm-none-linux-gnueabi/llvm-gcc-4.2/lib/gcc/arm-none<BR>-linux-gnueabi/4.2.1" "-Lc:/mingw/msys/1.0/local/crosstool/arm-none-linux-gnueab<BR>i/llvm-gcc-4.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/../../../../arm-none-<BR>linux-gnueabi/lib"
 "-LC:/MinGW/msys/1.0/local/crosstool/arm-none-linux-gnueabi/l<BR>lvm-gcc-4.2/lib/gcc/arm-none-linux-gnueabi/4.2.1/../../../../arm-none-linux-gnue<BR>abi/lib" "-LC:/MinGW/msys/1.0/local/crosstool/codesourcery/arm-2010q1/arm-none-l<BR>inux-gnueabi/libc/lib" "-LC:/MinGW/msys/1.0/local/crosstool/codesourcery/arm-201<BR>0q1/arm-none-linux-gnueabi/libc/usr/lib" "D:/DOCUME~2/AZIM/LOCALS~1/Temp/ccs3L4r<BR>X.o" "-lgcc" "-lc" "-lgcc" "c:/mingw/msys/1.0/local/crosstool/arm-none-linux-gnu<BR>eabi/llvm-gcc-4.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.1/crtend.o" "C:/MinG<BR>W/msys/1.0/local/crosstool/codesourcery/arm-2010q1/arm-none-linux-gnueabi/libc/u<BR>sr/lib/crtn.o"</FONT></DIV>
<DIV> </DIV>
<DIV>I also use the following commands to see where is linker and assembler. </DIV>
<DIV> </DIV>
<DIV>$ which as</DIV>
<DIV> </DIV>
<DIV>/mingw/bin/as.exe</DIV>
<DIV> </DIV>
<DIV>$ which ld</DIV>
<DIV> </DIV>
<DIV>/mingw/bin/ld.exe</DIV>
<DIV> </DIV>
<DIV>It will be great if I get any suggestions or comments. Will a symbolic link to the cross assembler and linker to these native assembler and linker solve the problem?</DIV>
<DIV> </DIV>
<DIV>Thanks </DIV></td></tr></table><br>