[cfe-dev] errors building clang on Ubuntu 12.04

Nathan Ridge zeratul976 at hotmail.com
Thu Jan 10 15:43:49 PST 2013


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?

Thanks,
Nate
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130110/9b89708f/attachment.html>


More information about the cfe-dev mailing list