https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120629
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Since this happening during the building of gengtype, you could reduce the enable languages down to just `c,c++` at least that will speed up the building that way.