Checking patch sysdeps/mach/hurd/Makefile... error: while searching for: sysdep_routines += cthreads endif ifeq (elf, $(subdir)) sysdep-dl-routines += dl-tls-initialized endif ifeq (io, $(subdir)) sysdep_routines += f_setlk close_nocancel close_nocancel_nostatus \ fcntl_nocancel open_nocancel openat_nocancel read_nocancel \ error: patch failed: sysdeps/mach/hurd/Makefile:197 Checking patch sysdeps/mach/hurd/i386/dl-tls-initialized.c... error: sysdeps/mach/hurd/i386/dl-tls-initialized.c: No such file or directory Checking patch sysdeps/mach/hurd/i386/tls.h... error: while searching for: | (desc->high_word & 0xff000000)); \ }) #endif /* The TCB can have any size and the memory following the address the error: patch failed: sysdeps/mach/hurd/i386/tls.h:69 error: while searching for: # define HURD_SEL_LDT(sel) (__builtin_expect ((sel) & 4, 0)) #ifndef SHARED extern unsigned short __init1_desc; # define __HURD_DESC_INITIAL(gs, ds) ((gs) == (ds) || (gs) == __init1_desc) #else # define __HURD_DESC_INITIAL(gs, ds) ((gs) == (ds)) #endif #if !defined (SHARED) || IS_IN (rtld) /* Return 1 if TLS is not initialized yet. */ extern inline bool __attribute__ ((unused)) __LIBC_NO_TLS (void) { unsigned short ds, gs; asm ("movw %%ds, %w0\n" "movw %%gs, %w1" : "=q" (ds), "=q" (gs)); return __glibc_unlikely (__HURD_DESC_INITIAL (gs, ds)); } /* Code to initially initialize the thread pointer. This might need special attention since 'errno' is not yet available and if the operation can cause a failure 'errno' must not be touched. */ static inline bool __attribute__ ((unused)) _hurd_tls_init (tcbhead_t *tcb) { error: patch failed: sysdeps/mach/hurd/i386/tls.h:113 error: while searching for: return success; } # define TLS_INIT_TP(descr) _hurd_tls_init ((tcbhead_t *) (descr)) #else /* defined (SHARED) && !IS_IN (rtld) */ # define __LIBC_NO_TLS() 0 #endif # if __GNUC_PREREQ (6, 0) error: patch failed: sysdeps/mach/hurd/i386/tls.h:183 Checking patch sysdeps/mach/hurd/x86/init-first.c... error: while searching for: #ifndef SHARED static tcbhead_t __init1_tcbhead; #endif /* Things that want to be run before _hurd_init or much anything else. error: patch failed: sysdeps/mach/hurd/x86/init-first.c:40 error: while searching for: _hurd_tls_init (&__init1_tcbhead); /* Make sure __LIBC_NO_TLS () keeps evaluating to 1. */ # ifndef __x86_64__ asm ("movw %%gs,%w0" : "=m" (__init1_desc)); # endif #endif error: patch failed: sysdeps/mach/hurd/x86/init-first.c:159 Checking patch sysdeps/mach/hurd/x86_64/dl-tls-initialized.c... error: sysdeps/mach/hurd/x86_64/dl-tls-initialized.c: No such file or directory Checking patch sysdeps/mach/hurd/x86_64/tls.h... error: while searching for: _Static_assert (offsetof (tcbhead_t, __private_ss) == 0x70, "split stack pointer offset"); /* The TCB can have any size and the memory following the address the thread pointer points to is unspecified. Allocate the TCB there. */ # define TLS_TCB_AT_TP 1 error: patch failed: sysdeps/mach/hurd/x86_64/tls.h:68 error: while searching for: # define TCB_ALIGNMENT 64 # define THREAD_SELF \ (*(tcbhead_t * __seg_fs *) offsetof (tcbhead_t, tcb)) /* Read member of the thread descriptor directly. */ error: patch failed: sysdeps/mach/hurd/x86_64/tls.h:83 error: while searching for: i386_FSGS_BASE_STATE_COUNT); } # if !defined (SHARED) || IS_IN (rtld) extern unsigned char __libc_tls_initialized; # define __LIBC_NO_TLS() __builtin_expect (!__libc_tls_initialized, 0) static inline bool __attribute__ ((unused)) _hurd_tls_init (tcbhead_t *tcb) { error: patch failed: sysdeps/mach/hurd/x86_64/tls.h:168 error: while searching for: return err == 0; } # define TLS_INIT_TP(descr) _hurd_tls_init ((tcbhead_t *) (descr)) # else /* defined (SHARED) && !IS_IN (rtld) */ # define __LIBC_NO_TLS() 0 # endif /* Global scope switch support. */ # define THREAD_GSCOPE_FLAG_UNUSED 0 error: patch failed: sysdeps/mach/hurd/x86_64/tls.h:195 Applying patch sysdeps/mach/hurd/Makefile with 1 reject... Rejected hunk #1. Applying patch sysdeps/mach/hurd/i386/tls.h with 3 rejects... Rejected hunk #1. Rejected hunk #2. Rejected hunk #3. Applying patch sysdeps/mach/hurd/x86/init-first.c with 2 rejects... Rejected hunk #1. Rejected hunk #2. Applying patch sysdeps/mach/hurd/x86_64/tls.h with 4 rejects... Rejected hunk #1. Rejected hunk #2. Rejected hunk #3. Rejected hunk #4.