Benjamin, it might help to tell us why you are trying to use gcc instead of clang (on macOS). As you’ve seen, gcc can’t even parse the system SDK, so just imagine what kind of other pain lies beyond.
libstdc++ on macOS is ancient and has no future.
Sean