Failed building Clang: use of undeclared identifier '__NR_rename'

Hello,

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: https://gist.github.com/hichris1234/22b48da0464883f6eb66.

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

Sincerely,
Chris

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

It sounds like you need to install the kernel headers.