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/golang.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-226002-16804/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/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: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/golang-1.21.7-9.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/golang.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-226002-16804/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/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: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.uLaOvK + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf go + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/go1.21.7.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/fix-CVE-2023-45289.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/fix-CVE-2023-45290.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/fix-CVE-2024-24783.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/fix-CVE-2024-24784.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/fix-CVE-2024-24785.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/fix-CVE-2023-45288.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /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 + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0002-runtime-cmd-go-enable-memory-sanitizer-on-linux-loon.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0003-runtime-cmd-go-enable-address-sanitizer-on-linux-loo.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0004-internal-sysinfo-print-cpu-type-from-cpuinfo-when-in.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0005-cmd-cmd-vendor-pick-up-updates-for-golang.org-x-arch.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0006-cmd-internal-objfile-add-loong64-disassembler-suppor.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0007-runtime-remove-the-meaningless-offset-of-8-for-duffz.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0008-cmd-compiler-remove-the-meaningless-offset-of-8-for-.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0009-cmd-internal-obj-loong64-add-atomic-memory-access-in.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0010-cmd-compiler-runtime-internal-atomic-optimize-xchg-a.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0011-cmd-compiler-runtime-internal-atomic-optimize-xadd-a.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0012-cmd-compiler-runtime-internal-atomic-optimize-And-32.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0013-cmd-compiler-runtime-internal-atomic-Implementing-xc.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0014-cmd-compiler-runtime-internal-atomic-Implementing-xa.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0015-cmd-compiler-runtime-internal-atomic-Implementing-An.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0016-cmd-internal-obj-loong64-remove-the-invalid-plan9-fo.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0017-cmd-internal-obj-loong64-correct-the-instruction-for.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0018-cmd-internal-obj-loong64-recheck-jump-offset-boundar.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0019-cmd-link-internal-loong64-correct-the-glibc-dynamic-.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0020-cmd-link-internal-loadelf-correct-the-relocation-siz.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0021-cmd-compile-cmd-internal-runtime-change-the-register.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0022-cmd-compile-add-ABI-register-definations-for-loong64.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0023-cmd-compile-cmd-internal-runtime-change-registers-on.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0024-internal-abi-define-loong64-regABI-constants.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0025-cmd-compile-internal-add-register-info-for-loong64-r.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0026-cmd-compile-internal-add-spill-support-for-loong64-r.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0027-cmd-compile-update-loong64-CALL-ops.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0028-runtime-make-duff-device-as-ABIInternal-for-loong64.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0029-runtime-support-regABI-and-add-spill-functions-in-ru.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0030-reflect-runtime-add-reflect-support-for-regABI-on-lo.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0031-internal-bytealg-add-regABI-support-in-bytealg-funct.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0032-runtime-add-regABI-support-in-memclr-and-memmove-fun.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0033-cmd-internal-obj-set-morestack-arg-spilling-and-rega.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0034-cmd-compile-fix-If-lowering-on-loong64.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0035-runtime-internal-syscall-use-ABIInternal-for-Syscall.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0036-cmd-compile-internal-buildcfg-enable-regABI-on-loong.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0037-internal-abi-internal-buildcfg-always-enable-registe.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0038-all-delete-loong64-non-register-ABI-fallback-path.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0039-cmd-internal-obj-loong64-using-LookupABI-to-find-duf.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0040-cmd-internal-cmd-link-unify-the-relocation-naming-st.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0041-cmd-link-internal-loadelf-remove-useless-relocation-.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0042-cmd-link-internal-loadelf-add-additional-relocations.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0043-cmd-link-add-new-relocations-numbered-101-to-109-for.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0044-api-add-new-relocations-numbered-101-to-109-for-loon.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0045-cmd-internal-obj-loong64-remove-unused-register-alia.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0046-cmd-internal-runtime-change-the-LR-parameter-registe.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0047-cmd-runtime-enable-race-detector-on-loong64.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0048-runtime-Mark-race-functions-on-loong64-as-ABInternal.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0049-runtime-delete-on-register-ABI-fallback-path-for-rac.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0050-cmd-dist-update-isUnsupportedVMASize-test-skip.patch + for p in $(cat loongarch64.conf) + git apply -p1 loongarch64/0051-runtime-race-update-race_linux_loong64.syso.patch + rm -rf ./apply-patches loongarch64 loongarch64.tar.gz loongarch64.conf + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.q6IqUi + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS ~/build/BUILD/go/src ~/build/BUILD/go + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd go + export GOROOT_BOOTSTRAP=/usr/lib/golang + GOROOT_BOOTSTRAP=/usr/lib/golang + export GOROOT_FINAL=/usr/lib/golang + GOROOT_FINAL=/usr/lib/golang + export GOHOSTOS=linux + GOHOSTOS=linux + export GOHOSTARCH=loong64 + GOHOSTARCH=loong64 + pushd src + export 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export CC=gcc + CC=gcc + export CC_FOR_TARGET=gcc + CC_FOR_TARGET=gcc + export GOOS=linux + GOOS=linux + export GOARCH=loong64 + GOARCH=loong64 + ./make.bash --no-clean -v Building Go cmd/dist using /usr/lib/golang. (go1.21.7 linux/loong64) # internal/abi /usr/lib/golang/src/internal/abi/abi.go:30:10: undefined array length IntArgRegs or missing type constraint /usr/lib/golang/src/internal/abi/abi.go:31:10: undefined array length FloatArgRegs or missing type constraint /usr/lib/golang/src/internal/abi/abi.go:38:8: undefined array length IntArgRegs or missing type constraint /usr/lib/golang/src/internal/abi/abi.go:87:24: undefined: IntArgRegs /usr/lib/golang/src/internal/abi/abi.go:91:3: invalid operation: cannot index b (variable of type *IntArgRegBitmap) /usr/lib/golang/src/internal/abi/abi.go:101:10: invalid operation: cannot index b (variable of type *IntArgRegBitmap) error: Bad exit status from /var/tmp/rpm-tmp.q6IqUi (%build) Bad exit status from /var/tmp/rpm-tmp.q6IqUi (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/golang.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/golang.spec