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

Someone was complaining about this the other day on IRC and I can’t remember the proper fix. But if I remember correctly this is coming from compiler-rt and you can build clang without it :wink: