Checking patch crypt/crypt_util.c... Checking patch elf/dl-deps.c... Checking patch elf/dl-lookup.c... Hunk #1 succeeded at 697 (offset 2 lines). Hunk #2 succeeded at 708 (offset 2 lines). Checking patch elf/dl-open.c... Checking patch include/atomic.h... error: while searching for: #endif #ifndef atomic_full_barrier # define atomic_full_barrier() __sync_synchronize() #endif #ifndef atomic_read_barrier # define atomic_read_barrier() atomic_full_barrier () #endif #ifndef atomic_write_barrier # define atomic_write_barrier() atomic_full_barrier () #endif /* This is equal to 1 iff the architecture supports 64b atomic operations. */ #ifndef __HAVE_64B_ATOMICS #error Unable to determine if 64-bit atomics are present. error: patch failed: include/atomic.h:104 Checking patch include/list.h... Checking patch malloc/arena.c... Checking patch manual/llio.texi... Checking patch manual/memory.texi... error: while searching for: @c mutex_init ok @c mutex_lock (just-created mutex) ok, returns locked @c mutex_lock (list_lock) dup @asulock @aculock @c atomic_write_barrier ok @c mutex_unlock (list_lock) @aculock @c atomic_fetch_add_relaxed ok @c reused_arena @asulock @aculock error: patch failed: manual/memory.texi:395 Checking patch manual/startup.texi... Checking patch nptl/nptl-stack.c... Checking patch nptl/pthread_mutex_setprioceiling.c... Checking patch nptl/sem_post.c... error: while searching for: /* We must need to synchronize with consumers of this token, so the atomic increment must have release MO semantics. */ atomic_write_barrier (); atomic_fetch_add_release (futex, 1); /* We always have to assume it is a shared semaphore. */ futex_wake (futex, 1, LLL_SHARED); error: patch failed: nptl/sem_post.c:90 Checking patch stdlib/msort.c... Checking patch sysdeps/aarch64/nptl/tls.h... Checking patch sysdeps/alpha/atomic-machine.h... error: while searching for: /* XXX Is this actually correct? */ #define ATOMIC_EXCHANGE_USES_CAS 1 #define atomic_full_barrier() __asm ("mb" : : : "memory"); #define atomic_read_barrier() __asm ("mb" : : : "memory"); #define atomic_write_barrier() __asm ("wmb" : : : "memory"); error: patch failed: sysdeps/alpha/atomic-machine.h:21 Checking patch sysdeps/alpha/nptl/tls.h... Checking patch sysdeps/arc/nptl/tls.h... Checking patch sysdeps/arm/nptl/tls.h... Checking patch sysdeps/csky/nptl/tls.h... Checking patch sysdeps/hppa/dl-fptr.c... Hunk #1 succeeded at 371 (offset 2 lines). Checking patch sysdeps/hppa/dl-machine.h... Checking patch sysdeps/hppa/nptl/tls.h... Checking patch sysdeps/htl/pt-once.c... Checking patch sysdeps/ia64/nptl/tls.h... Checking patch sysdeps/m68k/nptl/tls.h... Checking patch sysdeps/mach/hurd/htl/pt-mutex-destroy.c... Checking patch sysdeps/mach/hurd/htl/pt-mutex.h... Checking patch sysdeps/microblaze/nptl/tls.h... Checking patch sysdeps/mips/nptl/tls.h... Checking patch sysdeps/nios2/nptl/tls.h... Checking patch sysdeps/or1k/nptl/tls.h... Checking patch sysdeps/powerpc/nptl/tls.h... Checking patch sysdeps/powerpc/powerpc32/atomic-machine.h... error: while searching for: #define __HAVE_64B_ATOMICS 0 #define ATOMIC_EXCHANGE_USES_CAS 1 #ifdef _ARCH_PWR4 /* * Newer powerpc64 processors support the new "light weight" sync (lwsync) * So if the build is using -mcpu=[power4,power5,power5+,970] we can * safely use lwsync. */ # define atomic_read_barrier() __asm ("lwsync" ::: "memory") /* * "light weight" sync can also be used for the release barrier. */ # define atomic_write_barrier() __asm ("lwsync" ::: "memory") #else /* * Older powerpc32 processors don't support the new "light weight" * sync (lwsync). So the only safe option is to use normal sync * for all powerpc32 applications. */ # define atomic_read_barrier() __asm ("sync" ::: "memory") # define atomic_write_barrier() __asm ("sync" ::: "memory") #endif error: patch failed: sysdeps/powerpc/powerpc32/atomic-machine.h:36 Checking patch sysdeps/powerpc/powerpc64/atomic-machine.h... error: while searching for: #define __HAVE_64B_ATOMICS 1 #define ATOMIC_EXCHANGE_USES_CAS 1 /* * All powerpc64 processors support the new "light weight" sync (lwsync). */ #define atomic_read_barrier() __asm ("lwsync" ::: "memory") /* * "light weight" sync can also be used for the release barrier. */ #define atomic_write_barrier() __asm ("lwsync" ::: "memory") error: patch failed: sysdeps/powerpc/powerpc64/atomic-machine.h:36 Checking patch sysdeps/riscv/nptl/tls.h... Checking patch sysdeps/s390/nptl/tls.h... Checking patch sysdeps/sh/nptl/tls.h... Checking patch sysdeps/sparc/atomic-machine.h... error: while searching for: #define ATOMIC_EXCHANGE_USES_CAS __HAVE_64B_ATOMICS #ifdef __sparc_v9__ # define atomic_full_barrier() \ __asm __volatile ("membar #LoadLoad | #LoadStore" \ " | #StoreLoad | #StoreStore" : : : "memory") # define atomic_read_barrier() \ __asm __volatile ("membar #LoadLoad | #LoadStore" : : : "memory") # define atomic_write_barrier() \ __asm __volatile ("membar #LoadStore | #StoreStore" : : : "memory") extern void __cpu_relax (void); # define atomic_spin_nop() __cpu_relax () error: patch failed: sysdeps/sparc/atomic-machine.h:29 Checking patch sysdeps/sparc/nptl/tls.h... Checking patch sysdeps/unix/sysv/linux/arm/atomic-machine.h... Checking patch sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h... error: while searching for: /* XXX Is this actually correct? */ #define ATOMIC_EXCHANGE_USES_CAS 1 # define atomic_full_barrier() \ (INTERNAL_SYSCALL_CALL (atomic_barrier), (void) 0) #endif error: patch failed: sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h:25 Checking patch sysdeps/x86/atomic-machine.h... error: while searching for: #endif #define ATOMIC_EXCHANGE_USES_CAS 0 #define atomic_read_barrier() __asm ("" ::: "memory") #define atomic_write_barrier() __asm ("" ::: "memory") #define atomic_spin_nop() __asm ("pause") #endif /* atomic-machine.h */ error: patch failed: sysdeps/x86/atomic-machine.h:32 Applied patch crypt/crypt_util.c cleanly. Applied patch elf/dl-deps.c cleanly. Applied patch elf/dl-lookup.c cleanly. Applied patch elf/dl-open.c cleanly. Applying patch include/atomic.h with 1 reject... Rejected hunk #1. Applied patch include/list.h cleanly. Applied patch malloc/arena.c cleanly. Applied patch manual/llio.texi cleanly. Applying patch manual/memory.texi with 1 reject... Rejected hunk #1. Applied patch manual/startup.texi cleanly. Applied patch nptl/nptl-stack.c cleanly. Applied patch nptl/pthread_mutex_setprioceiling.c cleanly. Applying patch nptl/sem_post.c with 1 reject... Rejected hunk #1. Applied patch stdlib/msort.c cleanly. Applied patch sysdeps/aarch64/nptl/tls.h cleanly. Applying patch sysdeps/alpha/atomic-machine.h with 1 reject... Rejected hunk #1. Applied patch sysdeps/alpha/nptl/tls.h cleanly. Applied patch sysdeps/arc/nptl/tls.h cleanly. Applied patch sysdeps/arm/nptl/tls.h cleanly. Applied patch sysdeps/csky/nptl/tls.h cleanly. Applied patch sysdeps/hppa/dl-fptr.c cleanly. Applied patch sysdeps/hppa/dl-machine.h cleanly. Applied patch sysdeps/hppa/nptl/tls.h cleanly. Applied patch sysdeps/htl/pt-once.c cleanly. Applied patch sysdeps/ia64/nptl/tls.h cleanly. Applied patch sysdeps/m68k/nptl/tls.h cleanly. Applied patch sysdeps/mach/hurd/htl/pt-mutex-destroy.c cleanly. Applied patch sysdeps/mach/hurd/htl/pt-mutex.h cleanly. Applied patch sysdeps/microblaze/nptl/tls.h cleanly. Applied patch sysdeps/mips/nptl/tls.h cleanly. Applied patch sysdeps/nios2/nptl/tls.h cleanly. Applied patch sysdeps/or1k/nptl/tls.h cleanly. Applied patch sysdeps/powerpc/nptl/tls.h cleanly. Applying patch sysdeps/powerpc/powerpc32/atomic-machine.h with 1 reject... Rejected hunk #1. Applying patch sysdeps/powerpc/powerpc64/atomic-machine.h with 1 reject... Rejected hunk #1. Applied patch sysdeps/riscv/nptl/tls.h cleanly. Applied patch sysdeps/s390/nptl/tls.h cleanly. Applied patch sysdeps/sh/nptl/tls.h cleanly. Applying patch sysdeps/sparc/atomic-machine.h with 1 reject... Rejected hunk #1. Applied patch sysdeps/sparc/nptl/tls.h cleanly. Applied patch sysdeps/unix/sysv/linux/arm/atomic-machine.h cleanly. Applying patch sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h with 1 reject... Rejected hunk #1. Applying patch sysdeps/x86/atomic-machine.h with 1 reject... Rejected hunk #1.