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!


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: