<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'>
(sorry, forgot to "Reply All")<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: zeratul976@hotmail.com<br>To: kparzysz@codeaurora.org<br>Subject: RE: [cfe-dev] errors building clang on Ubuntu 12.04<br>Date: Fri, 11 Jan 2013 02:29:58 +0000<br><br>

<style><!--
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

--></style>
<div dir="ltr">
> Date: Thu, 10 Jan 2013 18:05:13 -0600<br><div>> From: kparzysz@codeaurora.org<br>> To: cfe-dev@cs.uiuc.edu<br>> Subject: Re: [cfe-dev] errors building clang on Ubuntu 12.04<br>> <br>> On 1/10/2013 5:43 PM, Nathan Ridge wrote:<br>> > 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<br>> > /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'<br>> > 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<br>> > --with-gcc-toolchain=/home/nr/programs/gcc/gcc-4.7.2<br>> > --prefix=/home/nr/programs/clang/clang-3.2<br>> ><br>> > What am I doing wrong?<br>> ><br>> <br>> On my Ubuntu box it's in /usr/include.  It came with libc6-dev:<br>> <br>> $ dpkg -S /usr/include/features.h<br>> libc6-dev: /usr/include/features.h<br><br>I have a features.h in /usr/include, but I'm still getting the error...<br><br>Thanks,<br>Nate<br></div>                                          </div></div>                                        </div></body>
</html>