https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108225
Bug ID: 108225 Summary: cross build gdb error for libstdc++'s std_mutex.h on x86_64-w64-mingw32 host Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- /home/cqwrteur/toolchains/x86_64-pc-linux-gnu/x86_64-w64-mingw32/x86_64-w64-mingw32/include/c++/13.0.0/bits/std_mutex.h:151:7: error: '__gthread_cond_init_function' was not declared in this scope; did you mean '__gthread_mutex_init_functio '? 151 | __GTHREAD_COND_INIT_FUNCTION(&_M_cond); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/cqwrteur/toolchains/x86_64-pc-linux-gnu/x86_64-w64-mingw32/x86_64-w64-mingw32/include/c++/13.0.0/bits/std_mutex.h In destructor 'std::__condvar::~__condvar()': /home/cqwrteur/toolchains/x86_64-pc-linux-gnu/x86_64-w64-mingw32/x86_64-w64-mingw32/include/c++/13.0.0/bits/std_mutex.h:157:69: error: '_M_cond' was not declared in this scope 157 | int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); | ^~~~~~~ /home/cqwrteur/toolchains/x86_64-pc-linux-gnu/x86_64-w64-mingw32/x86_64-w64-mingw32/include/c++/13.0.0/bits/std_mutex.h:157:45: error: '__gthread_cond_destroy' was not declared in this scope; did you mean '__gthread_mutex_destroy'? 157 | int __e __attribute__((__unused__)) = __gthread_cond_destroy(&_M_cond); | ^~~~~~~~~~~~~~~~~~~~~~ | __gthread_mutex_destroy