<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hello,<br><br>Well, I recompiled the LLVM-gcc <br><br>../llvm-gcc4.2-2.6.source/configure --prefix=`pwd`/../install --program-prefix=llvm- --enable-llvm=/home/LLVM/llvm-2.6/ <br>--enable-languages=c  <br>--disable-libssp  <br>--with-gnu-ld=/home/LLVM/llvm-gcc4.2-2.6.source/arm-elf-ld --with-gnu-as=/home/LLVM/llvm-gcc4.2-2..6.source/arm-elf-as  --with-cpu=cortex-a8  <br>--target=arm-elf<br><br>Everything is OK, but when trying to compile a HelloWorld source it gives me the following error:<br><br><span style="font-weight: bold;">llvm-gcc a.c</span><br>a.c:1:19: error: stdio.h: No such file or directory<br>a.c: In function ‘main’:<br>a.c:4: warning: incompatible implicit declaration of built-in function ‘printf’<br><br><span style="font-weight: bold;">llvm-gcc -v a.c</span><br>Using built-in specs.<br>Target: arm-elf<br>Configured with:
 ../llvm-gcc4.2-2.6.source/configure --prefix=/home/LLVM/obj/../install --program-prefix=llvm- --enable-llvm=/home/LLVM/llvm-2.6/ <br>--enable-languages=c <br>--disable-libssp --with-gnu-ld=/home/LLVM/llvm-gcc4.2-2.6.source/arm-elf-ld --with-gnu-as=/home/LLVM/llvm-gcc4.2-2.6.source/arm-elf-as --with-cpu=cortex-a8 --target=arm-elf<br>Thread model: single<br>gcc version 4.2.1 (Based on Apple Inc. build 5649) (LLVM build)<br> /home/LLVM/install/bin/../libexec/gcc/arm-elf/4.2.1/cc1 -quiet -v -iprefix /home/LLVM/install/bin/../lib/gcc/arm-elf/4.2.1/ -D__USES_INITFINI__ a.c -quiet -dumpbase a.c -mcpu=cortex-a8 -auxbase a -version -o /tmp/ccEs2CuD.s<br><br>ignoring nonexistent directory "/home/LLVM/install/bin/../lib/gcc/arm-elf/4.2.1/../../../../arm-elf/sys-include"<br>ignoring nonexistent directory "/home/LLVM/install/bin/../lib/gcc/arm-elf/4.2.1/../../../../arm-elf/include"<br>ignoring duplicate directory
 "/home/LLVM/obj/../install/lib/gcc/arm-elf/4.2.1/include"<br>ignoring nonexistent directory "/home/LLVM/obj/../install/lib/gcc/arm-elf/4.2.1/../../../../arm-elf/sys-include"<br>ignoring nonexistent directory "/home/LLVM/obj/.../install/lib/gcc/arm-elf/4.2.1/../../../../arm-elf/include"<br>#include "...." search starts here:<br>#include <...> search starts here:<br> /home/LLVM/install/bin/../lib/gcc/arm-elf/4.2.1/include<br>End of search list.<br>GNU C version 4.2.1 (Based on Apple Inc. build 5649) (LLVM build) (arm-elf)<br>        compiled by GNU C version 4.2.4 (Ubuntu 4.2.4-1ubuntu4).<br>GGC heuristics: --param ggc-min-expand=98 --param ggc-min-heapsize=131072<br>Compiler executable checksum: 2099b8949ecdc7b9705c423e43d0f9c7<br>a.c:1:19: error: stdio.h: No such file or directory<br>a.c: In function ‘main’:<br>a.c:4: warning: incompatible implicit declaration of built-in function ‘printf’<br><br>Why
 those directories doesn't exist?<br><br>Thanks for your help,<br>Corina.<br><br>P.S. I will recompile and run -v to see which version of assembler is called.<br><br> <br>--- On <b>Sun, 1/17/10, Rafael Espindola <i><espindola@google.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Rafael Espindola <espindola@google.com><br>Subject: Re: [LLVMdev] LLVM-gcc for ARM<br>To: "corina s" <corina_fff@yahoo.com><br>Cc: llvmdev@cs.uiuc.edu, anton@korobeynikov.info<br>Date: Sunday, January 17, 2010, 8:23 AM<br><br><div class="plainMail">> llvm-gcc a.c<br>> Assembler messages:<br>> Fatal error: Invalid -march= option: `armv7-a'<br>><br>> Any ideas?<br><br>It is probably trying to use the wrong assembler.. Run with -v and check.<br><br>><br>> Thank you,<br>> Corina<br>><br><br>Cheers,<br>--<br>Rafael Ávila de
 Espíndola<br></div></blockquote></td></tr></table><br>