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 aarch64 --nodeps /builddir/build/SPECS/ucx.spec'], chrootPath='/var/lib/mock/dist-an23-build-329023-69263/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/ucx.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 (2 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1700265600 Wrote: /builddir/build/SRPMS/ucx-1.15.0-1.an23.src.rpm RPM build warnings: %patchN is deprecated (2 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 aarch64 --nodeps /builddir/build/SPECS/ucx.spec'], chrootPath='/var/lib/mock/dist-an23-build-329023-69263/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=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/ucx.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 (2 usages found), use %patch N (or %patch -P N) Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1700265600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.HmGMBq + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ucx-1.15.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/ucx-1.15.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd ucx-1.15.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (0001-add-loongarch64-support-for-ucx.patch):' Patch #1 (0001-add-loongarch64-support-for-ucx.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file config.guess patching file src/ucm/Makefile.am patching file src/ucm/Makefile.in Hunk #1 succeeded at 190 (offset -2 lines). Hunk #2 succeeded at 200 (offset -2 lines). Hunk #3 succeeded at 264 (offset -2 lines). Hunk #4 succeeded at 565 (offset -4 lines). Hunk #5 succeeded at 689 (offset -4 lines). Hunk #6 succeeded at 725 (offset -4 lines). Hunk #7 succeeded at 831 (offset -4 lines). patching file src/ucm/bistro/bistro.c Hunk #1 succeeded at 63 (offset 1 line). patching file src/ucm/bistro/bistro.h patching file src/ucm/bistro/bistro_loongarch64.c patching file src/ucm/bistro/bistro_loongarch64.h patching file src/ucs/Makefile.am Hunk #2 succeeded at 81 (offset 1 line). Hunk #3 FAILED at 137. 1 out of 3 hunks FAILED -- saving rejects to file src/ucs/Makefile.am.rej patching file src/ucs/Makefile.in Hunk #1 FAILED at 202. Hunk #2 FAILED at 229. Hunk #4 succeeded at 699 (offset 1 line). Hunk #5 FAILED at 754. Hunk #6 succeeded at 877 (offset 6 lines). Hunk #7 succeeded at 1173 (offset 8 lines). Hunk #8 succeeded at 1214 (offset 9 lines). Hunk #9 succeeded at 1369 (offset 17 lines). Hunk #10 succeeded at 1839 (offset 24 lines). Hunk #11 succeeded at 2097 (offset 24 lines). Hunk #12 succeeded at 2137 (offset 24 lines). Hunk #13 succeeded at 2184 (offset 24 lines). 3 out of 13 hunks FAILED -- saving rejects to file src/ucs/Makefile.in.rej patching file src/ucs/arch/atomic.h patching file src/ucs/arch/bitops.h patching file src/ucs/arch/cpu.h Hunk #1 succeeded at 99 (offset 1 line). patching file src/ucs/arch/global_opts.h patching file src/ucs/arch/loongarch64/bitops.h patching file src/ucs/arch/loongarch64/cpu.h patching file src/ucs/arch/loongarch64/global_opts.c patching file src/ucs/arch/loongarch64/global_opts.h error: Bad exit status from /var/tmp/rpm-tmp.HmGMBq (%prep) RPM build warnings: RPM build errors: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.HmGMBq (%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/ucx.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/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 aarch64 --nodeps /builddir/build/SPECS/ucx.spec