<div>After starting configure as:</div><div><br></div><div><div><font face="courier new, monospace">CC=gcc44 CXX=g++44 ../configure --prefix=/home/dev/software-builds/llvm-3.1_install --enable-optimized --enable-assertions --with-c-include-dirs=/usr/include/c++/4.4.6</font></div>
</div><div><br></div><div>I get this error message:</div><div><br></div><div><font face="courier new, monospace"> ...</font></div><div><div><font face="courier new, monospace"> MKDIR: /home/dev/software-builds/llvm-3.1.src/build/tools/clang/runtime/compiler-rt/clang_linux/asan-i386</font></div>
<div><font face="courier new, monospace"> COMPILE: clang_linux/full-i386/i386: /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/absvdi2.c</font></div><div><font face="courier new, monospace"> COMPILE: clang_linux/full-i386/i386: /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/absvsi2.c</font></div>
<div><font face="courier new, monospace"> COMPILE: clang_linux/full-i386/i386: /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/absvti2.c</font></div><div><font face="courier new, monospace"> COMPILE: clang_linux/full-i386/i386: /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/adddf3.c</font></div>
</div><div><div><font face="courier new, monospace"> COMPILE: clang_linux/full-i386/i386: /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/addsf3.c</font></div><div><font face="courier new, monospace">In file included from /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/absvdi2.c:15:</font></div>
<div><font face="courier new, monospace">In file included from /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/int_lib.h:41:</font></div><div><font face="courier new, monospace">In file included from /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/int_types.h:21:</font></div>
<div><font face="courier new, monospace">/home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/int_endianness.h:71In file included from /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/absvsi2.c:15:</font></div>
<div><font face="courier new, monospace">In file included from /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/int_lib.h:41:</font></div><div><font face="courier new, monospace">In file included from /home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/int_types.h:21:</font></div>
<div><font face="courier new, monospace">/home/dev/software-builds/llvm-3.1.src/projects/compiler-rt/lib/int_endianness.h:71:10: fatal error: 'endian.h' file not found</font></div><div><font face="courier new, monospace">:#include <endian.h></font></div>
<div><font face="courier new, monospace"> ^</font></div><div><font face="courier new, monospace">10: fatal error: 'endian.h' file not found</font></div><div><font face="courier new, monospace">#include <endian.h></font></div>
<div><font face="courier new, monospace"> ^1 error generated.</font></div><div><br></div></div><div><br></div><div>What am I doing wrong?</div><br clear="all"> —Mohamed<br>
<br><br><div class="gmail_quote">On 6 August 2012 22:45, Mohamed Bana <span dir="ltr"><<a href="mailto:mohamed@bana.org.uk" target="_blank">mohamed@bana.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Do I need to apply patches to the 3.1 tarball to make it compile on CentOS 5.6 x86? From my searching it seems like using GCC 4.4 on CentOS 5.6 x86 is supported but it fails when trying to compile ASan.<br><br>What are the right flags to pass to configure? By default CentOS 5.6 uses GCC 4.1 so the headers - even after installing GCC 4.4 - that configure uses when I tell it to us a different compiler are still the 4.1 ones. <br>
<br> CC=gcc44 CXX=g++44 ../configure ...<br><br>This is the bug report: <a href="http://llvm.org/bugs/show_bug.cgi?id=12522" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=12522</a><br><br>I guess my question is what am I missing from the configure line?<span class="HOEnZb"><font color="#888888"><br>
<br clear="all"> —Mohamed<br>
</font></span></blockquote></div><br>