https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119012
--- Comment #8 from Sam James <sjames at gcc dot gnu.org> --- Thanks. First, try strip out various bits from the packaging like STAGE1_*FLAGS (which is only really safe if you're 100% sure the stage1 compiler is robust, and I would not make that bet for riscv at this time). Obviously then strip out the other languages except for c,c++,rust to speed up iteration time. You should be able to then start inlining it into a manual script outside of the packaging infra and go from there.