https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95670
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2020-06-14
CC| |anlauf at gcc dot gnu.org
Status|UNCONFIRMED |WAITING
Ever confirmed|0 |1
--- Comment #1 from anlauf at gcc dot gnu.org ---
This is clearly not a compiler bug but a user error.
The compiler tells you it found a module file from a different compiler.
You need to cleanup, check all paths and recompile everything.