https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119673
Bug ID: 119673 Summary: MinGW-w64 GCC with win32 thread model cannot compile 'std' module Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: c at cyano dot cn Target Milestone: --- Created attachment 61032 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61032&action=edit Full error message Failed with error: ``` error: 'bool __gnu_cxx::__is_single_threaded()' exposes TU-local entity 'int __gthread_active_p()' note: 'int __gthread_active_p()' declared with internal linkage (and many similar errors on other gthread functions...) ``` GCC is configured with: ``` Using built-in specs. COLLECT_GCC=Z:\tmp\test\mingw64-win32-15\mingw64-win32-15\bin\g++.exe COLLECT_LTO_WRAPPER=Z:/tmp/test/mingw64-win32-15/mingw64-win32-15/bin/../lib/gcc/x86_64-w64-mingw32/15/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../configure --prefix= --libexecdir=/lib --with-gcc-major-version-only --target=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --build=x86_64-alpine-linux-musl --disable-plugin --disable-shared --enable-static --without-pic --disable-bootstrap --enable-checking=release --enable-languages=c,c++ --disable-libmpx --disable-multilib --enable-nls --enable-threads=win32 --disable-win32-registry --without-libcc1 --with-libiconv CFLAGS=-Os CXXFLAGS=-Os LDFLAGS='-s --static' CFLAGS_FOR_TARGET=-Os CXXFLAGS_FOR_TARGET=-Os 'LDFLAGS_FOR_TARGET=-s --static' Thread model: win32 Supported LTO compression algorithms: zlib gcc version 15.0.1 20250330 (experimental) (GCC) ``` The toolchain binary avialable here: https://github.com/CyanoHao/mingw-lite/actions/runs/14321793190 (Artifact "mingw64-win32-15", "mingw64-win32-15-20250330-r0.tar.zst" in the artifact zip arcive)