On Mon, Apr 10, 2023 at 12:16 AM Julian Waters via Gcc <gcc@gcc.gnu.org> wrote: > > Hi all, > > When trying to compile gcc with the revamped WIN32 threading model which > supports C++11 threads, libstdc++ always fails to link with the following > error:
those functions should have been included in newly built libgcc. Since you didn't show the link line it is hard to tell what is going wrong. Thanks, Andrew Pinski > > C:\msys64\ucrt64\x86_64-w64-mingw32\bin\ld.exe: > ../src/c++11/.libs/libc++11convenience.a(thread.o): > in function `__gthread_join': > D:/Eclipse/MINGW-packages/mingw-w64-gcc/src/build-UCRT64/x86_64-w64-mingw32/libstdc++-v3/include/x86 > _64-w64-mingw32/bits/gthr-default.h:451: undefined reference to > `__gthr_win32_join' > C:\msys64\ucrt64\x86_64-w64-mingw32\bin\ld.exe: > ../src/c++11/.libs/libc++11convenience.a(thread.o): > in function `__gthread_create': > D:/Eclipse/MINGW-packages/mingw-w64-gcc/src/build-UCRT64/x86_64-w64-mingw32/libstdc++-v3/include/x86 > _64-w64-mingw32/bits/gthr-default.h:445: undefined reference to > `__gthr_win32_create' > C:\msys64\ucrt64\x86_64-w64-mingw32\bin\ld.exe: > D:/Eclipse/MINGW-packages/mingw-w64-gcc/src/build-UC > RT64/x86_64-w64-mingw32/libstdc++-v3/include/x86_64-w64-mingw32/bits/gthr-default.h:445: > undefined r > eference to `__gthr_win32_create' > > I'm assuming the problem also extends to the other __gthr_win32 routines as > well, __gthr_win32_create just happens to be the first symbol it cannot > find. > > Is there a way to fix this issue? > > best regards, > Julian