[LLVMdev] CROSS COMPILING LLVM
hannibal hannibal
hannibal_08 at mail.com
Wed Jun 10 10:17:04 PDT 2009
How does one cross compile llvm ? When I attempt to cross compile I get
:
................................................
...............................................
configure: creating ./config.status
config.status: creating Makefile.common
config.status: executing setup commands
config.status: executing Makefile commands
config.status: executing lib/Makefile commands
config.status: executing lib/sample/Makefile commands
config.status: executing tools/Makefile commands
config.status: executing tools/sample/Makefile commands
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking type of operating system we're going to host on... Linux
checking target architecture... x86
checking for gcc... arm-none-linux-gnueabi-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
I configured as follows :
AS=arm-none-linux-gnueabi-as
AR=arm-none-linux-gnueabi-ar
CC=arm-none-linux-gnueabi-gcc
CXX=arm-none-linux-gnueabi-g++
LD=arm-none-linux-gnueabi-ld
NM=arm-none-linux-gnueabi-nm
OBJCOPY=arm-none-linux-gnueabi-objcopy
OBJDUMP=arm-none-linux-gnueabi-objdump
RANLIB=arm-none-linux-gnueabi-ranlib
READELF=arm-none-linux-gnueabi-readelf
SIZE=arm-none-linux-gnueabi-size
STRINGS=arm-none-linux-gnueabi-strings
STRIP=arm-none-linux-gnueabi-strips
llvm-2.5/configure \
--with-llvmgccdir=/home/LLVM-2.5/llvm-gcc4.2-2.5-x86-linux-RHEL4 \
--enable-optimized \
--enable-jit \
--disable-threads \
--enable-pic \
--disable-shared \
--with-pic \
--prefix=/home/VIREMENT/src_virement/llvm \
--build=i686-pc-linux-gnu \
--host=arm-linux-gnueabi
I am attaching config.log
--
Be Yourself @ mail.com!
Choose From 200+ Email Addresses
Get a Free Account at www.mail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090610/3930a2df/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 239622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090610/3930a2df/attachment.obj>
More information about the llvm-dev
mailing list