Hello,
I recompiled binutils, llvm-gcc, libc, and again llvm-gcc and now it gives me
the following error:
llvm-gcc --v
Using built-in specs.
Target: arm-elf
Configured with:
......./ (reconfigured) ../llvm-gcc4.2-2.6.source/configure --target=arm-elf
--enable-llvm=/home/LLVM/llvm-2.6/ --with-arch=armv7-a --enable-languages=c
--prefix=/home/LLVM/install --enable-multilib --with-newlib --without-headers
--disable-shared --with-gnu-as --with-gnu-ld --program-prefix=llvm-
--disable-libssp --with-sysroot=/home/LLVM/build/arm-elf/newlib/
llvm-gcc HelloWorld.c
/home/LLVM/install/lib/gcc/arm-elf/4.2.1/../../../../arm-elf/bin/ld: this linker
was not configured to use sysroots
collect2: ld returned 1 exit status
I would appreciate some help from you.
Corina
--- On Sun, 1/17/10, corina s <corina_fff at yahoo.com> wrote:
From: corina s <corina_fff at yahoo.com>
Subject: Re: [LLVMdev] LLVM-gcc for ARM
To: "Rafael Espindola" <espindola at google.com>, llvmdev at
cs.uiuc.edu, anton at korobeynikov.info
Date: Sunday, January 17, 2010, 10:57 AM
OK, thank you.
Are there some pre-built X86 binaries for LLVM-gcc for ARM? It yes, where can I
download from?
Thank you,
Corina
--- On Sun, 1/17/10, Rafael Espindola <espindola at google.com> wrote:
From: Rafael Espindola <espindola at google.com>
Subject: Re: [LLVMdev] LLVM-gcc for ARM
To: "corina s" <corina_fff at yahoo.com>
Cc: llvmdev at cs.uiuc.edu, anton at korobeynikov.info
Date: Sunday, January 17, 2010, 9:35 AM
> 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
Cheers,
--
Rafael Ávila de Espíndola
-----Inline Attachment Follows-----
_______________________________________________
LLVM Developers mailing list
LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20100117/2f3d0cc4/attachment.html>