Hello, as reported here there are several things that can lead to this problem :
using GCC instead of XCode-provided CLang
having Coreutils or Binutils in your env PATH.
Try to remove any reference from your env PATH before compiling again.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: