[Users] Kernel SRPM not building under recent Fedora...

Michael H. Warfield mhw at WittsEnd.com
Wed Dec 30 12:23:37 EST 2009


Hey all,

Heads up.  The OpenVZ kernels are failing to build from SRPM on Fedora
11 (and, presumably, on Fedora 12).

My Fedora server setups require some additional parameters and modules
not in the stock OpenVZ kernels, so I end up rebuilding from the srpm
when a new kernel comes out.  I saw that 2.6.27-chistyakov.1 was out and
went to rebuild it.  Since I had last rebuilt kernels, I had upgraded
several of my servers to Fedora 11 from Fedora 10 (which is now EOL).
The OpenVZ kernels would rebuild just fine under 10.  On Fedora 11, they
now fail with this at the end:

== 
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.viReGI
+ umask 022
+ cd /home/mhw/rpmbuild/BUILD
+ '[' /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386 '!=' / ']'
+ rm -rf /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386
++ dirname /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386
+ mkdir -p /home/mhw/rpmbuild/BUILDROOT
+ mkdir /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386
+ cd kernel-2.6.27
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd linux-2.6.27
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
+ /usr/lib/rpm/brp-python-bytecompile
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars
Processing files: kernel-2.6.27-chistyakov.1.i686
error: File not found: /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386/boot/vmlinuz-2.6.27-chistyakov.1
error: File not found: /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386/boot/vmlinux-2.6.27-chistyakov.1
error: File not found: /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386/boot/System.map-2.6.27-chistyakov.1
error: File not found: /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386/lib/modules/2.6.27-chistyakov.1
error: File not found: /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386/lib/modules/2.6.27-chistyakov.1/kernel
error: File not found: /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386/lib/modules/2.6.27-chistyakov.1/build


RPM build errors:
    File not found: /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386/boot/vmlinuz-2.6.27-chistyakov.1
    File not found: /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386/boot/vmlinux-2.6.27-chistyakov.1
    File not found: /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386/boot/System.map-2.6.27-chistyakov.1
    File not found: /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386/lib/modules/2.6.27-chistyakov.1
    File not found: /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386/lib/modules/2.6.27-chistyakov.1/kernel
    File not found: /home/mhw/rpmbuild/BUILDROOT/kernel-2.6.27-chistyakov.1.i386/lib/modules/2.6.27-chistyakov.1/build
== 

I know that's just the end result but I have not been able to (yet)
ascertain what it is, earlier, that's failing and causing this.

That was from an unmodified test build.  Just installed the source rpm
and run "rpmbuild --target=i686 -ba kernel-ovz.spec" with no additional
patching. 

Fortunately, I also have a couple of CentOS 5.4 servers running and was
able to rebuild the kernels on that platform just fine.  So this is not
a "priority rush job" but I thought someone would like to know that
something has changed in the rpmbuild process on recent flavors of
Fedora, so we can presume that RHEL 6 (when it comes out) will also be
problematical.  Someone might want to look into it before it becomes
critical.  I'm still looking into what went wrong on the Fedora 11
builds and will post more if and when I learn more.

Regards,
Mike
-- 
Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at WittsEnd.com
   /\/\|=mhw=|\/\/          | (678) 463-0932 |  http://www.wittsend.com/mhw/
   NIC whois: MHW9          | An optimist believes we live in the best of all
 PGP Key: 0x674627FF        | possible worlds.  A pessimist is sure of it!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
Url : http://openvz.org/pipermail/users/attachments/20091230/2f86ed6d/attachment.bin


More information about the Users mailing list