Checking patch config.h.in... error: while searching for: /* LOONGARCH floating-point ABI for ld.so. */ #undef LOONGARCH_ABI_FRLEN /* Linux specific: minimum supported kernel version. */ #undef __LINUX_KERNEL_VERSION error: patch failed: config.h.in:138 error: config.h.in: patch does not apply Checking patch sysdeps/loongarch/__longjmp.S... error: while searching for: ENTRY (__longjmp) #ifdef PTR_MANGLE REG_L t0, a0, 0*SZREG PTR_DEMANGLE (ra, t0, t1, t2) REG_L t0, a0, 1*SZREG PTR_DEMANGLE2 (sp, t0, t1) #else error: patch failed: sysdeps/loongarch/__longjmp.S:22 error: sysdeps/loongarch/__longjmp.S: patch does not apply Checking patch sysdeps/loongarch/configure... error: while searching for: $as_echo "#define HIDDEN_VAR_NEEDS_DYNAMIC_RELOC 1" >>confdefs.h error: patch failed: sysdeps/loongarch/configure:3 error: sysdeps/loongarch/configure: patch does not apply Checking patch sysdeps/loongarch/configure.ac... error: while searching for: dnl It is always possible to access static and hidden symbols in an dnl position independent way. AC_DEFINE(HIDDEN_VAR_NEEDS_DYNAMIC_RELOC) error: patch failed: sysdeps/loongarch/configure.ac:4 error: sysdeps/loongarch/configure.ac: patch does not apply Checking patch sysdeps/loongarch/setjmp.S... error: while searching for: ENTRY (__sigsetjmp) #ifdef PTR_MANGLE PTR_MANGLE (t0, ra, t1, t2) REG_S t0, a0, 0*SZREG PTR_MANGLE2 (t0, sp, t1) REG_S t0, a0, 1*SZREG error: patch failed: sysdeps/loongarch/setjmp.S:30 error: sysdeps/loongarch/setjmp.S: patch does not apply Checking patch sysdeps/unix/sysv/linux/loongarch/sysdep.h... error: while searching for: /* Pointer mangling is supported for LoongArch. */ /* Load or store to/from a got-relative EXPR into/from G, using T. Note G and T are register names. */ #define LDST_GLOBAL(OP, G, T, EXPR) \ pcalau12i T, %got_pc_hi20(EXPR); \ OP T, T, %got_pc_lo12(EXPR); \ OP G, T, 0; /* Load or store to/from a pc-relative EXPR into/from G, using T. Note G and T are register names. */ #define LDST_PCREL(OP, G, T, EXPR) \ pcalau12i T, %pc_hi20(EXPR); \ OP G, T, %pc_lo12(EXPR); #if (IS_IN (rtld) \ || (!defined SHARED && (IS_IN (libc) \ || IS_IN (libpthread)))) #ifdef __ASSEMBLER__ #define PTR_MANGLE(dst, src, guard, tmp) \ LDST_PCREL (REG_L, guard, tmp, __pointer_chk_guard_local); \ PTR_MANGLE2 (dst, src, guard); #define PTR_DEMANGLE(dst, src, guard, tmp) \ LDST_PCREL (REG_L, guard, tmp, __pointer_chk_guard_local); \ PTR_DEMANGLE2 (dst, src, guard); /* Use PTR_MANGLE2 for efficiency if guard is already loaded. */ #define PTR_MANGLE2(dst, src, guard) \ error: patch failed: sysdeps/unix/sysv/linux/loongarch/sysdep.h:316 error: sysdeps/unix/sysv/linux/loongarch/sysdep.h: patch does not apply