LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


LinkBack Search this Thread
Old 09-24-2012, 02:01 PM   #1
LQ Newbie
Registered: Sep 2012
Posts: 6

Rep: Reputation: Disabled
CentOS cannot build kernel RPM

I am following the guide on the CentOS wiki for Centos 5.8

Everything works great, down to the last step but I get no RPMs in my RPM or SRPM directories.

Here is the command I am running:
rpmbuild -bb --target=`uname -m` kernel.spec 2> build-err.log | tee build-out.log
Once it completes it just says:
RPM build errors:
Pretty much blank - I assumed that it completed with no errors, but I still have no RPMs, I see all the package sources under /var/tmp/ and I put mine under ~/rpmbuild just like the guide.

The logs have a lot of info, but nothing that points to an error - any ideas?

here are pastebins of build-out.log and build-err.log and the kernel.spec

Last edited by totalimpact; 09-24-2012 at 02:05 PM. Reason: more info
Old 09-25-2012, 07:02 PM   #2
Registered: May 2001
Posts: 26,523
Blog Entries: 51

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
Originally Posted by totalimpact View Post
here are pastebins
Thanks, that really helped.

Originally Posted by totalimpact View Post
I am following the guide on the CentOS wiki for Centos 5.8
Unfortunately you didn't as you fscked up 3 lines below the first set of bullet points already at the point where the HOWTO urges you to NOT BUILD SOFTWARE, LET ALONE THE KERNEL, AS ROOT ACCOUNT USER, leading to the last stage of the rpmbuild process (yes, the kernel builds OK) erroring out over the +83K of "installed but unpackaged" files that '/usr/lib/rpm/check-files' found outside of /var/tmp/kernel-2.6.18-308.13.1.el5.xenvoip-root in /boot, /lib/modules and /usr/src/kernels.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to patch and build rpm of a kernel module (btusb.ko) ghoshdibyajyoti Linux - Newbie 1 01-09-2012 09:20 AM
Unable to build kernel RPM with 'custom name'. (need not kernel but kernel-something) RattleSn@ke Linux - Kernel 1 01-12-2011 06:30 PM
How to build an RPM from tar.gz on CentOS 4.5? thatguyinss Linux - Software 3 01-12-2009 08:30 PM
How to build kernel RPM without rebuilding the whole thing every time JoeyAdams Fedora 2 06-22-2008 08:15 PM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus Suse/Novell 5 12-02-2004 12:48 PM

All times are GMT -5. The time now is 02:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration