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
config.log (234 KB)