[root@pe1950 SPECS]# rpmbuild -bb kernel.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.wHoFnO + umask 022 + cd /root/rpmbuild/BUILD + LANG=C + export LANG + unset DISPLAY + patch_command='patch -p1 -F1 -s' + '[' '!' -d kernel-2.6.32-131.6.1.el6/vanilla-2.6.32-131.6.1.el6/ ']' + rm -f pax_global_header + cd /root/rpmbuild/BUILD + rm -rf kernel-2.6.32-131.6.1.el6 + /bin/mkdir -p kernel-2.6.32-131.6.1.el6 + cd kernel-2.6.32-131.6.1.el6 + /usr/bin/bzip2 -dc /root/rpmbuild/SOURCES/linux-2.6.32-131.6.1.el6.tar.bz2 + /bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + /bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv linux-2.6.32-131.6.1.el6 vanilla-2.6.32-131.6.1.el6 + '[' -d linux-2.6.32-131.6.1.el6.xendom0.i686 ']' + cp -rl vanilla-2.6.32-131.6.1.el6 linux-2.6.32-131.6.1.el6.xendom0.i686 + cd linux-2.6.32-131.6.1.el6.xendom0.i686 + cp /root/rpmbuild/SOURCES/config-debug /root/rpmbuild/SOURCES/config-debug-rhel /root/rpmbuild/SOURCES/config-framepointer /root/rpmbuild/SOURCES/config-generic /root/rpmbuild/SOURCES/config-generic-rhel /root/rpmbuild/SOURCES/config-i686 /root/rpmbuild/SOURCES/config-i686-debug /root/rpmbuild/SOURCES/config-i686-debug-rhel /root/rpmbuild/SOURCES/config-i686-nodebug /root/rpmbuild/SOURCES/config-i686-nodebug-rhel /root/rpmbuild/SOURCES/config-i686-rhel /root/rpmbuild/SOURCES/config-ia64-generic-rhel /root/rpmbuild/SOURCES/config-nodebug /root/rpmbuild/SOURCES/config-nodebug-rhel /root/rpmbuild/SOURCES/config-powerpc-generic /root/rpmbuild/SOURCES/config-powerpc-generic-rhel /root/rpmbuild/SOURCES/config-powerpc64 /root/rpmbuild/SOURCES/config-powerpc64-kdump /root/rpmbuild/SOURCES/config-powerpc64-rhel /root/rpmbuild/SOURCES/config-s390x /root/rpmbuild/SOURCES/config-s390x-debug /root/rpmbuild/SOURCES/config-s390x-debug-rhel /root/rpmbuild/SOURCES/config-s390x-generic-rhel /root/rpmbuild/SOURCES/config-s390x-kdump /root/rpmbuild/SOURCES/config-s390x-kdump-rhel /root/rpmbuild/SOURCES/config-s390x-rhel /root/rpmbuild/SOURCES/config-x86-generic /root/rpmbuild/SOURCES/config-x86-generic-rhel /root/rpmbuild/SOURCES/config-x86_64-debug /root/rpmbuild/SOURCES/config-x86_64-debug-rhel /root/rpmbuild/SOURCES/config-x86_64-generic /root/rpmbuild/SOURCES/config-x86_64-generic-rhel /root/rpmbuild/SOURCES/config-x86_64-nodebug /root/rpmbuild/SOURCES/config-x86_64-nodebug-rhel . + cp /root/rpmbuild/SOURCES/merge.pl /root/rpmbuild/SOURCES/Makefile.common /root/rpmbuild/SOURCES/perf /root/rpmbuild/SOURCES/kabitool /root/rpmbuild/SOURCES/check-kabi . + make -f /root/rpmbuild/SOURCES/Makefile.config VERSION=2.6.32 configs removed `temp-i686-debug-final' removed `temp-i686-final' perl merge.pl config-nodebug-merged config-generic-merged > temp-generic perl merge.pl config-x86-generic-merged temp-generic > temp-x86-generic perl merge.pl config-i686-merged temp-x86-generic > temp-i686-final perl merge.pl config-i686-nodebug-merged temp-i686-final i386 > kernel-2.6.32-i686.config perl merge.pl config-debug-merged config-generic-merged > temp-debug-generic perl merge.pl config-x86-generic-merged temp-debug-generic > temp-x86-debug-generic perl merge.pl config-i686-merged temp-x86-debug-generic > temp-i686-debug-final perl merge.pl config-i686-debug-merged temp-i686-debug-final i386 > kernel-2.6.32-i686-debug.config perl merge.pl config-x86_64-generic-merged temp-generic > temp-x86_64-generic perl merge.pl config-x86_64-nodebug-merged temp-x86_64-generic x86_64 > kernel-2.6.32-x86_64.config perl merge.pl config-x86_64-generic-merged temp-debug-generic > temp-x86_64-debug-generic perl merge.pl config-x86_64-debug-merged temp-x86_64-debug-generic x86_64 > kernel-2.6.32-x86_64-debug.config perl merge.pl config-s390x-merged temp-generic > temp-s390x-generic perl merge.pl config-s390x-merged temp-s390x-generic s390 > kernel-2.6.32-s390x.config perl merge.pl config-s390x-merged temp-debug-generic > temp-s390x-debug-generic perl merge.pl config-s390x-debug-merged temp-s390x-debug-generic s390 > kernel-2.6.32-s390x-debug.config perl merge.pl config-s390x-kdump-merged kernel-2.6.32-s390x.config s390 > kernel-2.6.32-s390x-kdump.config perl merge.pl config-powerpc-generic-merged temp-generic > temp-powerpc-generic perl merge.pl config-powerpc64-merged temp-powerpc-generic powerpc > kernel-2.6.32-ppc64.config perl merge.pl config-powerpc64-kdump-merged kernel-2.6.32-ppc64.config powerpc > kernel-2.6.32-ppc64-kdump.config perl merge.pl config-powerpc-generic-merged temp-debug-generic > temp-powerpc-debug-generic perl merge.pl config-powerpc64-merged temp-powerpc-debug-generic powerpc > kernel-2.6.32-ppc64-debug.config + ApplyOptionalPatch linux-kernel-test.patch + local patch=linux-kernel-test.patch + shift + '[' '!' -f /root/rpmbuild/SOURCES/linux-kernel-test.patch ']' ++ wc -l /root/rpmbuild/SOURCES/linux-kernel-test.patch ++ awk '{print $1}' + local C=36630 + '[' 36630 -gt 9 ']' + ApplyPatch linux-kernel-test.patch + local patch=linux-kernel-test.patch + shift + '[' '!' -f /root/rpmbuild/SOURCES/linux-kernel-test.patch ']' + case "$patch" in + patch -p1 -F1 -s + chmod +x scripts/checkpatch.pl + mkdir configs + for cfg in 'kernel-2.6.32-*.config' ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config ++ grep -c kernel-2.6.32-i686-debug.config + '[' 1 -eq 0 ']' + for cfg in 'kernel-2.6.32-*.config' ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config ++ grep -c kernel-2.6.32-i686.config + '[' 1 -eq 0 ']' + for cfg in 'kernel-2.6.32-*.config' ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config ++ grep -c kernel-2.6.32-ppc64-debug.config + '[' 0 -eq 0 ']' + rm -f kernel-2.6.32-ppc64-debug.config + for cfg in 'kernel-2.6.32-*.config' ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config ++ grep -c kernel-2.6.32-ppc64-kdump.config + '[' 0 -eq 0 ']' + rm -f kernel-2.6.32-ppc64-kdump.config + for cfg in 'kernel-2.6.32-*.config' ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config ++ grep -c kernel-2.6.32-ppc64.config + '[' 0 -eq 0 ']' + rm -f kernel-2.6.32-ppc64.config + for cfg in 'kernel-2.6.32-*.config' ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config ++ grep -c kernel-2.6.32-s390x-debug.config + '[' 0 -eq 0 ']' + rm -f kernel-2.6.32-s390x-debug.config + for cfg in 'kernel-2.6.32-*.config' ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config ++ grep -c kernel-2.6.32-s390x-kdump.config + '[' 0 -eq 0 ']' + rm -f kernel-2.6.32-s390x-kdump.config + for cfg in 'kernel-2.6.32-*.config' ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config ++ grep -c kernel-2.6.32-s390x.config + '[' 0 -eq 0 ']' + rm -f kernel-2.6.32-s390x.config + for cfg in 'kernel-2.6.32-*.config' ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config ++ grep -c kernel-2.6.32-x86_64-debug.config + '[' 0 -eq 0 ']' + rm -f kernel-2.6.32-x86_64-debug.config + for cfg in 'kernel-2.6.32-*.config' ++ echo kernel-2.6.32-i686-debug.config kernel-2.6.32-i686.config ++ grep -c kernel-2.6.32-x86_64.config + '[' 0 -eq 0 ']' + rm -f kernel-2.6.32-x86_64.config + for i in '*.config' + mv kernel-2.6.32-i686-debug.config .config ++ head -1 .config ++ cut -b 3- + Arch=i386 + make ARCH=i386 nonint_oldconfig + echo '# i386' + cat .config + rm -f include/generated/kernel.arch + rm -f include/generated/kernel.cross + for i in '*.config' + mv kernel-2.6.32-i686.config .config ++ head -1 .config ++ cut -b 3- + Arch=i386 + make ARCH=i386 nonint_oldconfig + echo '# i386' + cat .config + rm -f include/generated/kernel.arch + rm -f include/generated/kernel.cross + find . '(' -name '*.orig' -o -name '*~' ')' -exec rm -f '{}' ';' + cp /root/rpmbuild/SOURCES/extrakeys.pub . + cat ### ### Now generating a PGP key pair to be used for signing modules. ### ### If this takes a long time, you might wish to run rngd in the background to ### keep the supply of entropy topped up. It needs to be run as root, and ### should use a hardware random number generator if one is available, eg: ### ### rngd -r /dev/hwrandom ### ### If one isn't available, the pseudo-random number generator can be used: ### ### rngd -r /dev/urandom ### + gpg --homedir . --batch --gen-key /root/rpmbuild/SOURCES/genkey gpg: WARNING: unsafe permissions on homedir `.' ^Z [1]+ Stopped rpmbuild -bb kernel.spec [root@pe1950 SPECS]# rngd -r /dev/h hpet hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 [root@pe1950 SPECS]# rngd -r /dev/h hpet hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 [root@pe1950 SPECS]# rngd -r /dev/urandom [root@pe1950 SPECS]# bg [1]+ rpmbuild -bb kernel.spec & [root@pe1950 SPECS]# + cat ### ### Key pair generated. ### + '[' -s /root/rpmbuild/SOURCES/extrakeys.pub ']' + gpg --homedir . --no-default-keyring --keyring kernel.pub --import /root/rpmbuild/SOURCES/extrakeys.pub gpg: WARNING: unsafe permissions on homedir `.' gpg: key CD09BEDA: public key "Red Hat Enterprise Linux Driver Update Program " imported gpg: Total number processed: 1 gpg: imported: 1 + gpg --homedir . --export --keyring ./kernel.pub Red gpg: WARNING: unsafe permissions on homedir `.' + gcc -o scripts/bin2c scripts/bin2c.c + scripts/bin2c ksign_def_public_key __initdata + cd .. + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.SdiN32 + umask 022 + cd /root/rpmbuild/BUILD + cd kernel-2.6.32-131.6.1.el6 + LANG=C + export LANG + unset DISPLAY + export 'AFTER_LINK=sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug -i $@"' + AFTER_LINK='sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug -i $@"' + rm -rf /root/rpmbuild/BUILDROOT/kernel-2.6.32-131.6.1.el6.xendom0.i386 + mkdir -p /root/rpmbuild/BUILDROOT/kernel-2.6.32-131.6.1.el6.xendom0.i386/boot + cd linux-2.6.32-131.6.1.el6.xendom0.i686 + BuildKernel bzImage arch/x86/boot/bzImage + MakeTarget=bzImage + KernelImage=arch/x86/boot/bzImage + Flavour= + InstallName=vmlinuz + Config=kernel-2.6.32-i686.config + DevelDir=/usr/src/kernels/2.6.32-131.6.1.el6.xendom0.i686 + '[' arch/x86/boot/bzImage = vmlinux ']' + CopyKernel=cp + KernelVer=2.6.32-131.6.1.el6.xendom0.i686 + echo BUILDING A KERNEL FOR i686... BUILDING A KERNEL FOR i686... + perl -p -i -e 's/^EXTRAVERSION.*/EXTRAVERSION = -131.6.1.el6.xendom0.i686/' Makefile + make -s mrproper + cp configs/kernel-2.6.32-i686.config .config ++ head -1 .config ++ cut -b 3- + Arch=i386 + echo USING ARCH=i386 USING ARCH=i386 + '[' i386 == s390 -a '' == kdump ']' + make -s ARCH=i386 nonint_oldconfig + make -s ARCH=i386 V=1 -j4 bzImage + /usr/lib/rpm/debugedit -b /root/rpmbuild/BUILD -d /usr/src/debug -i arch/x86/vdso/vdso32-int80.so.dbg be08b652342172efda48aa85f6db264a0ebc016c + /usr/lib/rpm/debugedit -b /root/rpmbuild/BUILD -d /usr/src/debug -i arch/x86/vdso/vdso32-sysenter.so.dbg b98e2579bb694a7a7c698dcad915ba14c6ea9422 WARNING: arch/x86/built-in.o(.text+0x259b): Section mismatch in reference from the function xen_build_mfn_list_list() to the function .init.text:extend_brk() The function xen_build_mfn_list_list() references the function __init extend_brk(). This is often because xen_build_mfn_list_list lacks a __init annotation or the annotation of extend_brk is wrong. WARNING: arch/x86/built-in.o(.text+0x25c6): Section mismatch in reference from the function xen_build_mfn_list_list() to the function .init.text:extend_brk() The function xen_build_mfn_list_list() references the function __init extend_brk(). This is often because xen_build_mfn_list_list lacks a __init annotation or the annotation of extend_brk is wrong. WARNING: arch/x86/built-in.o(.text+0x25df): Section mismatch in reference from the function xen_build_mfn_list_list() to the function .init.text:extend_brk() The function xen_build_mfn_list_list() references the function __init extend_brk(). This is often because xen_build_mfn_list_list lacks a __init annotation or the annotation of extend_brk is wrong. WARNING: arch/x86/built-in.o(.text+0x2608): Section mismatch in reference from the function xen_build_mfn_list_list() to the function .init.text:extend_brk() The function xen_build_mfn_list_list() references the function __init extend_brk(). This is often because xen_build_mfn_list_list lacks a __init annotation or the annotation of extend_brk is wrong. WARNING: vmlinux.o(.text+0x1b25): Section mismatch in reference from the function xen_hvm_init_shared_info() to the function .init.text:__alloc_bootmem() The function xen_hvm_init_shared_info() references the function __init __alloc_bootmem(). This is often because xen_hvm_init_shared_info lacks a __init annotation or the annotation of __alloc_bootmem is wrong. WARNING: vmlinux.o(.text+0x24c1): Section mismatch in reference from the function xen_vcpu_setup() to the variable .init.data:setup_max_cpus The function xen_vcpu_setup() references the variable __initdata setup_max_cpus. This is often because xen_vcpu_setup lacks a __initdata annotation or the annotation of setup_max_cpus is wrong. WARNING: vmlinux.o(.text+0x24ca): Section mismatch in reference from the function xen_vcpu_setup() to the variable .init.data:setup_max_cpus The function xen_vcpu_setup() references the variable __initdata setup_max_cpus. This is often because xen_vcpu_setup lacks a __initdata annotation or the annotation of setup_max_cpus is wrong. WARNING: vmlinux.o(.text+0x3c3b): Section mismatch in reference from the function xen_build_mfn_list_list() to the function .init.text:extend_brk() The function xen_build_mfn_list_list() references the function __init extend_brk(). This is often because xen_build_mfn_list_list lacks a __init annotation or the annotation of extend_brk is wrong. WARNING: vmlinux.o(.text+0x3c66): Section mismatch in reference from the function xen_build_mfn_list_list() to the function .init.text:extend_brk() The function xen_build_mfn_list_list() references the function __init extend_brk(). This is often because xen_build_mfn_list_list lacks a __init annotation or the annotation of extend_brk is wrong. WARNING: vmlinux.o(.text+0x3c7f): Section mismatch in reference from the function xen_build_mfn_list_list() to the function .init.text:extend_brk() The function xen_build_mfn_list_list() references the function __init extend_brk(). This is often because xen_build_mfn_list_list lacks a __init annotation or the annotation of extend_brk is wrong. WARNING: vmlinux.o(.text+0x3ca8): Section mismatch in reference from the function xen_build_mfn_list_list() to the function .init.text:extend_brk() The function xen_build_mfn_list_list() references the function __init extend_brk(). This is often because xen_build_mfn_list_list lacks a __init annotation or the annotation of extend_brk is wrong. + /usr/lib/rpm/debugedit -b /root/rpmbuild/BUILD -d /usr/src/debug -i .tmp_vmlinux1 d968154673ca84affcb9e50286ccafcac8565924 + /usr/lib/rpm/debugedit -b /root/rpmbuild/BUILD -d /usr/src/debug -i .tmp_vmlinux2 7fa0a26ff47385ab01fc1c4badfbfd884b86e1af + /usr/lib/rpm/debugedit -b /root/rpmbuild/BUILD -d /usr/src/debug -i .tmp_vmlinux3 d6f6460db1dcdc524abf46567803046b397401e2 unifdef: /root/rpmbuild/BUILD/kernel-2.6.32-131.6.1.el6/linux-2.6.32-131.6.1.el6.xendom0.i686/usr/include/xen/privcmd.h.tmp: 79: Premature EOF (#if line 33 depth 1) unifdef: output may be truncated /root/rpmbuild/BUILD/kernel-2.6.32-131.6.1.el6/linux-2.6.32-131.6.1.el6.xendom0.i686/usr/include/drm/drm_mode.h:85: found __[us]{8,16,32,64} type without #include /root/rpmbuild/BUILD/kernel-2.6.32-131.6.1.el6/linux-2.6.32-131.6.1.el6.xendom0.i686/usr/include/drm/i915_drm.h:120: found __[us]{8,16,32,64} type without #include /root/rpmbuild/BUILD/kernel-2.6.32-131.6.1.el6/linux-2.6.32-131.6.1.el6.xendom0.i686/usr/include/drm/mga_drm.h:260: found __[us]{8,16,32,64} type without #include /root/rpmbuild/BUILD/kernel-2.6.32-131.6.1.el6/linux-2.6.32-131.6.1.el6.xendom0.i686/usr/include/drm/radeon_drm.h:758: found __[us]{8,16,32,64} type without #include /root/rpmbuild/BUILD/kernel-2.6.32-131.6.1.el6/linux-2.6.32-131.6.1.el6.xendom0.i686/usr/include/drm/via_drm.h:117: found __[us]{8,16,32,64} type without #include + /usr/lib/rpm/debugedit -b /root/rpmbuild/BUILD -d /usr/src/debug -i vmlinux d6f6460db1dcdc524abf46567803046b397401e2 Root device is (9, 1) Setup is 13564 bytes (padded to 13824 bytes). System is 3676 kB CRC 56a7917a Kernel: arch/x86/boot/bzImage is ready (#1) + '[' i386 '!=' s390 -o '' '!=' kdump ']' + make -s ARCH=i386 V=1 -j4 modules