<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><br>
Hello,<br>
<br>
I am trying to cross compile LLVM version 3.3 for ARM ( i know it is a little bit old but I want to use llvm-perf tool). I used the xilinx toolchain. Here build is the intel platform and the host the arm processor. When I configure before compilation I observe
that the cross compilation is detected, however when I execute the make command, the cross compilation flag is overridden/ignored. I am missing something here to be able to generate LLVM binaries for ARM, are the commands that I use correct?
<br>
<br>
raul@uom:~/compiler/llvm33/build$ $SRC_ROOT/configure --prefix=/usr/local/llvm33arm
<b><font color="FF0000">--build=i686-pc-linux-gnu --host=arm-xilinx-linux-gnueabi</font></b>
<br>
checking for arm-xilinx-linux-gnueabi-clang... no<br>
checking for arm-xilinx-linux-gnueabi-llvm-gcc... no<br>
checking for arm-xilinx-linux-gnueabi-gcc... arm-xilinx-linux-gnueabi-gcc<br>
checking for C compiler default output file name... a.out<br>
checking whether the C compiler works... yes<br>
<font color="FF0000"><b>checking whether we are cross compiling... yes</b></font><br>
<br>
<br>
<br>
raul@uom:~/compiler/llvm33/build$ make -j2 ENABLE_PROFILING=1 <br>
llvm[0]: Constructing LLVMBuild project information.<br>
checking for i686-pc-linux-gnu-clang... no<br>
checking for i686-pc-linux-gnu-llvm-gcc... no<br>
checking for i686-pc-linux-gnu-gcc... no<br>
checking for clang... no<br>
checking for llvm-gcc... no<br>
checking for gcc... gcc<br>
checking for C compiler default output file name... a.out<br>
checking whether the C compiler works... yes<br>
<font color="FF0000"><b>checking whether we are cross compiling... no<br>
<br>
</b><font color="000000">--<font color="000000">Regards,<br>
<br>
<font color="000000">Raul.</font><br>
</font></font></font><br>
</div>
</body>
</html>