Building root from source on MacOS 13.3

I case somebody else has this problem:
From an old topic Build Error I found out that using make build with -Druntime_cxxmodules=OFF will “solve” the problem. However, I would still like to know what the problem is and how I can solve it.
Thanks