https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103445
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- Sorry, I don't understand anything above. I don't care whether you're using mingw or mingw-w64, what I asked is how old it is. Libstdc++ expects a recent version, and I'm not surprised if it doesn't work with older versions. It's just not worth the effort to support very old version. Maybe we can add some more configure checks for _wstat64 and ftruncate64 and skip all the filesystem code if building against an old CRT.