https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98386
--- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> --- Created attachment 49823 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49823&action=edit test patch This does an unlink before the rename, and also adds more logging. If it fails, please try with -fdump-lang-module added and provide that dump