Mock Version: 1.2.14 ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/kernel.spec'], chrootPath='/srv/build/7/B/mock-root/c7.01.u-i686/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_GB', '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=21600logger=uid=501) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/kernel.spec'] with env {'LANG': 'en_GB', '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: worker1.bsys.centos.org Building target platforms: i686 Building for target i686 Wrote: /builddir/build/SRPMS/kernel-3.10.0-327.22.2.el7.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/kernel.spec '], chrootPath='/srv/build/7/B/mock-root/c7.01.u-i686/root'shell=Falseuid=501env={'LANG': 'en_GB', '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=21600private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/kernel.spec '] with env {'LANG': 'en_GB', '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.uKw3Pz + umask 022 + cd /builddir/build/BUILD + patch_command='patch -p1 -F1 -s' + cd /builddir/build/BUILD + rm -rf kernel-3.10.0-327.22.2.el7 + /usr/bin/mkdir -p kernel-3.10.0-327.22.2.el7 + cd kernel-3.10.0-327.22.2.el7 + /usr/bin/xz -dc /builddir/build/SOURCES/linux-3.10.0-327.22.2.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-327.22.2.el7 linux-3.10.0-327.22.2.el7.i686 + cd linux-3.10.0-327.22.2.el7.i686 + cp /builddir/build/SOURCES/kernel-3.10.0-i686-debug.config /builddir/build/SOURCES/kernel-3.10.0-i686.config /builddir/build/SOURCES/kernel-3.10.0-ppc64-debug.config /builddir/build/SOURCES/kernel-3.10.0-ppc64.config /builddir/build/SOURCES/kernel-3.10.0-ppc64le-debug.config /builddir/build/SOURCES/kernel-3.10.0-ppc64le.config /builddir/build/SOURCES/kernel-3.10.0-s390x-debug.config /builddir/build/SOURCES/kernel-3.10.0-s390x-kdump.config /builddir/build/SOURCES/kernel-3.10.0-s390x.config /builddir/build/SOURCES/kernel-3.10.0-x86_64-debug.config /builddir/build/SOURCES/kernel-3.10.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 ']' + 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_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-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 + chmod +x scripts/checkpatch.pl + touch .scmversion + '[' -L configs ']' + rm -f configs + mkdir configs + for cfg in 'kernel-3.10.0-*.config' ++ echo kernel-3.10.0-i686-debug.config kernel-3.10.0-i686.config ++ grep -c kernel-3.10.0-i686-debug.config + '[' 1 -eq 0 ']' + for cfg in 'kernel-3.10.0-*.config' ++ echo kernel-3.10.0-i686-debug.config kernel-3.10.0-i686.config ++ grep -c kernel-3.10.0-i686.config + '[' 1 -eq 0 ']' + for cfg in 'kernel-3.10.0-*.config' ++ echo kernel-3.10.0-i686-debug.config kernel-3.10.0-i686.config ++ grep -c kernel-3.10.0-ppc64-debug.config + '[' 0 -eq 0 ']' + rm -f kernel-3.10.0-ppc64-debug.config + for cfg in 'kernel-3.10.0-*.config' ++ grep -c kernel-3.10.0-ppc64.config ++ echo kernel-3.10.0-i686-debug.config kernel-3.10.0-i686.config + '[' 0 -eq 0 ']' + rm -f kernel-3.10.0-ppc64.config + for cfg in 'kernel-3.10.0-*.config' ++ echo kernel-3.10.0-i686-debug.config kernel-3.10.0-i686.config ++ grep -c kernel-3.10.0-ppc64le-debug.config + '[' 0 -eq 0 ']' + rm -f kernel-3.10.0-ppc64le-debug.config + for cfg in 'kernel-3.10.0-*.config' ++ echo kernel-3.10.0-i686-debug.config kernel-3.10.0-i686.config ++ grep -c kernel-3.10.0-ppc64le.config + '[' 0 -eq 0 ']' + rm -f kernel-3.10.0-ppc64le.config + for cfg in 'kernel-3.10.0-*.config' ++ grep -c kernel-3.10.0-s390x-debug.config ++ echo kernel-3.10.0-i686-debug.config kernel-3.10.0-i686.config + '[' 0 -eq 0 ']' + rm -f kernel-3.10.0-s390x-debug.config + for cfg in 'kernel-3.10.0-*.config' ++ grep -c kernel-3.10.0-s390x-kdump.config ++ echo kernel-3.10.0-i686-debug.config kernel-3.10.0-i686.config + '[' 0 -eq 0 ']' + rm -f kernel-3.10.0-s390x-kdump.config + for cfg in 'kernel-3.10.0-*.config' ++ echo kernel-3.10.0-i686-debug.config kernel-3.10.0-i686.config ++ grep -c kernel-3.10.0-s390x.config + '[' 0 -eq 0 ']' + rm -f kernel-3.10.0-s390x.config + for cfg in 'kernel-3.10.0-*.config' ++ echo kernel-3.10.0-i686-debug.config kernel-3.10.0-i686.config ++ grep -c kernel-3.10.0-x86_64-debug.config + '[' 0 -eq 0 ']' + rm -f kernel-3.10.0-x86_64-debug.config + for cfg in 'kernel-3.10.0-*.config' ++ grep -c kernel-3.10.0-x86_64.config ++ echo kernel-3.10.0-i686-debug.config kernel-3.10.0-i686.config + '[' 0 -eq 0 ']' + rm -f kernel-3.10.0-x86_64.config + for i in '*.config' + mv kernel-3.10.0-i686-debug.config .config ++ head -1 .config ++ cut -b 3- + Arch=x86 + make ARCH=x86 listnewconfig + grep -E '^CONFIG_' .config:5447:warning: override: reassigning to symbol X86_PPRO_FENCE + true + '[' -s .newoptions ']' + rm -f .newoptions + make ARCH=x86 oldnoconfig scripts/kconfig/conf --olddefconfig Kconfig .config:5447:warning: override: reassigning to symbol X86_PPRO_FENCE # # configuration written to .config # + echo '# x86' + cat .config + for i in '*.config' + mv kernel-3.10.0-i686.config .config ++ cut -b 3- ++ head -1 .config + Arch=x86 + make ARCH=x86 listnewconfig + grep -E '^CONFIG_' .config:5418:warning: override: reassigning to symbol X86_PPRO_FENCE + true + '[' -s .newoptions ']' + rm -f .newoptions + make ARCH=x86 oldnoconfig scripts/kconfig/conf --olddefconfig Kconfig .config:5418:warning: override: reassigning to symbol X86_PPRO_FENCE # # configuration written to .config # + echo '# x86' + cat .config + find . '(' -name '*.orig' -o -name '*~' ')' -exec rm -f '{}' ';' + find . -name .gitignore -exec rm -f '{}' ';' + cd .. + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.eHlrU7 + umask 022 + cd /builddir/build/BUILD + cd kernel-3.10.0-327.22.2.el7 + export 'AFTER_LINK=sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug -i $@ > $@.id"' + AFTER_LINK='sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug -i $@ > $@.id"' + rm -rf /builddir/build/BUILDROOT/kernel-3.10.0-327.22.2.el7.i386 + mkdir -p /builddir/build/BUILDROOT/kernel-3.10.0-327.22.2.el7.i386/boot + mkdir -p /builddir/build/BUILDROOT/kernel-3.10.0-327.22.2.el7.i386/usr/libexec + cd linux-3.10.0-327.22.2.el7.i686 + BuildKernel bzImage arch/x86/boot/bzImage + MakeTarget=bzImage + KernelImage=arch/x86/boot/bzImage BUILDING A KERNEL FOR i686... + Flavour= + InstallName=vmlinuz + Config=kernel-3.10.0-i686.config + DevelDir=/usr/src/kernels/3.10.0-327.22.2.el7.i686 + '[' arch/x86/boot/bzImage = vmlinux ']' + CopyKernel=cp + KernelVer=3.10.0-327.22.2.el7.i686 + echo BUILDING A KERNEL FOR i686... + perl -p -i -e 's/^EXTRAVERSION.*/EXTRAVERSION = -327.22.2.el7.i686/' Makefile + make -s mrproper + cp /builddir/build/SOURCES/x509.genkey . + cp /builddir/build/SOURCES/extra_certificates . + cp /builddir/build/SOURCES/centos-ldup.x509 . + cp /builddir/build/SOURCES/centos-kpatch.x509 . + cp configs/kernel-3.10.0-i686.config .config ++ head -1 .config ++ cut -b 3- + Arch=x86 + echo USING ARCH=x86 USING ARCH=x86 + make -s ARCH=x86 oldnoconfig + make -s ARCH=x86 V=1 -j16 KCFLAGS= 'WITH_GCOV= 0' bzImage In file included from include/uapi/linux/netfilter_ipv6/ip6_tables.h:22:0, from include/linux/netfilter_ipv6/ip6_tables.h:23, from include/net/ip_vs.h:26, from kernel/sysctl_binary.c:6: include/linux/netfilter/x_tables.h: In function 'xt_percpu_counter_alloc': include/linux/netfilter/x_tables.h:380:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] return (__force u64) res; ^ include/linux/netfilter/x_tables.h: In function 'xt_percpu_counter_free': include/linux/netfilter/x_tables.h:388:15: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] free_percpu((void __percpu *) pcnt); ^ In file included from include/asm-generic/percpu.h:6:0, from /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/arch/x86/include/asm/percpu.h:530, from /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/arch/x86/include/asm/current.h:5, from /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/arch/x86/include/asm/processor.h:15, from /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/arch/x86/include/asm/thread_info.h:22, from include/linux/thread_info.h:54, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/linux/stat.h:18, from kernel/sysctl_binary.c:1: include/linux/netfilter/x_tables.h: In function 'xt_get_this_cpu_counter': include/linux/netfilter/x_tables.h:395:23: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] return this_cpu_ptr((void __percpu *) cnt->pcnt); ^ include/linux/percpu-defs.h:27:46: note: in definition of macro '__verify_pcpu_ptr' const void __percpu *__vpp_verify = (typeof(ptr))NULL; \ ^ include/asm-generic/percpu.h:65:27: note: in expansion of macro '__this_cpu_ptr' #define this_cpu_ptr(ptr) __this_cpu_ptr(ptr) ^ include/linux/netfilter/x_tables.h:395:10: note: in expansion of macro 'this_cpu_ptr' return this_cpu_ptr((void __percpu *) cnt->pcnt); ^ In file included from /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/arch/x86/include/asm/current.h:5:0, from /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/arch/x86/include/asm/processor.h:15, from /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/arch/x86/include/asm/thread_info.h:22, from include/linux/thread_info.h:54, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/linux/stat.h:18, from kernel/sysctl_binary.c:1: include/linux/netfilter/x_tables.h:395:23: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] return this_cpu_ptr((void __percpu *) cnt->pcnt); ^ /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/arch/x86/include/asm/percpu.h:61:35: note: in definition of macro '__this_cpu_ptr' : "m" (this_cpu_off), "0" (ptr)); \ ^ include/linux/netfilter/x_tables.h:395:10: note: in expansion of macro 'this_cpu_ptr' return this_cpu_ptr((void __percpu *) cnt->pcnt); ^ include/linux/netfilter/x_tables.h:395:23: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] return this_cpu_ptr((void __percpu *) cnt->pcnt); ^ /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/arch/x86/include/asm/percpu.h:62:12: note: in definition of macro '__this_cpu_ptr' (typeof(*(ptr)) __kernel __force *)tcp_ptr__; \ ^ include/linux/netfilter/x_tables.h:395:10: note: in expansion of macro 'this_cpu_ptr' return this_cpu_ptr((void __percpu *) cnt->pcnt); ^ In file included from include/asm-generic/percpu.h:6:0, from /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/arch/x86/include/asm/percpu.h:530, from /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/arch/x86/include/asm/current.h:5, from /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/arch/x86/include/asm/processor.h:15, from /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/arch/x86/include/asm/thread_info.h:22, from include/linux/thread_info.h:54, from include/linux/preempt.h:9, from include/linux/spinlock.h:50, from include/linux/seqlock.h:35, from include/linux/time.h:5, from include/linux/stat.h:18, from kernel/sysctl_binary.c:1: include/linux/netfilter/x_tables.h: In function 'xt_get_per_cpu_counter': include/linux/netfilter/x_tables.h:404:22: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu); ^ include/linux/percpu-defs.h:27:46: note: in definition of macro '__verify_pcpu_ptr' const void __percpu *__vpp_verify = (typeof(ptr))NULL; \ ^ include/linux/percpu.h:149:31: note: in expansion of macro 'SHIFT_PERCPU_PTR' #define per_cpu_ptr(ptr, cpu) SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu))) ^ include/linux/netfilter/x_tables.h:404:10: note: in expansion of macro 'per_cpu_ptr' return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu); ^ In file included from include/linux/compiler.h:54:0, from include/uapi/linux/stddef.h:1, from include/linux/stddef.h:4, from /builddir/build/BUILD/kernel-3.10.0-327.22.2.el7/linux-3.10.0-327.22.2.el7.i686/include/uapi/linux/posix_types.h:4, from include/uapi/linux/types.h:13, from include/linux/types.h:5, from include/linux/stat.h:17, from kernel/sysctl_binary.c:1: include/linux/netfilter/x_tables.h:404:22: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu); ^ include/linux/compiler-gcc.h:37:37: note: in definition of macro 'RELOC_HIDE' __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \ ^ include/linux/percpu.h:149:31: note: in expansion of macro 'SHIFT_PERCPU_PTR' #define per_cpu_ptr(ptr, cpu) SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu))) ^ include/linux/netfilter/x_tables.h:404:10: note: in expansion of macro 'per_cpu_ptr' return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu); ^ include/linux/netfilter/x_tables.h:404:22: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu); ^ include/linux/compiler-gcc.h:37:37: note: in definition of macro 'RELOC_HIDE' __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \ ^ include/linux/percpu.h:149:31: note: in expansion of macro 'SHIFT_PERCPU_PTR' #define per_cpu_ptr(ptr, cpu) SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu))) ^ include/linux/netfilter/x_tables.h:404:10: note: in expansion of macro 'per_cpu_ptr' return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu); ^ include/linux/netfilter/x_tables.h:404:22: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu); ^ include/linux/compiler-gcc.h:38:13: note: in definition of macro 'RELOC_HIDE' (typeof(ptr)) (__ptr + (off)); }) ^ include/linux/percpu.h:149:31: note: in expansion of macro 'SHIFT_PERCPU_PTR' #define per_cpu_ptr(ptr, cpu) SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu))) ^ include/linux/netfilter/x_tables.h:404:10: note: in expansion of macro 'per_cpu_ptr' return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu); ^ include/linux/netfilter/x_tables.h:404:22: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu); ^ include/linux/compiler-gcc.h:38:13: note: in definition of macro 'RELOC_HIDE' (typeof(ptr)) (__ptr + (off)); }) ^ include/linux/percpu.h:149:31: note: in expansion of macro 'SHIFT_PERCPU_PTR' #define per_cpu_ptr(ptr, cpu) SHIFT_PERCPU_PTR((ptr), per_cpu_offset((cpu))) ^ include/linux/netfilter/x_tables.h:404:10: note: in expansion of macro 'per_cpu_ptr' return per_cpu_ptr((void __percpu *) cnt->pcnt, cpu); ^ cc1: all warnings being treated as errors make[1]: *** [kernel/sysctl_binary.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [kernel] Error 2 make: *** Waiting for unfinished jobs.... + /usr/lib/rpm/debugedit -b /builddir/build/BUILD -d /usr/src/debug -i arch/x86/vdso/vdso32-int80.so.dbg + /usr/lib/rpm/debugedit -b /builddir/build/BUILD -d /usr/src/debug -i arch/x86/vdso/vdso32-sysenter.so.dbg Extracted 371 tokens Extracted 27 types Extracted 12 actions Pass 1 Pass 2 Extracted 50 tokens Extracted 3 types Extracted 3 actions Pass 1 Pass 2 Extracted 203 tokens Extracted 14 types Extracted 12 actions Pass 1 Pass 2 Extracted 16 tokens Extracted 1 types Extracted 1 actions Pass 1 Pass 2 arch/x86/kernel/apm_32.c: In function 'apm_do_idle': arch/x86/kernel/apm_32.c:844:6: error: unused variable 'polling' [-Werror=unused-variable] int polling; ^ cc1: all warnings being treated as errors make[2]: *** [arch/x86/kernel/apm_32.o] Error 1 make[2]: *** Waiting for unfinished jobs.... arch/x86/kernel/cpu/perf_event.c: In function 'code_segment_base': arch/x86/kernel/cpu/perf_event.c:2186:2: error: implicit declaration of function 'user_mode_ignore_vm86' [-Werror=implicit-function-declaration] if (user_mode_ignore_vm86(regs) && regs->cs != __USER_CS) ^ cc1: all warnings being treated as errors make[3]: *** [arch/x86/kernel/cpu/perf_event.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [arch/x86/kernel/cpu] Error 2 make[1]: *** [arch/x86/kernel] Error 2 make: *** [arch/x86] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.eHlrU7 (%build) Bad exit status from /var/tmp/rpm-tmp.eHlrU7 (%build) RPM build errors: Child return code was: 1 EXCEPTION: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/kernel.spec Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 84, in trace result = func(*args, **kw) File "/usr/lib/python2.6/site-packages/mockbuild/util.py", line 526, 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 LEAVE do --> EXCEPTION RAISED