[LLVMdev] LLVM-gcc for ARM

Rafael Espindola espindola at google.com
Sun Jan 17 09:35:12 PST 2010

> llvm-gcc a.c
> a.c:1:19: error: stdio.h: No such file or directory
> a.c: In function ‘main’:
> a.c:4: warning: incompatible implicit declaration of built-in function ‘printf’

This is provided by libc. Do you have an ARM libc? You should
configure llvm-gcc with --with-sysroot pointing to the libc install
directory. If you are building from scratch, you have to

*) Build binutils
*) Build llvm-gcc
*) Use that to build a libc (newlib, glibc,  etc)
*) Build a new llvm-gcc that can use that libc

Rafael Ávila de Espíndola

More information about the llvm-dev mailing list