Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/delve.spec'], chrootPath='/home/lib/mock/dist-ocs23-base-build-296761-28839/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/delve.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/delve-1.23.1-1.ocs23.src.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/delve.spec'], chrootPath='/home/lib/mock/dist-ocs23-base-build-296761-28839/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/delve.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.r2o7p4 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf delve-1.23.1 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/delve-1.23.1.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd delve-1.23.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #3000 (add-loongarch-support.patch):' Patch #3000 (add-loongarch-support.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file Documentation/backend_test_health.md Hunk #1 FAILED at 29. 1 out of 1 hunk FAILED -- saving rejects to file Documentation/backend_test_health.md.rej patching file _fixtures/asmnilptr/main_loong64.s patching file _fixtures/cgostacktest/hello.c patching file _fixtures/testvariablescgo/test.c patching file _scripts/make.go Hunk #1 succeeded at 51 (offset 1 line). patching file cmd/dlv/dlv_test.go Hunk #2 succeeded at 411 (offset 29 lines). patching file pkg/dwarf/regnum/loong64.go patching file pkg/gobuild/gobuild.go patching file pkg/proc/bininfo.go Hunk #1 succeeded at 128 (offset -2 lines). Hunk #2 succeeded at 812 (offset 121 lines). Hunk #3 succeeded at 1814 (offset 120 lines). patching file pkg/proc/core/linux_core.go Hunk #1 succeeded at 40 (offset 1 line). Hunk #2 succeeded at 50 (offset 1 line). Hunk #3 succeeded at 69 (offset 1 line). Hunk #4 FAILED at 161. Hunk #5 succeeded at 218 (offset 1 line). Hunk #6 FAILED at 316. Hunk #7 succeeded at 364 (offset 1 line). 2 out of 8 hunks FAILED -- saving rejects to file pkg/proc/core/linux_core.go.rej patching file pkg/proc/dump.go patching file pkg/proc/linutil/regs_loong64_arch.go patching file pkg/proc/loong64_arch.go patching file pkg/proc/loong64_disasm.go patching file pkg/proc/native/hwbreak_other.go patching file pkg/proc/native/ptrace_linux_64bit.go patching file pkg/proc/native/registers_linux_loong64.go patching file pkg/proc/native/support_sentinel_linux.go patching file pkg/proc/native/threads_linux_loong64.go patching file pkg/proc/pe.go patching file pkg/proc/proc_test.go Hunk #1 succeeded at 2961 (offset -389 lines). Hunk #2 succeeded at 3067 (offset -389 lines). Hunk #3 succeeded at 3145 (offset -389 lines). Hunk #4 succeeded at 3166 (offset -389 lines). Hunk #5 succeeded at 3352 (offset -389 lines). Hunk #6 succeeded at 3644 (offset -445 lines). Hunk #7 succeeded at 4207 (offset -443 lines). Hunk #8 succeeded at 4751 (offset -635 lines). Hunk #9 FAILED at 5448. Hunk #10 FAILED at 5563. Hunk #11 succeeded at 5084 (offset -638 lines). 2 out of 11 hunks FAILED -- saving rejects to file pkg/proc/proc_test.go.rej patching file pkg/proc/stack.go Hunk #1 succeeded at 299 (offset 17 lines). Hunk #2 succeeded at 564 (offset 43 lines). patching file pkg/proc/test/support.go patching file service/dap/server_test.go Hunk #1 succeeded at 2540 (offset -2 lines). Hunk #2 succeeded at 2615 (offset -2 lines). Hunk #3 succeeded at 2715 (offset -2 lines). patching file service/debugger/debugger_test.go patching file service/debugger/debugger_unix_test.go patching file service/test/integration1_test.go Hunk #1 succeeded at 908 (offset -2 lines). Hunk #2 succeeded at 958 (offset -2 lines). patching file service/test/integration2_test.go Hunk #1 succeeded at 1451 (offset 33 lines). Hunk #2 succeeded at 1501 (offset 33 lines). patching file vendor/golang.org/x/arch/loong64/loong64asm/arg.go patching file vendor/golang.org/x/arch/loong64/loong64asm/decode.go patching file vendor/golang.org/x/arch/loong64/loong64asm/gnu.go patching file vendor/golang.org/x/arch/loong64/loong64asm/inst.go patching file vendor/golang.org/x/arch/loong64/loong64asm/log patching file vendor/golang.org/x/arch/loong64/loong64asm/plan9x.go patching file vendor/golang.org/x/arch/loong64/loong64asm/tables.go error: Bad exit status from /var/tmp/rpm-tmp.r2o7p4 (%prep) RPM build warnings: RPM build errors: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.r2o7p4 (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/delve.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/delve.spec