Hi Guys I'm trying to add the patch mentioned in this thread to the plain Centos kernel http://lists.centos.org/pipermail/centos/2008-August/062845.html I've followed the directions on the wiki for building a custom kernel, but after applying all the patches it fails with: make[1]: *** [nonint_oldconfig] Error 4 make: *** [nonint_oldconfig] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.74263 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.74263 (%prep) Can anyone help with this? Or is there an easier way to apply the patch, as I'm not wanting to change the config of the kernel in any way? Thanks Dunc
Akemi Yagi
2008-Sep-03 15:48 UTC
[CentOS] Adding patch to Centos Kernel - early build failure
On Wed, Sep 3, 2008 at 3:37 AM, Dunc <centos at duncb.co.uk> wrote:> Hi Guys > > I'm trying to add the patch mentioned in this thread to the plain Centos > kernel > > http://lists.centos.org/pipermail/centos/2008-August/062845.html > > I've followed the directions on the wiki for building a custom kernel, but > after applying all the patches it fails with: > > make[1]: *** [nonint_oldconfig] Error 4 > make: *** [nonint_oldconfig] Error 2 > error: Bad exit status from /var/tmp/rpm-tmp.74263 (%prep) > > RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.74263 (%prep) > > Can anyone help with this? Or is there an easier way to apply the patch, as > I'm not wanting to change the config of the kernel in any way?Just wanted to make sure you ran the rpmbuild command with --target=`uname -m` ? Or did you attempt to build it for an arch that is different from the running kernel? Now... This bug looks quite nasty and seems to be affecting a good number of people. There is a long discussion thread on the Scientific Linux and someone there is offering patched SL kernels: http://listserv.fnal.gov/scripts/wa.exe?A2=ind0808&L=scientific-linux-users&T=0&P=17645 In a case like this, Johnny Hughes used to build a patched version of CentOS kernels. Seems like he is not available at this moment. Would some other CentOS dev be able to do this for affected CentOS users? Akemi
Dunc wrote:> Hi Guys > > I'm trying to add the patch mentioned in this thread to the plain > Centos kernel > > http://lists.centos.org/pipermail/centos/2008-August/062845.html > > I've followed the directions on the wiki for building a custom kernel, > but after applying all the patches it fails with: > > make[1]: *** [nonint_oldconfig] Error 4 > make: *** [nonint_oldconfig] Error 2 > error: Bad exit status from /var/tmp/rpm-tmp.74263 (%prep) > > RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.74263 (%prep)Just to follow up on this, the patch meant nonint_oldconfig was expecting some more config options in the .config. I had to add: CONFIG_PATA_ISAPNP=n CONFIG_PATA_LEGACY=n CONFIG_PATA_QDI=n CONFIG_PATA_WINBOND_VLB=n to the base and PAE configs, and then the build continued. No idea if putting n was the right option, but I'm sure i'll find out when I run the kernel.. cheers Dunc