https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81797
--- Comment #20 from Chris Johns <chrisj at rtems dot org> --- I have been testing the patch attached to RTEMS ticket https://devel.rtems.org/ticket/3171 and it has built gcc once for ARM and then it did not build for SPARC plus SPARC build can fail on different header files.