https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94278
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- The patch from comment#3 fixes the issue for me. The tests still fail one or another way (most not finding libgfortran.a - maybe an error on my side, and a few with unresolved symbols).