Alright, you do have a system installation of ROOT in /usr/local
that interferes with the build!
/Users/gligorov/root-6.22.00/build/include/module.modulemap:3:8: error: redefinition of module 'ROOT_Foundation_C'
module ROOT_Foundation_C {
^
/usr/local/include/module.modulemap:3:8: note: previously defined here
module ROOT_Foundation_C {
^
Also see the discussion here.