Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/golang.spec'], chrootPath='/var/lib/mock/dist-ocs23-base-build-300559-29735/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 aarch64 --nodeps /builddir/build/SPECS/golang.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 Building target platforms: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/golang-1.22.10-1.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/golang.spec'], chrootPath='/var/lib/mock/dist-ocs23-base-build-300559-29735/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 aarch64 --nodeps /builddir/build/SPECS/golang.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 Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.0N02Je + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf go + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/go1.22.10.src.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd go + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0001-Modify-go.env.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/0002-cmd-link-use-gold-on-ARM-ARM64-only-if-gold-is-avail.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + cp /builddir/build/SOURCES/loongarch64.tar.gz . + cp /builddir/build/SOURCES/loongarch64.conf . + cp /builddir/build/SOURCES/apply-patches . + sh ./apply-patches + '[' '!' -d loongarch64 ']' + tar -xf loongarch64.tar.gz ++ cat loongarch64.conf + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0001-cmd-dist-cmd-link-internal-runtime-add-buildmode-plu.patch error: patch failed: src/cmd/compile/internal/liveness/plive.go:546 error: src/cmd/compile/internal/liveness/plive.go: patch does not apply error: patch failed: src/cmd/compile/internal/ssa/_gen/LOONG64.rules:455 error: src/cmd/compile/internal/ssa/_gen/LOONG64.rules: patch does not apply error: patch failed: src/cmd/compile/internal/ssa/regalloc.go:672 error: src/cmd/compile/internal/ssa/regalloc.go: patch does not apply error: patch failed: src/cmd/compile/internal/ssa/rewriteLOONG64.go:1724 error: src/cmd/compile/internal/ssa/rewriteLOONG64.go: patch does not apply error: patch failed: src/cmd/dist/test.go:1613 error: src/cmd/dist/test.go: patch does not apply error: patch failed: src/cmd/internal/obj/loong64/a.out.go:227 error: src/cmd/internal/obj/loong64/a.out.go: patch does not apply error: patch failed: src/cmd/internal/obj/loong64/asm.go:349 error: src/cmd/internal/obj/loong64/asm.go: patch does not apply error: patch failed: src/cmd/internal/obj/loong64/cnames.go:39 error: src/cmd/internal/obj/loong64/cnames.go: patch does not apply error: patch failed: src/cmd/internal/obj/loong64/obj.go:6 error: src/cmd/internal/obj/loong64/obj.go: patch does not apply error: patch failed: src/cmd/internal/objabi/reloctype.go:316 error: src/cmd/internal/objabi/reloctype.go: patch does not apply error: patch failed: src/cmd/internal/objabi/reloctype_string.go:81 error: src/cmd/internal/objabi/reloctype_string.go: patch does not apply error: patch failed: src/cmd/link/internal/loong64/asm.go:14 error: src/cmd/link/internal/loong64/asm.go: patch does not apply error: patch failed: src/internal/platform/supported.go:199 error: src/internal/platform/supported.go: patch does not apply error: patch failed: src/runtime/asm_loong64.s:642 error: src/runtime/asm_loong64.s: patch does not apply RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.0N02Je (%prep) Bad exit status from /var/tmp/rpm-tmp.0N02Je (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/golang.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, 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 aarch64 --nodeps /builddir/build/SPECS/golang.spec