https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116827
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Why component=libstdc++? The errors are all coming from macOS libc headers. Even the ones with a location in libstdc++ headers are because something from <stddef.h> or <wchar.h> is missing.