[cfe-dev] errors building clang on Ubuntu 12.04
Krzysztof Parzyszek
kparzysz at codeaurora.org
Thu Jan 10 16:05:13 PST 2013
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
-Krzysztof
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
More information about the cfe-dev
mailing list