<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi,<br><br>I'm trying to build clang 3.2 on Ubuntu 12.04 (32-bit), but I'm getting the<br>following compiler error well into the build process:<br><br>In file included from /home/nr/builds/llvm-3.2-src/projects/compiler-rt/lib/enable_execute_stack.c:13:<br>/usr/include/i386-linux-gnu/sys/mman.h:23:10: fatal error: 'features.h' file not found<br>#include <features.h><br>         ^<br><br>I am compiling clang with GCC 4.7.2, and configuring it as follows:<br><br>../llvm-3.2-src/configure --enable-optimized --with-gcc-toolchain=/home/nr/programs/gcc/gcc-4.7.2 --prefix=/home/nr/programs/clang/clang-3.2<br><br>What am I doing wrong?<br><br>Thanks,<br>Nate<br>                                          </div></body>
</html>