Skip to content

Instantly share code, notes, and snippets.

@midnightmagic
Created September 7, 2012 19:05
Show Gist options
  • Save midnightmagic/3668664 to your computer and use it in GitHub Desktop.
Save midnightmagic/3668664 to your computer and use it in GitHub Desktop.
rpmbuild failure of CentOS kernel on Ubuntu 12.04 LTS host
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.hybh6l
+ umask 022
+ cd /v/soft/kern/kernel/BUILD
+ patch_command=patch -p1 -F1 -s
+ [ ! -d kernel-2.6.32-279.5.2.el6/vanilla-2.6.32-279.5.2.el6/ ]
+ cd kernel-2.6.32-279.5.2.el6/
+ [ -d linux-2.6.32-279.5.2.el6.centos.plus.x86_64 ]
+ rm -rf deleteme.x86_64
+ mv linux-2.6.32-279.5.2.el6.centos.plus.x86_64 deleteme.x86_64
+ rm+ rf deleteme.x86_64
cp -rl vanilla-2.6.32-279.5.2.el6 linux-2.6.32-279.5.2.el6.centos.plus.x86_64
+ cd linux-2.6.32-279.5.2.el6.centos.plus.x86_64
+ cp /v/soft/kern/kernel/SOURCES/kernel-2.6.32-i686.config /v/soft/kern/kernel/SOURCES/kernel-2.6.32-x86_64.config .
+ cp /v/soft/kern/kernel/SOURCES/merge.pl /v/soft/kern/kernel/SOURCES/Makefile.common /v/soft/kern/kernel/SOURCES/perf /v/soft/kern/kernel/SOURCES/kabitool /v/soft/kern/kernel/SOURCES/check-kabi .
+ ApplyOptionalPatch centos-linux-2.6-ipv6-cpe-router-bug4806.patch
+ local patch=centos-linux-2.6-ipv6-cpe-router-bug4806.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-ipv6-cpe-router-bug4806.patch ]
+ wc -l /v/soft/kern/kernel/SOURCES/centos-linux-2.6-ipv6-cpe-router-bug4806.patch
+ awk {print $1}
+ local C=85
+ [ 85 -gt 9 ]
+ ApplyPatch centos-linux-2.6-ipv6-cpe-router-bug4806.patch
+ local patch=centos-linux-2.6-ipv6-cpe-router-bug4806.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-ipv6-cpe-router-bug4806.patch ]
+ patch -p1 -F1 -s
+ ApplyOptionalPatch centos-linux-2.6-bonding-fix-802.3ad.patch
+ local patch=centos-linux-2.6-bonding-fix-802.3ad.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-bonding-fix-802.3ad.patch ]
+ wc -l /v/soft/kern/kernel/SOURCES/centos-linux-2.6-bonding-fix-802.3ad.patch
+ awk {print $1}
+ local C=150
+ [ 150 -gt 9 ]
+ ApplyPatch centos-linux-2.6-bonding-fix-802.3ad.patch
+ local patch=centos-linux-2.6-bonding-fix-802.3ad.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-bonding-fix-802.3ad.patch ]
+ patch -p1 -F1 -s
+ ApplyOptionalPatch centos-linux-2.6-jfs-bug5453.patch
+ local patch=centos-linux-2.6-jfs-bug5453.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-jfs-bug5453.patch ]
+ wc -l /v/soft/kern/kernel/SOURCES/centos-linux-2.6-jfs-bug5453.patch
+ awk {print $1}
+ local C=24
+ [ 24 -gt 9 ]
+ ApplyPatch centos-linux-2.6-jfs-bug5453.patch
+ local patch=centos-linux-2.6-jfs-bug5453.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-jfs-bug5453.patch ]
+ patch -p1 -F1 -s
+ ApplyOptionalPatch centos-linux-2.6-tomoyo-fix-race-on-updating-profile-comment-bug5378.patch
+ local patch=centos-linux-2.6-tomoyo-fix-race-on-updating-profile-comment-bug5378.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-tomoyo-fix-race-on-updating-profile-comment-bug5378.patch ]
+ wc -l /v/soft/kern/kernel/SOURCES/centos-linux-2.6-tomoyo-fix-race-on-updating-profile-comment-bug5378.patch
+ awk {print $1}
+ local C=33
+ [ 33 -gt 9 ]
+ ApplyPatch centos-linux-2.6-tomoyo-fix-race-on-updating-profile-comment-bug5378.patch
+ local patch=centos-linux-2.6-tomoyo-fix-race-on-updating-profile-comment-bug5378.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-tomoyo-fix-race-on-updating-profile-comment-bug5378.patch ]
+ patch -p1 -F1 -s
+ ApplyOptionalPatch centos-linux-2.6-tomoyo-use-UMH_WAIT_PROC-constant-bug5588.patch
+ local patch=centos-linux-2.6-tomoyo-use-UMH_WAIT_PROC-constant-bug5588.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-tomoyo-use-UMH_WAIT_PROC-constant-bug5588.patch ]
+ wc -l /v/soft/kern/kernel/SOURCES/centos-linux-2.6-tomoyo-use-UMH_WAIT_PROC-constant-bug5588.patch
+ awk {print $1}
+ local C=30
+ [ 30 -gt 9 ]
+ ApplyPatch centos-linux-2.6-tomoyo-use-UMH_WAIT_PROC-constant-bug5588.patch
+ local patch=centos-linux-2.6-tomoyo-use-UMH_WAIT_PROC-constant-bug5588.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-tomoyo-use-UMH_WAIT_PROC-constant-bug5588.patch ]
+ patch -p1 -F1 -s
+ ApplyOptionalPatch centos-linux-2.6-pcie-clear-root-pme-status-bug5383.patch
+ local patch=centos-linux-2.6-pcie-clear-root-pme-status-bug5383.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-pcie-clear-root-pme-status-bug5383.patch ]
+ wc -l /v/soft/kern/kernel/SOURCES/centos-linux-2.6-pcie-clear-root-pme-status-bug5383.patch
+ awk {print $1}
+ local C=145
+ [ 145 -gt 9 ]
+ ApplyPatch centos-linux-2.6-pcie-clear-root-pme-status-bug5383.patch
+ local patch=centos-linux-2.6-pcie-clear-root-pme-status-bug5383.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-pcie-clear-root-pme-status-bug5383.patch ]
+ patch -p1 -F1 -s
+ ApplyOptionalPatch centos-linux-2.6-hid-non-LogiTech-remote-bug5780.patch
+ local patch=centos-linux-2.6-hid-non-LogiTech-remote-bug5780.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-hid-non-LogiTech-remote-bug5780.patch ]
+ wc -l /v/soft/kern/kernel/SOURCES/centos-linux-2.6-hid-non-LogiTech-remote-bug5780.patch
+ awk {print $1}
+ local C=45
+ [ 45 -gt 9 ]
+ ApplyPatch centos-linux-2.6-hid-non-LogiTech-remote-bug5780.patch
+ local patch=centos-linux-2.6-hid-non-LogiTech-remote-bug5780.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-hid-non-LogiTech-remote-bug5780.patch ]
+ patch -p1 -F1 -s
+ ApplyOptionalPatch centos-linux-2.6-fix-ptrace-getventmsg-pid-in-lxc-bug5424.patch
+ local patch=centos-linux-2.6-fix-ptrace-getventmsg-pid-in-lxc-bug5424.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-fix-ptrace-getventmsg-pid-in-lxc-bug5424.patch ]
+ wc -l /v/soft/kern/kernel/SOURCES/centos-linux-2.6-fix-ptrace-getventmsg-pid-in-lxc-bug5424.patch
+ awk {print $1}
+ local C=28
+ [ 28 -gt 9 ]
+ ApplyPatch centos-linux-2.6-fix-ptrace-getventmsg-pid-in-lxc-bug5424.patch
+ local patch=centos-linux-2.6-fix-ptrace-getventmsg-pid-in-lxc-bug5424.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/centos-linux-2.6-fix-ptrace-getventmsg-pid-in-lxc-bug5424.patch ]
+ patch -p1 -F1 -s
+ ApplyOptionalPatch linux-kernel-test.patch
+ local patch=linux-kernel-test.patch
+ shift
+ [ ! -f /v/soft/kern/kernel/SOURCES/linux-kernel-test.patch ]
+ wc -l /v/soft/kern/kernel/SOURCES/linux-kernel-test.patch
+ awk {print $1}
+ local C=1
+ [ 1 -gt 9 ]
+ chmod +x scripts/checkpatch.pl
+ mkdir configs
+ echo kernel-2.6.32-x86_64.config
+ grep -c kernel-2.6.32-i686.config
+ [ 0 -eq 0 ]
+ rm -f kernel-2.6.32-i686.config
+ echo kernel-2.6.32-x86_64.config
+ grep -c kernel-2.6.32-x86_64.config
+ [ 1 -eq 0 ]
+ mv kernel-2.6.32-x86_64.config .config
+ head -1 .config
+ cut -b 3-
+ Arch=x86_64
+ make ARCH=x86_64 nonint_oldconfig
expr: syntax error
/bin/sh: 1: [: -ge: unexpected operator
scripts/kconfig/conf.c: In function 'conf_sym':
scripts/kconfig/conf.c:161:6: warning: variable 'type' set but not used [-Wunused-but-set-variable]
scripts/kconfig/conf.c: In function 'conf_choice':
scripts/kconfig/conf.c:233:6: warning: variable 'type' set but not used [-Wunused-but-set-variable]
scripts/kconfig/conf.c:309:9: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
scripts/kconfig/conf.c: In function 'conf_askvalue':
scripts/kconfig/conf.c:107:8: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
+ echo # x86_64
+ cat .config
+ rm -f include/generated/kernel.arch
+ rm -f include/generated/kernel.cross
+ find . ( -name *.orig -o -name *~ ) -exec rm -f {} ;
+ cd ..
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.WqcIU0
+ umask 022
+ cd /v/soft/kern/kernel/BUILD
+ cd kernel-2.6.32-279.5.2.el6
+ export AFTER_LINK=sh -xc "/usr/lib/rpm/debugedit -b $$RPM_BUILD_DIR -d /usr/src/debug -i $@"
+ rm -rf /v/soft/kern/kernel/BUILDROOT/kernel-2.6.32-279.5.2.el6.centos.plus.x86_64
+ mkdir -p /v/soft/kern/kernel/BUILDROOT/kernel-2.6.32-279.5.2.el6.centos.plus.x86_64/boot
+ cd linux-2.6.32-279.5.2.el6.centos.plus.x86_64
+ BuildKernel bzImage arch/x86/boot/bzImage
+ MakeTarget=bzImage
+ KernelImage=arch/x86/boot/bzImage
+ Flavour=
+ InstallName=vmlinuz
+ Config=kernel-2.6.32-x86_64.config
+ DevelDir=/usr/src/kernels/2.6.32-279.5.2.el6.centos.plus.x86_64
+ [ arch/x86/boot/bzImage = vmlinux ]
+ CopyKernel=cp
+ KernelVer=2.6.32-279.5.2.el6.centos.plus.x86_64
+ echo BUILDING A KERNEL FOR x86_64...
BUILDING A KERNEL FOR x86_64...
+ perl -p -i -e s/^EXTRAVERSION.*/EXTRAVERSION = -279.5.2.el6.centos.plus.x86_64/ Makefile
+ make -s mrproper
expr: syntax error
/bin/sh: 1: [: -ge: unexpected operator
+ cp configs/kernel-2.6.32-x86_64.config .config
+ head -1 .config
+ cut -b 3-
+ Arch=x86_64
+ echo USING ARCH=x86_64
USING ARCH=x86_64
+ [ x86_64 == s390 -a == kdump ]
/var/tmp/rpm-tmp.WqcIU0: 76: [: x86_64: unexpected operator
+ make -s ARCH=x86_64 nonint_oldconfig
expr: syntax error
/bin/sh: 1: [: -ge: unexpected operator
scripts/kconfig/conf.c: In function 'conf_sym':
scripts/kconfig/conf.c:161:6: warning: variable 'type' set but not used [-Wunused-but-set-variable]
scripts/kconfig/conf.c: In function 'conf_choice':
scripts/kconfig/conf.c:233:6: warning: variable 'type' set but not used [-Wunused-but-set-variable]
scripts/kconfig/conf.c:309:9: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
scripts/kconfig/conf.c: In function 'conf_askvalue':
scripts/kconfig/conf.c:107:8: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
+ make -s ARCH=x86_64 V=1 -j6 bzImage
expr: syntax error
/bin/sh: 1: [: -ge: unexpected operator
expr: syntax error
/bin/sh: 1: [: -ge: unexpected operator
expr: syntax error
/bin/sh: 1: [: -ge: unexpected operator
scripts/kallsyms.c: In function 'read_symbol':
scripts/kallsyms.c:112:9: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result]
scripts/mod/modpost.c: In function 'get_markers':
scripts/mod/modpost.c:1563:12: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
scripts/mod/modpost.c: In function 'add_marker':
scripts/mod/modpost.c:1993:10: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result]
gcc: error: elf_x86_64: No such file or directory
make[2]: *** [arch/x86/vdso/vdso.so.dbg] Error 1
make[1]: *** [arch/x86/vdso] Error 2
make[1]: *** Waiting for unfinished jobs....
crypto/signature/ksign-publickey.c:2:17: fatal error: key.h: No such file or directory
compilation terminated.
make[2]: *** [crypto/signature/ksign-publickey.o] Error 1
make[1]: *** [crypto/signature] Error 2
make: *** [crypto] Error 2
make: *** Waiting for unfinished jobs....
make: *** [arch/x86] Error 2
block/cfq-iosched.c: In function 'cfq_dispatch_requests':
block/cfq-iosched.c:2230:3: warning: array subscript is above array bounds [-Warray-bounds]
drivers/mtd/maps/map_funcs.c: In function 'simple_map_read':
include/linux/mtd/map.h:375:11: warning: 'r.x[0]' may be used uninitialized in this function [-Wuninitialized]
error: Bad exit status from /var/tmp/rpm-tmp.WqcIU0 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.WqcIU0 (%build)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment