Checking patch config.h.in... Hunk #1 succeeded at 292 (offset 6 lines). Checking patch configure... Checking patch configure.ac... Checking patch include/atomic.h... Hunk #1 succeeded at 34 (offset 7 lines). error: while searching for: __atg11_oldval; }) #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. #endif /* The following functions are a subset of the atomic operations provided by C11. Usually, a function named atomic_OP_MO(args) is equivalent to C11's atomic_OP_explicit(args, memory_order_MO); exceptions noted below. */ /* We require 32b atomic operations; some archs also support 64b atomic operations. */ void __atomic_link_error (void); # if __HAVE_64B_ATOMICS == 1 # define __atomic_check_size(mem) \ if ((sizeof (*mem) != 4) && (sizeof (*mem) != 8)) \ __atomic_link_error (); # else # define __atomic_check_size(mem) \ if (sizeof (*mem) != 4) \ __atomic_link_error (); # endif /* We additionally provide 8b and 16b atomic loads and stores; we do not yet need other atomic operations of such sizes, and restricting the support to loads and stores makes this easier for archs that do not have native support for atomic operations to less-than-word-sized data. */ # if __HAVE_64B_ATOMICS == 1 # define __atomic_check_size_ls(mem) \ if ((sizeof (*mem) != 1) && (sizeof (*mem) != 2) && (sizeof (*mem) != 4) \ && (sizeof (*mem) != 8)) \ __atomic_link_error (); # else # define __atomic_check_size_ls(mem) \ if ((sizeof (*mem) != 1) && (sizeof (*mem) != 2) && sizeof (*mem) != 4) \ __atomic_link_error (); # endif # define atomic_thread_fence_acquire() \ __atomic_thread_fence (__ATOMIC_ACQUIRE) error: patch failed: include/atomic.h:74 Hunk #3 succeeded at 567 (offset 477 lines). Hunk #4 succeeded at 812 (offset 624 lines). Checking patch nptl/pthread_spin_lock.c... Checking patch nptl/pthread_spin_trylock.c... Checking patch sysdeps/aarch64/atomic-machine.h... error: while searching for: /* Copyright (C) 2003-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ #ifndef _AARCH64_ATOMIC_MACHINE_H #define _AARCH64_ATOMIC_MACHINE_H 1 #define __HAVE_64B_ATOMICS 1 #define ATOMIC_EXCHANGE_USES_CAS 0 #endif error: patch failed: sysdeps/aarch64/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/aarch64/atomic-machine.h: patch does not apply Checking patch sysdeps/alpha/atomic-machine.h... error: while searching for: /* Copyright (C) 2003-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ #include #define __HAVE_64B_ATOMICS 1 /* XXX Is this actually correct? */ #define ATOMIC_EXCHANGE_USES_CAS 1 error: patch failed: sysdeps/alpha/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/alpha/atomic-machine.h: patch does not apply Checking patch sysdeps/arc/atomic-machine.h... error: while searching for: /* Low-level functions for atomic operations. ARC version. Copyright (C) 2020-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ #ifndef _ARC_BITS_ATOMIC_H #define _ARC_BITS_ATOMIC_H 1 #define __HAVE_64B_ATOMICS 0 /* ARC does have legacy atomic EX reg, [mem] instruction but the micro-arch is not as optimal as LLOCK/SCOND specially for SMP. */ #define ATOMIC_EXCHANGE_USES_CAS 1 #endif /* _ARC_BITS_ATOMIC_H */ error: patch failed: sysdeps/arc/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/arc/atomic-machine.h: patch does not apply Checking patch sysdeps/arm/atomic-machine.h... error: while searching for: /* Atomic operations. Pure ARM version. Copyright (C) 2002-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ #define __HAVE_64B_ATOMICS 0 #define ATOMIC_EXCHANGE_USES_CAS 1 error: patch failed: sysdeps/arm/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/arm/atomic-machine.h: patch does not apply Checking patch sysdeps/csky/atomic-machine.h... error: while searching for: /* Atomic operations. C-SKY version. Copyright (C) 2018-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ #ifndef __CSKY_ATOMIC_H_ #define __CSKY_ATOMIC_H_ #define __HAVE_64B_ATOMICS 0 #define ATOMIC_EXCHANGE_USES_CAS 1 #endif /* atomic-machine.h */ error: patch failed: sysdeps/csky/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/csky/atomic-machine.h: patch does not apply Checking patch sysdeps/ia64/atomic-machine.h... error: while searching for: /* Copyright (C) 2003-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #include #define __HAVE_64B_ATOMICS 1 /* XXX Is this actually correct? */ #define ATOMIC_EXCHANGE_USES_CAS 0 error: patch failed: sysdeps/ia64/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/ia64/atomic-machine.h: patch does not apply Checking patch sysdeps/m68k/coldfire/atomic-machine.h... error: while searching for: /* Copyright (C) 2003-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ #ifndef _ATOMIC_MACHINE_H #define _ATOMIC_MACHINE_H 1 /* If we have just non-atomic operations, we can as well make them wide. */ #define __HAVE_64B_ATOMICS 1 /* XXX Is this actually correct? */ #define ATOMIC_EXCHANGE_USES_CAS 1 #endif error: patch failed: sysdeps/m68k/coldfire/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/m68k/coldfire/atomic-machine.h: patch does not apply Checking patch sysdeps/m68k/m680x0/m68020/atomic-machine.h... error: while searching for: /* Copyright (C) 2003-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ /* GCC does not support lock-free 64-bit atomic_load/store. */ #define __HAVE_64B_ATOMICS 0 /* XXX Is this actually correct? */ #define ATOMIC_EXCHANGE_USES_CAS 1 error: patch failed: sysdeps/m68k/m680x0/m68020/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/m68k/m680x0/m68020/atomic-machine.h: patch does not apply Checking patch sysdeps/microblaze/atomic-machine.h... error: while searching for: /* Copyright (C) 2003-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ #include #define __HAVE_64B_ATOMICS 0 /* XXX Is this actually correct? */ #define ATOMIC_EXCHANGE_USES_CAS 1 error: patch failed: sysdeps/microblaze/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/microblaze/atomic-machine.h: patch does not apply Checking patch sysdeps/mips/atomic-machine.h... error: while searching for: /* Low-level functions for atomic operations. Mips version. Copyright (C) 2005-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ #ifndef _MIPS_ATOMIC_MACHINE_H #define _MIPS_ATOMIC_MACHINE_H 1 #include #if _MIPS_SIM == _ABIO32 || _MIPS_SIM == _ABIN32 #define __HAVE_64B_ATOMICS 0 #else #define __HAVE_64B_ATOMICS 1 #endif /* MIPS is an LL/SC machine. However, XLP has a direct atomic exchange instruction which will be used by __atomic_exchange_n. */ #ifdef _MIPS_ARCH_XLP # define ATOMIC_EXCHANGE_USES_CAS 0 #else # define ATOMIC_EXCHANGE_USES_CAS 1 #endif #endif /* atomic-machine.h */ error: patch failed: sysdeps/mips/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/mips/atomic-machine.h: patch does not apply Checking patch sysdeps/or1k/atomic-machine.h... error: while searching for: /* Atomic operations. OpenRISC version. Copyright (C) 2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ #ifndef __OR1K_ATOMIC_H_ #define __OR1K_ATOMIC_H_ #include #define __HAVE_64B_ATOMICS 0 #define ATOMIC_EXCHANGE_USES_CAS 1 #endif /* atomic-machine.h */ error: patch failed: sysdeps/or1k/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/or1k/atomic-machine.h: patch does not apply Checking patch sysdeps/powerpc/powerpc32/atomic-machine.h... error: while searching for: #endif #define __ARCH_ACQ_INSTR "isync" #define __HAVE_64B_ATOMICS 0 #define ATOMIC_EXCHANGE_USES_CAS 1 error: patch failed: sysdeps/powerpc/powerpc32/atomic-machine.h:33 Checking patch sysdeps/powerpc/powerpc64/atomic-machine.h... error: while searching for: #endif #define __ARCH_ACQ_INSTR "isync" #define __HAVE_64B_ATOMICS 1 #define ATOMIC_EXCHANGE_USES_CAS 1 error: patch failed: sysdeps/powerpc/powerpc64/atomic-machine.h:33 Checking patch sysdeps/s390/atomic-machine.h... error: while searching for: /* Copyright (C) 2003-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #ifdef __s390x__ # define __HAVE_64B_ATOMICS 1 #else # define __HAVE_64B_ATOMICS 0 #endif #define ATOMIC_EXCHANGE_USES_CAS 1 error: patch failed: sysdeps/s390/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/s390/atomic-machine.h: patch does not apply Checking patch sysdeps/sparc/atomic-machine.h... error: while searching for: #ifndef _ATOMIC_MACHINE_H #define _ATOMIC_MACHINE_H 1 #ifdef __arch64__ # define __HAVE_64B_ATOMICS 1 #else # define __HAVE_64B_ATOMICS 0 #endif /* XXX Is this actually correct? */ #define ATOMIC_EXCHANGE_USES_CAS __HAVE_64B_ATOMICS #ifdef __sparc_v9__ extern void __cpu_relax (void); error: patch failed: sysdeps/sparc/atomic-machine.h:19 Checking patch sysdeps/unix/sysv/linux/hppa/atomic-machine.h... error: while searching for: /* Copyright (C) 2003-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ #ifndef _ATOMIC_MACHINE_H #define _ATOMIC_MACHINE_H 1 #define __HAVE_64B_ATOMICS 0 /* XXX Is this actually correct? */ #define ATOMIC_EXCHANGE_USES_CAS 1 #endif /* _ATOMIC_MACHINE_H */ error: patch failed: sysdeps/unix/sysv/linux/hppa/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/unix/sysv/linux/hppa/atomic-machine.h: patch does not apply Checking patch sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h... error: while searching for: /* Copyright (C) 2010-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ #ifndef _ATOMIC_MACHINE_H #define _ATOMIC_MACHINE_H 1 #include #define __HAVE_64B_ATOMICS 0 /* XXX Is this actually correct? */ #define ATOMIC_EXCHANGE_USES_CAS 1 #endif error: patch failed: sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/unix/sysv/linux/m68k/coldfire/atomic-machine.h: patch does not apply Checking patch sysdeps/unix/sysv/linux/nios2/atomic-machine.h... error: while searching for: /* Low-level functions for atomic operations. Nios II version. Copyright (C) 2012-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library. If not, see . */ #ifndef _NIOS2_ATOMIC_MACHINE_H #define _NIOS2_ATOMIC_MACHINE_H 1 #define __HAVE_64B_ATOMICS 0 /* XXX Is this actually correct? */ #define ATOMIC_EXCHANGE_USES_CAS 1 #endif /* _NIOS2_ATOMIC_MACHINE_H */ error: patch failed: sysdeps/unix/sysv/linux/nios2/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/unix/sysv/linux/nios2/atomic-machine.h: patch does not apply Checking patch sysdeps/unix/sysv/linux/riscv/atomic-machine.h... error: while searching for: #ifdef __riscv_atomic # define __HAVE_64B_ATOMICS (__riscv_xlen >= 64) # define ATOMIC_EXCHANGE_USES_CAS 0 /* Miscellaneous. */ # define asm_amo(which, ordering, mem, value) ({ \ error: patch failed: sysdeps/unix/sysv/linux/riscv/atomic-machine.h:21 Checking patch sysdeps/unix/sysv/linux/sh/atomic-machine.h... error: while searching for: /* Atomic operations used inside libc. Linux/SH version. Copyright (C) 2003-2022 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, see . */ #define __HAVE_64B_ATOMICS 0 /* XXX Is this actually correct? */ #define ATOMIC_EXCHANGE_USES_CAS 1 error: patch failed: sysdeps/unix/sysv/linux/sh/atomic-machine.h:1 error: removal patch leaves file contents error: sysdeps/unix/sysv/linux/sh/atomic-machine.h: patch does not apply Checking patch sysdeps/x86/atomic-machine.h... error: while searching for: #include /* For mach. */ #ifdef __x86_64__ # define __HAVE_64B_ATOMICS 1 #else /* Since the Pentium, i386 CPUs have supported 64-bit atomics, but the i386 psABI supplement provides only 4-byte alignment for uint64_t inside structs, so it is currently not possible to use 64-bit atomics on this platform. */ # define __HAVE_64B_ATOMICS 0 #endif #define ATOMIC_EXCHANGE_USES_CAS 0 #define atomic_spin_nop() __asm ("pause") #endif /* atomic-machine.h */ error: patch failed: sysdeps/x86/atomic-machine.h:21 Applied patch config.h.in cleanly. Applied patch configure cleanly. Applied patch configure.ac cleanly. Applying patch include/atomic.h with 1 reject... Hunk #1 applied cleanly. Rejected hunk #2. Hunk #3 applied cleanly. Hunk #4 applied cleanly. Applied patch nptl/pthread_spin_lock.c cleanly. Applied patch nptl/pthread_spin_trylock.c 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. Applying patch sysdeps/sparc/atomic-machine.h with 1 reject... Rejected hunk #1. Applying patch sysdeps/unix/sysv/linux/riscv/atomic-machine.h with 1 reject... Rejected hunk #1. Applying patch sysdeps/x86/atomic-machine.h with 1 reject... Rejected hunk #1.