Checking patch nptl/pthread_cond_common.c... error: while searching for: #endif /* !__HAVE_64B_ATOMICS */ /* The lock that signalers use. See pthread_cond_wait_common for uses. The lock is our normal three-state lock: not acquired (0) / acquired (1) / acquired-with-futex_wake-request (2). However, we need to preserve the other bits in the unsigned int used for the lock, and therefore it is a little more complex. */ static void __attribute__ ((unused)) __condvar_acquire_lock (pthread_cond_t *cond, int private) { unsigned int s = atomic_load_relaxed (&cond->__data.__g1_orig_size); while ((s & 3) == 0) { if (atomic_compare_exchange_weak_acquire (&cond->__data.__g1_orig_size, &s, s | 1)) return; /* TODO Spinning and back-off. */ } /* We can't change from not acquired to acquired, so try to change to acquired-with-futex-wake-request and do a futex wait if we cannot change from not acquired. */ while (1) { while ((s & 3) != 2) { if (atomic_compare_exchange_weak_acquire (&cond->__data.__g1_orig_size, &s, (s & ~(unsigned int) 3) | 2)) { if ((s & 3) == 0) return; break; } /* TODO Back off. */ } futex_wait_simple (&cond->__data.__g1_orig_size, (s & ~(unsigned int) 3) | 2, private); /* Reload so we see a recent value. */ s = atomic_load_relaxed (&cond->__data.__g1_orig_size); } } error: patch failed: nptl/pthread_cond_common.c:106 error: nptl/pthread_cond_common.c: patch does not apply Checking patch sysdeps/nptl/bits/thread-shared-types.h...