Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/kernel.spec'], chrootPath='/var/lib/mock/kernel-3.10.0-693.21.1.el7.centos.plus-20180308143456-31358/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=1006) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/kernel.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 warning: Could not canonicalize hostname: x86-01.bsys.centos.org Building target platforms: i686 Building for target i686 Wrote: /builddir/build/SRPMS/kernel-3.10.0-693.21.1.el7.centos.plus.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/kernel.spec'], chrootPath='/var/lib/mock/kernel-3.10.0-693.21.1.el7.centos.plus-20180308143456-31358/root'shell=Falseuid=1006env={'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 i686 --nodeps /builddir/build/SPECS/kernel.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: i686 Building for target i686 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.mmvQlT + umask 022 + cd /builddir/build/BUILD + patch_command='patch -p1 -F1 -s' + cd /builddir/build/BUILD + rm -rf kernel-3.10.0-693.21.1.el7 + /usr/bin/mkdir -p kernel-3.10.0-693.21.1.el7 + cd kernel-3.10.0-693.21.1.el7 + /usr/bin/xz -dc /builddir/build/SOURCES/linux-3.10.0-693.21.1.el7.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-3.10.0-693.21.1.el7 linux-3.10.0-693.21.1.el7.centos.plus.i686 + cd linux-3.10.0-693.21.1.el7.centos.plus.i686 + cp /builddir/build/SOURCES/kernel-3.10.0-i686.config /builddir/build/SOURCES/kernel-3.10.0-x86_64.config . + ApplyOptionalPatch debrand-rh_taint.patch + local patch=debrand-rh_taint.patch + shift + '[' '!' -f /builddir/build/SOURCES/debrand-rh_taint.patch ']' ++ wc -l /builddir/build/SOURCES/debrand-rh_taint.patch ++ awk '{print $1}' + local C=25 + '[' 25 -gt 9 ']' + ApplyPatch debrand-rh_taint.patch + local patch=debrand-rh_taint.patch + shift + '[' '!' -f /builddir/build/SOURCES/debrand-rh_taint.patch ']' Patch1001: debrand-rh_taint.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch debrand-single-cpu.patch + local patch=debrand-single-cpu.patch + shift + '[' '!' -f /builddir/build/SOURCES/debrand-single-cpu.patch ']' ++ wc -l /builddir/build/SOURCES/debrand-single-cpu.patch ++ awk '{print $1}' + local C=25 + '[' 25 -gt 9 ']' + ApplyPatch debrand-single-cpu.patch + local patch=debrand-single-cpu.patch + shift + '[' '!' -f /builddir/build/SOURCES/debrand-single-cpu.patch ']' Patch1000: debrand-single-cpu.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch debrand-rh-i686-cpu.patch + local patch=debrand-rh-i686-cpu.patch + shift + '[' '!' -f /builddir/build/SOURCES/debrand-rh-i686-cpu.patch ']' ++ wc -l /builddir/build/SOURCES/debrand-rh-i686-cpu.patch ++ awk '{print $1}' + local C=11 + '[' 11 -gt 9 ']' + ApplyPatch debrand-rh-i686-cpu.patch + local patch=debrand-rh-i686-cpu.patch + shift + '[' '!' -f /builddir/build/SOURCES/debrand-rh-i686-cpu.patch ']' Patch1002: debrand-rh-i686-cpu.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch removejiffies.patch + local patch=removejiffies.patch + shift + '[' '!' -f /builddir/build/SOURCES/removejiffies.patch ']' ++ wc -l /builddir/build/SOURCES/removejiffies.patch ++ awk '{print $1}' + local C=12 + '[' 12 -gt 9 ']' + ApplyPatch removejiffies.patch + local patch=removejiffies.patch + shift + '[' '!' -f /builddir/build/SOURCES/removejiffies.patch ']' Patch1004: removejiffies.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch cpufreq.patch + local patch=cpufreq.patch + shift + '[' '!' -f /builddir/build/SOURCES/cpufreq.patch ']' ++ wc -l /builddir/build/SOURCES/cpufreq.patch ++ awk '{print $1}' + local C=394 + '[' 394 -gt 9 ']' + ApplyPatch cpufreq.patch + local patch=cpufreq.patch + shift + '[' '!' -f /builddir/build/SOURCES/cpufreq.patch ']' Patch1005: cpufreq.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch i386-audit-stop-scri-stack-frame.patch + local patch=i386-audit-stop-scri-stack-frame.patch + shift + '[' '!' -f /builddir/build/SOURCES/i386-audit-stop-scri-stack-frame.patch ']' ++ wc -l /builddir/build/SOURCES/i386-audit-stop-scri-stack-frame.patch ++ awk '{print $1}' + local C=31 + '[' 31 -gt 9 ']' + ApplyPatch i386-audit-stop-scri-stack-frame.patch + local patch=i386-audit-stop-scri-stack-frame.patch + shift + '[' '!' -f /builddir/build/SOURCES/i386-audit-stop-scri-stack-frame.patch ']' Patch1006: i386-audit-stop-scri-stack-frame.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch addmissing.patch + local patch=addmissing.patch + shift + '[' '!' -f /builddir/build/SOURCES/addmissing.patch ']' ++ wc -l /builddir/build/SOURCES/addmissing.patch ++ awk '{print $1}' + local C=27 + '[' 27 -gt 9 ']' + ApplyPatch addmissing.patch + local patch=addmissing.patch + shift + '[' '!' -f /builddir/build/SOURCES/addmissing.patch ']' Patch1007: addmissing.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch morefixes.patch + local patch=morefixes.patch + shift + '[' '!' -f /builddir/build/SOURCES/morefixes.patch ']' ++ wc -l /builddir/build/SOURCES/morefixes.patch ++ awk '{print $1}' + local C=84 + '[' 84 -gt 9 ']' + ApplyPatch morefixes.patch + local patch=morefixes.patch + shift + '[' '!' -f /builddir/build/SOURCES/morefixes.patch ']' Patch1011: morefixes.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch clear-32bit-Werror-warnings.patch + local patch=clear-32bit-Werror-warnings.patch + shift + '[' '!' -f /builddir/build/SOURCES/clear-32bit-Werror-warnings.patch ']' ++ wc -l /builddir/build/SOURCES/clear-32bit-Werror-warnings.patch ++ awk '{print $1}' + local C=27 + '[' 27 -gt 9 ']' + ApplyPatch clear-32bit-Werror-warnings.patch + local patch=clear-32bit-Werror-warnings.patch + shift + '[' '!' -f /builddir/build/SOURCES/clear-32bit-Werror-warnings.patch ']' Patch1009: clear-32bit-Werror-warnings.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch upstream-32bit-fixes-7_4.patch + local patch=upstream-32bit-fixes-7_4.patch + shift + '[' '!' -f /builddir/build/SOURCES/upstream-32bit-fixes-7_4.patch ']' ++ wc -l /builddir/build/SOURCES/upstream-32bit-fixes-7_4.patch ++ awk '{print $1}' + local C=176 + '[' 176 -gt 9 ']' + ApplyPatch upstream-32bit-fixes-7_4.patch + local patch=upstream-32bit-fixes-7_4.patch + shift + '[' '!' -f /builddir/build/SOURCES/upstream-32bit-fixes-7_4.patch ']' Patch1010: upstream-32bit-fixes-7_4.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch qspinlock_types-32bit.patch + local patch=qspinlock_types-32bit.patch + shift + '[' '!' -f /builddir/build/SOURCES/qspinlock_types-32bit.patch ']' ++ wc -l /builddir/build/SOURCES/qspinlock_types-32bit.patch ++ awk '{print $1}' + local C=14 + '[' 14 -gt 9 ']' + ApplyPatch qspinlock_types-32bit.patch + local patch=qspinlock_types-32bit.patch + shift + '[' '!' -f /builddir/build/SOURCES/qspinlock_types-32bit.patch ']' Patch1012: qspinlock_types-32bit.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch init_32.patch + local patch=init_32.patch + shift + '[' '!' -f /builddir/build/SOURCES/init_32.patch ']' ++ wc -l /builddir/build/SOURCES/init_32.patch ++ awk '{print $1}' + local C=11 + '[' 11 -gt 9 ']' + ApplyPatch init_32.patch + local patch=init_32.patch + shift + '[' '!' -f /builddir/build/SOURCES/init_32.patch ']' Patch1013: init_32.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch ioremap.patch + local patch=ioremap.patch + shift + '[' '!' -f /builddir/build/SOURCES/ioremap.patch ']' ++ wc -l /builddir/build/SOURCES/ioremap.patch ++ awk '{print $1}' + local C=14 + '[' 14 -gt 9 ']' + ApplyPatch ioremap.patch + local patch=ioremap.patch + shift + '[' '!' -f /builddir/build/SOURCES/ioremap.patch ']' Patch1014: ioremap.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch huge_memory.patch + local patch=huge_memory.patch + shift + '[' '!' -f /builddir/build/SOURCES/huge_memory.patch ']' ++ wc -l /builddir/build/SOURCES/huge_memory.patch ++ awk '{print $1}' + local C=20 + '[' 20 -gt 9 ']' + ApplyPatch huge_memory.patch + local patch=huge_memory.patch + shift + '[' '!' -f /builddir/build/SOURCES/huge_memory.patch ']' Patch1015: huge_memory.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch i686-7-4.patch + local patch=i686-7-4.patch + shift + '[' '!' -f /builddir/build/SOURCES/i686-7-4.patch ']' ++ wc -l /builddir/build/SOURCES/i686-7-4.patch ++ awk '{print $1}' + local C=143 + '[' 143 -gt 9 ']' + ApplyPatch i686-7-4.patch + local patch=i686-7-4.patch + shift + '[' '!' -f /builddir/build/SOURCES/i686-7-4.patch ']' Patch1017: i686-7-4.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch firmware-efi-32bit.patch + local patch=firmware-efi-32bit.patch + shift + '[' '!' -f /builddir/build/SOURCES/firmware-efi-32bit.patch ']' ++ wc -l /builddir/build/SOURCES/firmware-efi-32bit.patch ++ awk '{print $1}' + local C=11 + '[' 11 -gt 9 ']' + ApplyPatch firmware-efi-32bit.patch + local patch=firmware-efi-32bit.patch + shift + '[' '!' -f /builddir/build/SOURCES/firmware-efi-32bit.patch ']' Patch1018: firmware-efi-32bit.patch + case "$patch" in + patch -p1 -F1 -s + ApplyOptionalPatch patch-spec_ctrl_i686.patch + local patch=patch-spec_ctrl_i686.patch + shift + '[' '!' -f /builddir/build/SOURCES/patch-spec_ctrl_i686.patch ']' ++ wc -l /builddir/build/SOURCES/patch-spec_ctrl_i686.patch ++ awk '{print $1}' + local C=75 + '[' 75 -gt 9 ']' + ApplyPatch patch-spec_ctrl_i686.patch + local patch=patch-spec_ctrl_i686.patch + shift + '[' '!' -f /builddir/build/SOURCES/patch-spec_ctrl_i686.patch ']' Patch1019: patch-spec_ctrl_i686.patch + case "$patch" in + patch -p1 -F1 -s 1 out of 1 hunk FAILED -- saving rejects to file arch/x86/include/asm/spec_ctrl.h.rej 1 out of 1 hunk FAILED -- saving rejects to file arch/x86/include/asm/spec_ctrl.h.rej error: Bad exit status from /var/tmp/rpm-tmp.mmvQlT (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.mmvQlT (%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 i686 --nodeps /builddir/build/SPECS/kernel.spec