fatal error: 'features.h' file not found

Hi All,

I am trying to compile the cloud9, when the application try to compile the LLVM it gives me error like this :

COMPILE: clang_linux/full-i386/i386: /home/krishan/cloud9/src/third_party/llvm/projects/compiler-rt/lib/enable_execute_stack.c
COMPILE: clang_linux/full-i386/i386: /home/krishan/cloud9/src/third_party/llvm/projects/compiler-rt/lib/ffsdi2.c
In file included from /home/krishan/cloud9/src/third_party/llvm/projects/compiler-rt/lib/enable_execute_stack.c:13:
/usr/include/x86_64-linux-gnu/sys/mman.h:23:10: fatal error: ‘features.h’ file not found
#include <features.h>
^
1 error generated.
make[5]: *** [/home/krishan/cloud9/src/third_party/llvm-build/tools/clang/runtime/compiler-rt/clang_linux/full-i386/i386/SubDir.lib/enable_execute_stack.o] Error 1
make[5]: *** Waiting for unfinished jobs…
make[5]: Leaving directory /home/krishan/cloud9/src/third_party/llvm/projects/compiler-rt' make[4]: *** [BuildRuntimeLibraries] Error 2 rm /home/krishan/cloud9/src/third_party/llvm-build/Release+Asserts/lib/clang/3.1/lib/linux/.dir make[4]: Leaving directory /home/krishan/cloud9/src/third_party/llvm-build/tools/clang/runtime/compiler-rt’
make[3]: *** [compiler-rt/.makeall] Error 2
make[3]: Leaving directory /home/krishan/cloud9/src/third_party/llvm-build/tools/clang/runtime' make[2]: *** [all] Error 1 make[2]: Leaving directory /home/krishan/cloud9/src/third_party/llvm-build/tools/clang’
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/home/krishan/cloud9/src/third_party/llvm-build/tools’
make: *** [all] Error 1
Error: Command src/build/download_llvm.sh returned non-zero exit status 2 in /home/krishan/cloud9
Hook ‘src/build/download_llvm.sh’ took 11.25 secs
krishan@ubuntu:~/cloud9$

Please help me to solve this problem. Since it’s using gclient to perform the auto compiling, I cannot change anything. Does any have installed cloud9 ?

PS : The features.h file is in the /usr/include directory, but why the compiler couldn’t get it ? is that my library path got screwed it up?

Thank-you

Krish