Problem installing/compiling root in 15.4 (even with latest XCode)

I found a similar problem reported on root forum (very old, also a different OS and a different root version) but maybe this can help you figure out the problem.

There is another link within the problem attached above. All I understood was that it has something to do with the compiler. Can you provide any information what complier you are using? (basically the Xcode version and the Apple clang version)