Checking patch math/Makefile... error: while searching for: test-nan-overflow \ test-nan-payload \ test-narrow-macros \ test-nearbyint-except \ test-nearbyint-except-2 \ test-powl \ error: patch failed: math/Makefile:563 error: math/Makefile: patch does not apply Checking patch math/test-narrowing-trap.c... error: math/test-narrowing-trap.c: already exists in working directory Checking patch sysdeps/loongarch/fenv_private.h... error: while searching for: libc_feupdateenv_test_loongarch (fenv_t *envp, int excepts) { /* int ret = fetestexcept (excepts); feupdateenv (envp); return ret; */ int cw, temp; /* Get current control word. */ _FPU_GETCW (cw); /* Set flag bits (which are accumulative), and *also* set the cause bits. The setting of the cause bits is what actually causes the hardware to generate the exception, if the corresponding enable bit is set as well. */ temp = cw & FE_ALL_EXCEPT; temp |= envp->__fp_control_register | (temp << CAUSE_SHIFT); /* Set new state. */ _FPU_SETCW (temp); return cw & excepts & FE_ALL_EXCEPT; } error: patch failed: sysdeps/loongarch/fenv_private.h:115 error: sysdeps/loongarch/fenv_private.h: patch does not apply Checking patch sysdeps/loongarch/fpu_control.h... error: while searching for: #define _FPU_GET_ENABLES(cw) __asm__ volatile ("movfcsr2gr %0,$fcsr1" : "=r"(cw)) #define _FPU_SET_ENABLES(cw) __asm__ volatile ("movgr2fcsr $fcsr1,%0" : : "r"(cw)) #define _FPU_GET_RM(cw) __asm__ volatile ("movfcsr2gr %0,$fcsr3" : "=r"(cw)) #define _FPU_SET_RM(cw) __asm__ volatile ("movgr2fcsr $fcsr3,%0" : : "r"(cw)) error: patch failed: sysdeps/loongarch/fpu_control.h:97 error: sysdeps/loongarch/fpu_control.h: patch does not apply