https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108225
--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> --- And it isn't specific to Canadian cross compilation either. It happens for any build with the latest mingw-w64 headers, both native and cross. And that has nothing to do with std::mutex, which is the subject of this bug report.