Failed building Clang: use of undeclared identifier '__NR_rename'


When building Clang with ninja, I’m getting errors like “use of undeclared identifier ‘_NR*’”. I’m not sure why I’m getting these. I’m building on x86 Ubuntu 14.04.

Here’s the full error:

How can I fix this? Thank you for your help!


Sorry, I posted this to the wrong list. Can you delete this?

It sounds like you need to install the kernel headers.