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/kBuild.spec'], chrootPath='/home/lib/ocmock/dist-oc9-epol-build-147637-79721/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/kBuild.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 (6 usages found), use %patch N (or %patch -P N) Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/kBuild-0.1.9998-3.oc9.src.rpm RPM build warnings: %patchN is deprecated (6 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/kBuild.spec'], chrootPath='/home/lib/ocmock/dist-oc9-epol-build-147637-79721/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/kBuild.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 (6 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.eLJOK1 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf kBuild + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/kBuild-r3589.20230220.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd kBuild + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (kBuild-0.1.3-escape.patch):' Patch #0 (kBuild-0.1.3-escape.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .escape --fuzz=0 patching file kBuild/env.sh Hunk #1 succeeded at 637 (offset 69 lines). Patch #1 (kBuild-pthread.patch): + echo 'Patch #1 (kBuild-pthread.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .pthreads --fuzz=0 patching file Config.kmk Hunk #1 succeeded at 401 (offset 61 lines). Patch #6 (kbuild-dummy_noreturn.diff): + echo 'Patch #6 (kbuild-dummy_noreturn.diff):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .dummy_noreturn --fuzz=0 patching file src/kmk/kmkbuiltin/expr.c patching file src/kmk/kmkbuiltin/kbuild_protection.c patching file src/sed/lib/utils.c Patch #10 (assert.patch): + echo 'Patch #10 (assert.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .portme3 --fuzz=0 patching file src/lib/kStuff/include/k/kHlpAssert.h Patch #12 (kBuild-configure-c99.patch): + echo 'Patch #12 (kBuild-configure-c99.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/sed/config/getline.m4 patching file src/sed/configure Patch #13 (kBuild-c99.patch): + echo 'Patch #13 (kBuild-c99.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file src/sed/lib/getline.c patching file src/sed/lib/mkstemp.c patching file src/sed/lib/utils.c Hunk #1 succeeded at 26 (offset 1 line). patching file src/sed/sed/compile.c patching file src/sed/sed/execute.c patching file src/sed/sed/fmt.c patching file src/sed/sed/mbcs.c patching file src/sed/sed/regexp.c patching file src/sed/sed/sed.c + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.iWToTH + 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 + 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 kBuild + echo KBUILD_SVN_URL := http://svn.netlabs.org/repos/kbuild/trunk + echo KBUILD_SVN_REV := 3589 + find -name config.log -delete + kBuild/env.sh --full make -f bootstrap.gmk -j32 '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' KBUILD_VERBOSE=2 KBUILD_VERSION_PATCH=9998 kBuild/env.sh: unknown cpu/arch - loongarch64 error: Bad exit status from /var/tmp/rpm-tmp.iWToTH (%build) %patchN is deprecated (6 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.iWToTH (%build) RPM build warnings: 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/kBuild.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/kBuild.spec