<div>


<div>

How does one cross compile llvm ? When I attempt to cross compile I get  :<br><br><br><br><br>................................................<br>...............................................<br>configure: creating ./config.status<br>config.status: creating Makefile.common<br>config.status: executing setup commands<br>config.status: executing Makefile commands<br>config.status: executing lib/Makefile commands<br>config.status: executing lib/sample/Makefile commands<br>config.status: executing tools/Makefile commands<br>config.status: executing tools/sample/Makefile commands<br>checking build system type... i686-pc-linux-gnu<br>checking host system type... i686-pc-linux-gnu<br>checking target system type... i686-pc-linux-gnu<br>checking type of operating system we're going to host on... Linux<br>checking target architecture... x86<br>checking for gcc... arm-none-linux-gnueabi-gcc<br>checking for C compiler default output file name... a.out<br>checking
 whether the C compiler works... configure: error: cannot run C compiled programs.<br>If you meant to cross compile, use `--host'.<br>See `config.log' for more details.<br><br><br>I configured as follows :<br><br>AS=arm-none-linux-gnueabi-as<br>AR=arm-none-linux-gnueabi-ar<br>CC=arm-none-linux-gnueabi-gcc<br>CXX=arm-none-linux-gnueabi-g++<br>LD=arm-none-linux-gnueabi-ld<br>NM=arm-none-linux-gnueabi-nm<br>OBJCOPY=arm-none-linux-gnueabi-objcopy<br>OBJDUMP=arm-none-linux-gnueabi-objdump<br>RANLIB=arm-none-linux-gnueabi-ranlib<br>READELF=arm-none-linux-gnueabi-readelf<br>SIZE=arm-none-linux-gnueabi-size<br>STRINGS=arm-none-linux-gnueabi-strings<br>STRIP=arm-none-linux-gnueabi-strips<br><br><br><br><br>llvm-2.5/configure \<br>    --with-llvmgccdir=/home/LLVM-2.5/llvm-gcc4.2-2.5-x86-linux-RHEL4 \<br>    --enable-optimized \<br>    --enable-jit \<br>    --disable-threads \<br>    --enable-pic \<br>    --disable-shared \<br>    --with-pic  \<br><pre>    --prefix=/home/VIREMENT/src_virement/llvm \</pre>    --build=i686-pc-linux-gnu \<br>    --host=arm-linux-gnueabi <br><br><br>I am attaching config.log<br><br><br><br><br>
<div>

</div>


</div>


</div>
<BR>

-- 
<div> Be Yourself @ mail.com!<br>
Choose From 200+ Email Addresses<br>
Get a <b>Free</b> Account at <a href="http://www.mail.com/Product.aspx" target="_blank">www.mail.com</a>!</div>