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/shim.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-58393-2194/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/shim.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/shim-15.7-2.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/shim.spec'], chrootPath='/var/lib/mock/dist-ocs23-build-58393-2194/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/shim.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.Aal85D + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf shim-15.7 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/shim-15.7.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd shim-15.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git config gc.auto 0 + /usr/bin/git add --force . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'shim-15.7 base' + /usr/bin/git checkout --track -b rpm-build Switched to a new branch 'rpm-build' branch 'rpm-build' set up to track 'master'. + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/Feature-shim-openssl-add-ec-support.patch + /usr/bin/git apply --index --reject -p1 - Checking patch Cryptlib/OpenSSL/crypto/ec/ec_ameth.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ec_asn1.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ec_check.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ec_curve.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ec_cvt.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ec_err.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ec_key.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ec_lcl.h... Checking patch Cryptlib/OpenSSL/crypto/ec/ec_lib.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ec_mult.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ec_oct.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ec_pmeth.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ec_print.c... Checking patch Cryptlib/OpenSSL/crypto/ec/eck_prn.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ecp_mont.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ecp_nist.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ecp_oct.c... Checking patch Cryptlib/OpenSSL/crypto/ec/ecp_smpl.c... Applied patch Cryptlib/OpenSSL/crypto/ec/ec_ameth.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ec_asn1.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ec_check.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ec_curve.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ec_cvt.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ec_err.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ec_key.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ec_lcl.h cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ec_lib.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ec_mult.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ec_oct.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ec_pmeth.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ec_print.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/eck_prn.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ecp_mont.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ecp_nist.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ecp_oct.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ec/ecp_smpl.c cleanly. + /usr/bin/git commit -q -m Feature-shim-openssl-add-ec-support.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/Feature-shim-openssl-add-ecdsa-support.patch + /usr/bin/git apply --index --reject -p1 - Checking patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_asn1.c... Checking patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_err.c... Checking patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_lib.c... Checking patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_locl.h... Checking patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_ossl.c... Checking patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_sign.c... Checking patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_vrf.c... Applied patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_asn1.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_err.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_lib.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_locl.h cleanly. Applied patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_ossl.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_sign.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/ecdsa/ecs_vrf.c cleanly. + /usr/bin/git commit -q -m Feature-shim-openssl-add-ecdsa-support.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/Feature-shim-openssl-add-sm2-and-sm3-support.patch + /usr/bin/git apply --index --reject -p1 - Checking patch Cryptlib/Include/openssl/sm2.h... Checking patch Cryptlib/Include/openssl/sm2err.h... Checking patch Cryptlib/Include/openssl/sm3.h... Checking patch Cryptlib/OpenSSL/crypto/sm2/sm2_err.c... Checking patch Cryptlib/OpenSSL/crypto/sm2/sm2_pmeth.c... Checking patch Cryptlib/OpenSSL/crypto/sm2/sm2_sign.c... Checking patch Cryptlib/OpenSSL/crypto/sm3/m_sm3.c... Checking patch Cryptlib/OpenSSL/crypto/sm3/sm3.c... :1196: new blank line at EOF. + Checking patch Cryptlib/OpenSSL/crypto/sm3/sm3_local.h... Applied patch Cryptlib/Include/openssl/sm2.h cleanly. Applied patch Cryptlib/Include/openssl/sm2err.h cleanly. Applied patch Cryptlib/Include/openssl/sm3.h cleanly. Applied patch Cryptlib/OpenSSL/crypto/sm2/sm2_err.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/sm2/sm2_pmeth.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/sm2/sm2_sign.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/sm3/m_sm3.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/sm3/sm3.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/sm3/sm3_local.h cleanly. warning: 1 line adds whitespace errors. + /usr/bin/git commit -q -m Feature-shim-openssl-add-sm2-and-sm3-support.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/Feature-shim-cryptlib-support-sm2-signature-verify.patch + /usr/bin/git apply --index --reject -p1 - Checking patch Cryptlib/Hash/CryptSm3.c... Checking patch Cryptlib/Include/openssl/crypto.h... Checking patch Cryptlib/Include/openssl/ec.h... Checking patch Cryptlib/Include/openssl/ecdsa.h... Checking patch Cryptlib/Include/openssl/err.h... Checking patch Cryptlib/Include/openssl/evp.h... Checking patch Cryptlib/Include/openssl/obj_mac.h... Checking patch Cryptlib/Include/openssl/opensslconf.h... Checking patch Cryptlib/Include/openssl/x509.h... Checking patch Cryptlib/Library/BaseCryptLib.h... Checking patch Cryptlib/Makefile... Checking patch Cryptlib/OpenSSL/Makefile... Checking patch Cryptlib/OpenSSL/crypto/asn1/a_sign.c... Checking patch Cryptlib/OpenSSL/crypto/asn1/ameth_lib.c... Checking patch Cryptlib/OpenSSL/crypto/asn1/x_req.c... Checking patch Cryptlib/OpenSSL/crypto/asn1/x_x509.c... Checking patch Cryptlib/OpenSSL/crypto/bn/bn_lib.c... Checking patch Cryptlib/OpenSSL/crypto/err/err.c... Checking patch Cryptlib/OpenSSL/crypto/evp/c_alld.c... Checking patch Cryptlib/OpenSSL/crypto/evp/digest.c... Checking patch Cryptlib/OpenSSL/crypto/evp/evp_lib.c... Checking patch Cryptlib/OpenSSL/crypto/evp/evp_locl.h... Checking patch Cryptlib/OpenSSL/crypto/evp/m_sigver.c... Checking patch Cryptlib/OpenSSL/crypto/evp/p_lib.c... Checking patch Cryptlib/OpenSSL/crypto/evp/pmeth_lib.c... Checking patch Cryptlib/OpenSSL/crypto/mem.c... Checking patch Cryptlib/OpenSSL/crypto/o_str.c... Checking patch Cryptlib/OpenSSL/crypto/objects/obj_dat.h... Checking patch Cryptlib/OpenSSL/crypto/objects/obj_xref.h... Checking patch Cryptlib/OpenSSL/crypto/pkcs7/pk7_doit.c... Hunk #1 succeeded at 1032 (offset -4 lines). Hunk #2 succeeded at 1070 (offset -4 lines). Hunk #3 succeeded at 1122 (offset -4 lines). Hunk #4 succeeded at 1144 (offset -4 lines). Hunk #5 succeeded at 1153 (offset -4 lines). Checking patch Cryptlib/OpenSSL/crypto/x509/x_all.c... Checking patch Cryptlib/Pk/CryptPkcs7Verify.c... Applied patch Cryptlib/Hash/CryptSm3.c cleanly. Applied patch Cryptlib/Include/openssl/crypto.h cleanly. Applied patch Cryptlib/Include/openssl/ec.h cleanly. Applied patch Cryptlib/Include/openssl/ecdsa.h cleanly. Applied patch Cryptlib/Include/openssl/err.h cleanly. Applied patch Cryptlib/Include/openssl/evp.h cleanly. Applied patch Cryptlib/Include/openssl/obj_mac.h cleanly. Applied patch Cryptlib/Include/openssl/opensslconf.h cleanly. Applied patch Cryptlib/Include/openssl/x509.h cleanly. Applied patch Cryptlib/Library/BaseCryptLib.h cleanly. Applied patch Cryptlib/Makefile cleanly. Applied patch Cryptlib/OpenSSL/Makefile cleanly. Applied patch Cryptlib/OpenSSL/crypto/asn1/a_sign.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/asn1/ameth_lib.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/asn1/x_req.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/asn1/x_x509.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/bn/bn_lib.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/err/err.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/evp/c_alld.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/evp/digest.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/evp/evp_lib.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/evp/evp_locl.h cleanly. Applied patch Cryptlib/OpenSSL/crypto/evp/m_sigver.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/evp/p_lib.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/evp/pmeth_lib.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/mem.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/o_str.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/objects/obj_dat.h cleanly. Applied patch Cryptlib/OpenSSL/crypto/objects/obj_xref.h cleanly. Applied patch Cryptlib/OpenSSL/crypto/pkcs7/pk7_doit.c cleanly. Applied patch Cryptlib/OpenSSL/crypto/x509/x_all.c cleanly. Applied patch Cryptlib/Pk/CryptPkcs7Verify.c cleanly. + /usr/bin/git commit -q -m Feature-shim-cryptlib-support-sm2-signature-verify.patch --author 'rpm-build ' + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/Feature-shim-support-sm2-and-sm3-algorithm.patch + /usr/bin/git apply --index --reject -p1 - Checking patch Makefile... Checking patch MokManager.c... Checking patch include/pe.h... Checking patch include/peimage.h... Checking patch pe.c... Checking patch shim.c... Checking patch shim.h... Hunk #1 succeeded at 210 (offset 2 lines). Hunk #2 succeeded at 231 (offset 2 lines). Hunk #3 succeeded at 286 (offset 2 lines). Applied patch Makefile cleanly. Applied patch MokManager.c cleanly. Applied patch include/pe.h cleanly. Applied patch include/peimage.h cleanly. Applied patch pe.c cleanly. Applied patch shim.c cleanly. Applied patch shim.h cleanly. + /usr/bin/git commit -q -m Feature-shim-support-sm2-and-sm3-algorithm.patch --author 'rpm-build ' + mkdir build-aa64 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.hRuZ1f + 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 -mbranch-protection=standard -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 -mbranch-protection=standard -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 -mbranch-protection=standard -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 -mbranch-protection=standard -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 shim-15.7 ++ cat commit + COMMITID=11491619f4336fef41c3519877ba242161763580 + MAKEFLAGS='TOPDIR=.. -f ../Makefile COMMITID=11491619f4336fef41c3519877ba242161763580 ' + MAKEFLAGS+='EFIDIR=OpenCloudOS PKGNAME=shim RELEASE=2.ocs23 ' + MAKEFLAGS+='ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true ' + MAKEFLAGS+=-j16 + MAKEFLAGS+='ENABLE_SHIM_SM=true ' + MAKEFLAGS+=-j16 + cd build-aa64 + make TOPDIR=.. -f ../Makefile COMMITID=11491619f4336fef41c3519877ba242161763580 EFIDIR=OpenCloudOS PKGNAME=shim RELEASE=2.ocs23 ENABLE_HTTPBOOT=true ENABLE_SHIM_HASH=true -j16ENABLE_SHIM_SM=true -j16 'DEFAULT_LOADER=\\\\grubaa64.efi' all make: the '-j' option requires a positive integer argument Usage: make [options] [target] ... Options: -b, -m Ignored for compatibility. -B, --always-make Unconditionally make all targets. -C DIRECTORY, --directory=DIRECTORY Change to DIRECTORY before doing anything. -d Print lots of debugging information. --debug[=FLAGS] Print various types of debugging information. -e, --environment-overrides Environment variables override makefiles. -E STRING, --eval=STRING Evaluate STRING as a makefile statement. -f FILE, --file=FILE, --makefile=FILE Read FILE as a makefile. -h, --help Print this message and exit. -i, --ignore-errors Ignore errors from recipes. -I DIRECTORY, --include-dir=DIRECTORY Search DIRECTORY for included makefiles. -j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg. --jobserver-style=STYLE Select the style of jobserver to use. -k, --keep-going Keep going when some targets can't be made. -l [N], --load-average[=N], --max-load[=N] Don't start multiple jobs unless load is below N. -L, --check-symlink-times Use the latest mtime between symlinks and target. -n, --just-print, --dry-run, --recon Don't actually run any recipe; just print them. -o FILE, --old-file=FILE, --assume-old=FILE Consider FILE to be very old and don't remake it. -O[TYPE], --output-sync[=TYPE] Synchronize output of parallel jobs by TYPE. -p, --print-data-base Print make's internal database. -q, --question Run no recipe; exit status says if up to date. -r, --no-builtin-rules Disable the built-in implicit rules. -R, --no-builtin-variables Disable the built-in variable settings. --shuffle[={SEED|random|reverse|none}] Perform shuffle of prerequisites and goals. -s, --silent, --quiet Don't echo recipes. --no-silent Echo recipes (disable --silent mode). -S, --no-keep-going, --stop Turns off -k. -t, --touch Touch targets instead of remaking them. --trace Print tracing information. -v, --version Print the version number of make and exit. -w, --print-directory Print the current directory. --no-print-directory Turn off -w, even if it was turned on implicitly. -W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE Consider FILE to be infinitely new. --warn-undefined-variables Warn when an undefined variable is referenced. This program built for aarch64-opencloudos-linux-gnu Report bugs to RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.hRuZ1f (%build) Bad exit status from /var/tmp/rpm-tmp.hRuZ1f (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/shim.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 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/shim.spec