Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64le --nodeps /builddir/build/SPECS/kernel-alt.spec'], chrootPath='/var/lib/mock/kernel-alt-4.14.0-49.8.1.el7a-20180802191436-25686/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=1004) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64le --nodeps /builddir/build/SPECS/kernel-alt.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False sh: /usr/bin/python: No such file or directory sh: /usr/bin/python: No such file or directory Building target platforms: ppc64le Building for target ppc64le Wrote: /builddir/build/SRPMS/kernel-alt-4.14.0-49.8.1.el7a.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target ppc64le --nodeps /builddir/build/SPECS/kernel-alt.spec'], chrootPath='/var/lib/mock/kernel-alt-4.14.0-49.8.1.el7a-20180802191436-25686/root'shell=Falseuid=1004env={'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target ppc64le --nodeps /builddir/build/SPECS/kernel-alt.spec'] with env {'LANG': 'en_GB.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: ppc64le Building for target ppc64le Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7g1xXT + umask 022 + cd /builddir/build/BUILD + patch_command='patch -p1 -F1 -s' + cd /builddir/build/BUILD + rm -rf kernel-alt-4.14.0-49.8.1.el7a + /usr/bin/mkdir -p kernel-alt-4.14.0-49.8.1.el7a + cd kernel-alt-4.14.0-49.8.1.el7a + /usr/bin/xz -dc /builddir/build/SOURCES/linux-4.14.0-49.8.1.el7a.tar.xz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv linux-4.14.0-49.8.1.el7a linux-4.14.0-49.8.1.el7a.ppc64le + cd linux-4.14.0-49.8.1.el7a.ppc64le + cp /builddir/build/SOURCES/kernel-alt-4.14.0-aarch64-debug.config /builddir/build/SOURCES/kernel-alt-4.14.0-aarch64.config /builddir/build/SOURCES/kernel-alt-4.14.0-ppc64le-debug.config /builddir/build/SOURCES/kernel-alt-4.14.0-ppc64le.config /builddir/build/SOURCES/kernel-alt-4.14.0-s390x-debug.config /builddir/build/SOURCES/kernel-alt-4.14.0-s390x-kdump.config /builddir/build/SOURCES/kernel-alt-4.14.0-s390x.config /builddir/build/SOURCES/kernel-alt-4.14.0-x86_64-debug.config /builddir/build/SOURCES/kernel-alt-4.14.0-x86_64.config . + ApplyOptionalPatch linux-kernel-test.patch + local patch=linux-kernel-test.patch + shift + '[' '!' -f /builddir/build/SOURCES/linux-kernel-test.patch ']' ++ wc -l /builddir/build/SOURCES/linux-kernel-test.patch ++ awk '{print $1}' + local C=0 + '[' 0 -gt 9 ']' + '[' '!' -d .git ']' + git init Initialized empty Git repository in /builddir/build/BUILD/kernel-alt-4.14.0-49.8.1.el7a/linux-4.14.0-49.8.1.el7a.ppc64le/.git/ + git config user.email noreply@centos.org + git config user.name 'AltArch Kernel' + git config gc.auto 0 + git add . + git commit -a -q -m baseline + chmod +x scripts/checkpatch.pl + touch .scmversion + '[' -L configs ']' + rm -f configs + mkdir configs + for cfg in 'kernel-alt-4.14.0-*.config' ++ grep -c kernel-alt-4.14.0-aarch64-debug.config ++ echo kernel-alt-4.14.0-ppc64le-debug.config kernel-alt-4.14.0-ppc64le.config + '[' 0 -eq 0 ']' + rm -f kernel-alt-4.14.0-aarch64-debug.config + for cfg in 'kernel-alt-4.14.0-*.config' ++ echo kernel-alt-4.14.0-ppc64le-debug.config kernel-alt-4.14.0-ppc64le.config ++ grep -c kernel-alt-4.14.0-aarch64.config + '[' 0 -eq 0 ']' + rm -f kernel-alt-4.14.0-aarch64.config + for cfg in 'kernel-alt-4.14.0-*.config' ++ echo kernel-alt-4.14.0-ppc64le-debug.config kernel-alt-4.14.0-ppc64le.config ++ grep -c kernel-alt-4.14.0-ppc64le-debug.config + '[' 1 -eq 0 ']' + for cfg in 'kernel-alt-4.14.0-*.config' ++ echo kernel-alt-4.14.0-ppc64le-debug.config kernel-alt-4.14.0-ppc64le.config ++ grep -c kernel-alt-4.14.0-ppc64le.config + '[' 1 -eq 0 ']' + for cfg in 'kernel-alt-4.14.0-*.config' ++ echo kernel-alt-4.14.0-ppc64le-debug.config kernel-alt-4.14.0-ppc64le.config ++ grep -c kernel-alt-4.14.0-s390x-debug.config + '[' 0 -eq 0 ']' + rm -f kernel-alt-4.14.0-s390x-debug.config + for cfg in 'kernel-alt-4.14.0-*.config' ++ grep -c kernel-alt-4.14.0-s390x-kdump.config ++ echo kernel-alt-4.14.0-ppc64le-debug.config kernel-alt-4.14.0-ppc64le.config + '[' 0 -eq 0 ']' + rm -f kernel-alt-4.14.0-s390x-kdump.config + for cfg in 'kernel-alt-4.14.0-*.config' ++ echo kernel-alt-4.14.0-ppc64le-debug.config kernel-alt-4.14.0-ppc64le.config ++ grep -c kernel-alt-4.14.0-s390x.config + '[' 0 -eq 0 ']' + rm -f kernel-alt-4.14.0-s390x.config + for cfg in 'kernel-alt-4.14.0-*.config' ++ echo kernel-alt-4.14.0-ppc64le-debug.config kernel-alt-4.14.0-ppc64le.config ++ grep -c kernel-alt-4.14.0-x86_64-debug.config + '[' 0 -eq 0 ']' + rm -f kernel-alt-4.14.0-x86_64-debug.config + for cfg in 'kernel-alt-4.14.0-*.config' ++ echo kernel-alt-4.14.0-ppc64le-debug.config kernel-alt-4.14.0-ppc64le.config ++ grep -c kernel-alt-4.14.0-x86_64.config + '[' 0 -eq 0 ']' + rm -f kernel-alt-4.14.0-x86_64.config + for i in '*.config' + sed -i 's@CONFIG_SYSTEM_TRUSTED_KEYS=.*@CONFIG_SYSTEM_TRUSTED_KEYS="certs/centos.pem"@' kernel-alt-4.14.0-ppc64le-debug.config + for i in '*.config' + sed -i 's@CONFIG_SYSTEM_TRUSTED_KEYS=.*@CONFIG_SYSTEM_TRUSTED_KEYS="certs/centos.pem"@' kernel-alt-4.14.0-ppc64le.config + cp /builddir/build/SOURCES/x509.genkey ./certs + openssl x509 -inform der -in /builddir/build/SOURCES/centos-ldup.x509 -out centos-ldup.pem unable to load certificate 70367209426208:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long:asn1_lib.c:157: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.7g1xXT (%prep) Bad exit status from /var/tmp/rpm-tmp.7g1xXT (%prep) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target ppc64le --nodeps /builddir/build/SPECS/kernel-alt.spec