https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121496
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2025-08-11 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- #ifdef _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK ... #endif #if _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK bool _M_clocklock(clockid_t __clockid, const __gthread_time_t& __ts) { return !pthread_mutex_clocklock(&_M_mutex, __clockid, &__ts); } #endif Oh I see, the `#ifdef _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK` should be `#if _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK`. The change wich caused the differnce is r14-905-g3b7cb33033fbe6 . There are 2 `#ifdef _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK` which needs to change to `#if _GLIBCXX_USE_PTHREAD_MUTEX_CLOCKLOCK`.