[LLVMdev] Cross compiling question
Luke Dalessandro
luked at cs.rochester.edu
Fri Jan 30 10:49:12 PST 2009
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
More information about the llvm-dev
mailing list