[LLVMdev] Cross compiling question
S. Bharadwaj Yadavalli
bharadwajy at gmail.com
Fri Jan 30 14:30:39 PST 2009
Thanks for the tip! I was able to build the front end with the suggested
config option.
Bharadwaj
On Fri, Jan 30, 2009 at 1:49 PM, Luke Dalessandro <luked at cs.rochester.edu>wrote:
> Luke Dalessandro wrote:
> > S. Bharadwaj Yadavalli wrote:
> >> $ ../../../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
> >
> > I can't really comment on your specific problem, but you might try
> > adding --with-build-sysroot to point to your arm headers. You also need
> > to have binutils built for cross ARM as well. If cross binutils is in
> > your path (bins will have arm prefix) you're fine, otherwise you need to
> > specify them at configure too (--with-gnu-ld, --with-gnu-as). I don't
> > know if you need cross gmp or mpfr too.
>
> Sorry, that should be --with-sysroot. And I guess you don't need gmp or
> mpfr since you're running it on a system where those exist already.
>
> For more info about these configure options see
> http://gcc.gnu.org/install/configure.html under "Cross-Compiler-Specific
> Options."
>
> Good luck,
> Luke
>
> >>
> >> Thanks for any help!
> >>
> >> Bharadwaj
> >>
> >>
> >> ------------------------------------------------------------------------
> >>
> >> _______________________________________________
> >> LLVM Developers mailing list
> >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
> _______________________________________________
> 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/20090130/991313f4/attachment.html>
More information about the llvm-dev
mailing list