@UEZ
from my experience, different mingw-gcc tool-chains have different dependencies for the gcc and binutils like as, ld and ar
you would need to include those dependency DLL's also, unless you use fbc that's integrated in the mingw toolchain
also, msys2 has a different directory structure, instead of having cc1.exe in libexec it has it in lib
but there's one major disadvantage of using the msys2 toolchain for standalone FB distribution, it has a bunch of dependency DLL's that must be included, you can use the Explorer Suite
https://ntcore.com/?page_id=388 to see the dendencies of a dll or exe
also, some libraries compiled with gcc are not compatible between different gcc versions, for example gmp
I think that it also applies to libraries and dll's compiled with FB, so you really should build FB with the respective gcc version rather than simply copying different gcc versions into the FB distribution