[cfe-dev] FW: errors building clang on Ubuntu 12.04
Nathan Ridge
zeratul976 at hotmail.com
Thu Jan 10 18:31:01 PST 2013
(sorry, forgot to "Reply All")
From: zeratul976 at hotmail.com
To: kparzysz at codeaurora.org
Subject: RE: [cfe-dev] errors building clang on Ubuntu 12.04
Date: Fri, 11 Jan 2013 02:29:58 +0000
> Date: Thu, 10 Jan 2013 18:05:13 -0600
> From: kparzysz at codeaurora.org
> To: cfe-dev at cs.uiuc.edu
> Subject: Re: [cfe-dev] errors building clang on Ubuntu 12.04
>
> On 1/10/2013 5:43 PM, Nathan Ridge wrote:
> > Hi,
> >
> > I'm trying to build clang 3.2 on Ubuntu 12.04 (32-bit), but I'm getting the
> > following compiler error well into the build process:
> >
> > In file included from
> > /home/nr/builds/llvm-3.2-src/projects/compiler-rt/lib/enable_execute_stack.c:13:
> > /usr/include/i386-linux-gnu/sys/mman.h:23:10: fatal error: 'features.h'
> > file not found
> > #include <features.h>
> > ^
> >
> > I am compiling clang with GCC 4.7.2, and configuring it as follows:
> >
> > ../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
> >
> > What am I doing wrong?
> >
>
> On my Ubuntu box it's in /usr/include. It came with libc6-dev:
>
> $ dpkg -S /usr/include/features.h
> libc6-dev: /usr/include/features.h
I have a features.h in /usr/include, but I'm still getting the error...
Thanks,
Nate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130111/965728b2/attachment.html>
More information about the cfe-dev
mailing list