I thought I had all the tools I needed for this, but it seems something is missing. When I build the 2.6.18-8.1.3 kernel from source, I get this error:
extracting debug info from /var/tmp/kernel-2.6.18-8.el5.trace-root/usr/src/kernels/2.6.18-8.el5.trace-x86_64/scripts/conmakehash extracting debug info from /var/tmp/kernel-2.6.18-8.el5.trace-root/usr/lib/debug/lib/modules/2.6.18-8.el5.trace/vmlinux cpio: kernel-2.6.18/linux-2.6.18.x86_64/<built-in>: No such file or directory 187199 blocks + /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot /var/tmp/rpm-tmp.77254: line 62: /usr/lib/rpm/check-rpaths: No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.77254 (%install)
RPM build errors: Bad exit status from /var/tmp/rpm-tmp.77254 (%install)
Sure enough, neither of the two check- files exist, but I'm not sure which package I'm missing that would contain them. I thought I had selected all the right development packafges during install and with yum, and google has not been my friend on this one.
yum grouplist Loading "protectbase" plugin Loading "installonlyn" plugin Setting up Group Process Setting up repositories Installed Groups: Office/Productivity Development Libraries Editors System Tools GNOME Software Development Text-based Internet GNOME Desktop Environment Dialup Networking Support Authoring and Publishing Network Servers Legacy Software Development Java Legacy Software Support X Window System Graphics Web Server Windows File Server Printing Support Mail Server Server Configuration Tools Sound and Video Administration Tools Yum Utilities Graphical Internet Available Groups: Engineering and Scientific MySQL Database X Software Development Virtualization Legacy Network Server DNS Name Server FTP Server Games and Entertainment XFCE-4.4 Java Development Emacs Ruby KDE Software Development KDE (K Desktop Environment) PostgreSQL Database News Server Development Tools FreeNX and NX Done
(Funny thing - I tried to do 'yum groupinstall "Development Tools"', which I did shortly after initial installation, and it tells me that they're alreayd installed - someone else had a question about this earlier today, too.)
I also tried:
yum list | grep rpm and got this: redhat-rpm-config.noarch 8.0.45-17.el5.centos installed rpm.x86_64 4.4.2-37.el5 installed rpm-build.x86_64 4.4.2-37.el5 installed rpm-devel.i386 4.4.2-37.el5 installed rpm-devel.x86_64 4.4.2-37.el5 installed rpm-libs.i386 4.4.2-37.el5 installed rpm-libs.x86_64 4.4.2-37.el5 installed rpm-python.x86_64 4.4.2-37.el5 installed rpmforge-release.x86_64 0.3.6-1.el5.rf installed
Since there's no current wiki on building kernels for 5.0 (or if it is current, I have already been through all those steps and yum tells me there's nothing to do), can someone point me at what I don't have so I can get it and get on with it?
Thanks.
On 5/18/07, Mark Hull-Richter mhullrich@gmail.com wrote:
yum list | grep rpm and got this: redhat-rpm-config.noarch 8.0.45-17.el5.centos installed rpm.x86_64 4.4.2-37.el5 installed rpm-build.x86_64 4.4.2-37.el5 installed rpm-devel.i386 4.4.2-37.el5 installed rpm-devel.x86_64 4.4.2-37.el5 installed rpm-libs.i386 4.4.2-37.el5 installed rpm-libs.x86_64 4.4.2-37.el5 installed rpm-python.x86_64 4.4.2-37.el5 installed rpmforge-release.x86_64 0.3.6-1.el5.rf installed
You don't seem to have rpmdevtools
Akemi
On 5/18/07, Akemi Yagi amyagi@gmail.com wrote:
You don't seem to have rpmdevtools
True. Thanks.
Akemi Yagi wrote:
You don't seem to have rpmdevtools
there is no such thing required to rebuild the centos kernels, everything required is included in the distro itself.
- KB
Mark Hull-Richter wrote:
extracting debug info from /var/tmp/kernel-2.6.18-8.el5.trace-root/usr/lib/debug/lib/modules/2.6.18-8.el5.trace/vmlinux
cpio: kernel-2.6.18/linux-2.6.18.x86_64/<built-in>: No such file or directory 187199 blocks
- /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot
/var/tmp/rpm-tmp.77254: line 62: /usr/lib/rpm/check-rpaths: No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.77254 (%install)
you have something broken in your rpm macros, the check-rpaths is not used / called or required on CentOS-5 at all.
I've posted the buildlog for this kernel at : http://dev.centos.org/~z00dax/misc/kernel-2.6.18-8.el5-build_log take a look and see how that is different from your own results.
- KB
On 5/20/07, Karanbir Singh mail-lists@karan.org wrote:
you have something broken in your rpm macros, the check-rpaths is not used / called or required on CentOS-5 at all.
I've posted the buildlog for this kernel at : http://dev.centos.org/~z00dax/misc/kernel-2.6.18-8.el5-build_log take a look and see how that is different from your own results.
Forgive my audacity, but would it not be simpler to post a sample of .rpmmacros?
Here's mine:
$ cat .rpmmacros %_topdir %(echo $HOME)/rpmbuild %_smp_mflags -j3 %__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot %_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
Clearly the __arch_install_post line is wrong, but what should this contain?
Thanks!
Mark Hull-Richter wrote:
Forgive my audacity, but would it not be simpler to post a sample of .rpmmacros?
here's mine: %_topdir /home/kbsingh/rpmroot/
Here's mine:
$ cat .rpmmacros %_topdir %(echo $HOME)/rpmbuild %_smp_mflags -j3 %__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot %_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
Clearly the __arch_install_post line is wrong, but what should this contain?
it needs to contain nothing.
- KB
On 5/21/07, Mark Hull-Richter mhullrich@gmail.com wrote:
I've posted the buildlog for this kernel at : http://dev.centos.org/~z00dax/misc/kernel-2.6.18-8.el5-build_log take a look and see how that is different from your own results.
Forgive my audacity, but would it not be simpler to post a sample of .rpmmacros?
Your rpmmacros file may not be the only thing affecting it. This is why it was recommended that you compare the output. If you're lazy, learn to use diff.
Here's mine:
$ cat .rpmmacros %_topdir %(echo $HOME)/rpmbuild %_smp_mflags -j3 %__arch_install_post /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot %_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}
Clearly the __arch_install_post line is wrong, but what should this contain?
You have to make the rpmmacros file from scratch since it doesn't exist by default. This begs the question: Why are you including things if you have no idea what they are? When you added the lines you have, did you not check to make sure that the files actually exist?
On 5/21/07, Jim Perrin jperrin@gmail.com wrote:
Your rpmmacros file may not be the only thing affecting it. This is why it was recommended that you compare the output. If you're lazy, learn to use diff.
Ah, of course - the confrontational approach. I love it!
You have to make the rpmmacros file from scratch since it doesn't exist by default. This begs the question: Why are you including things if you have no idea what they are? When you added the lines you have, did you not check to make sure that the files actually exist?
Leftovers from 4.4.
However, I am chastised - I will pore through that and see what comes up, if removing everything except the HOME line in the file does not work (the true "lazy" approach :-). On the other hand, again with audacity I ask, would it not have been simpler just to say, as Karanbir did, "it needs to contain nothing?"
On 5/21/07, Mark Hull-Richter mhullrich@gmail.com wrote:
On 5/21/07, Jim Perrin jperrin@gmail.com wrote:
Your rpmmacros file may not be the only thing affecting it. This is why it was recommended that you compare the output. If you're lazy, learn to use diff.
Ah, of course - the confrontational approach. I love it!
If you want to take it as such, that is of course your perogative. To me it's simply a display of facts. You may have differences on your system other than what Karanbir has. So even with two identical files, you may still have differences. Posting your version of the rpmmacros file won't help us find those. You comparing build logs will.
Because scripted (rpmbuild and specfile) builds are reproduceable in similar manner, using diff will let you identify differences with line number tagging. Makes things simple.
On 5/21/07, Jim Perrin jperrin@gmail.com wrote:
On 5/21/07, Mark Hull-Richter mhullrich@gmail.com wrote:
Ah, of course - the confrontational approach. I love it!
If you want to take it as such, that is of course your perogative. To me it's simply a display of facts.
I do not consider someone calling me lazy a display of fact. I do consider it confrontational, and, at least in this case, unnecessarily so.
You may have differences on your system other than what Karanbir has. So even with two identical files, you may still have differences. Posting your version of the rpmmacros file won't help us find those. You comparing build logs will.
It might, but I have no particular desire, absent other compelling input, to wade through a 52817 line diff. If you do, my hat's off to you, or would be if I wore one.
Because scripted (rpmbuild and specfile) builds are reproduceable in similar manner, using diff will let you identify differences with line number tagging. Makes things simple.
I have used diff for years for this and other, far less complex issues, but I dare say even you would not prefer to plow (or wade) through a 52000+ line diff.
Among other things, there are differences related to the build directory, my excluding xen and including jfs and xfs. Should the new kernel not function properly, I will be delighted (sort of) to go back and use the plain vanilla spec file and grep out the build dir differences.
FWIW, diff was a great suggestion; my issue was with the context (see above).
On 5/21/07, Mark Hull-Richter mhullrich@gmail.com wrote:
If you want to take it as such, that is of course your perogative. To me it's simply a display of facts.
I do not consider someone calling me lazy a display of fact. I do consider it confrontational, and, at least in this case, unnecessarily so.
Okay, I'm getting a little tired here, so this will be my last effort at caring about this thread. I did not call you lazy. I said 'if you are lazy, use diff'. I use diff extensively because I don't care to read through 18,000+ lines of log entries. I want to know what happened differently this go-around. It wasn't so much a "YOU ARE LAZY!!!!!!1111OMGeleventy!!!" as a "use the tools at your disposal to make life easier, and don't forget this one". meh.
On 5/21/07, Jim Perrin jperrin@gmail.com wrote:
Okay, I'm getting a little tired here, so this will be my last effort at caring about this thread. I did not call you lazy. I said 'if you are lazy, use diff'. I use diff extensively because I don't care to read through 18,000+ lines of log entries. I want to know what happened differently this go-around. It wasn't so much a "YOU ARE LAZY!!!!!!1111OMGeleventy!!!" as a "use the tools at your disposal to make life easier, and don't forget this one". meh.
Oh. (Can't say much else around the foot in my mouth....)
(sigh)
--- Mark Hull-Richter mhullrich@gmail.com wrote:
On 5/21/07, Jim Perrin jperrin@gmail.com wrote:
Okay, I'm getting a little tired here, so this
will be my last effort
at caring about this thread. I did not call you lazy. I said 'if you are lazy,
use diff'. I use
diff extensively because I don't care to read
through 18,000+ lines of
log entries. I want to know what happened
differently this go-around.
It wasn't so much a "YOU ARE
LAZY!!!!!!1111OMGeleventy!!!" as a "use
the tools at your disposal to make life easier,
and don't forget this
one". meh.
Oh. (Can't say much else around the foot in my mouth....)
(sigh) _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
now now children play nice on the list.. otherwise you are going to have to go to bed without your mailing list tonight :-)
Steven
"On the side of the software box, in the 'System Requirements' section, it said 'Requires Windows or better'. So I installed Linux."
Mark Hull-Richter spake the following on 5/21/2007 11:18 AM:
On 5/21/07, Jim Perrin jperrin@gmail.com wrote:
Your rpmmacros file may not be the only thing affecting it. This is why it was recommended that you compare the output. If you're lazy, learn to use diff.
Ah, of course - the confrontational approach. I love it!
Some on the list are more so than others.
You have to make the rpmmacros file from scratch since it doesn't exist by default. This begs the question: Why are you including things if you have no idea what they are? When you added the lines you have, did you not check to make sure that the files actually exist?
Leftovers from 4.4.
However, I am chastised - I will pore through that and see what comes up, if removing everything except the HOME line in the file does not work (the true "lazy" approach :-). On the other hand, again with audacity I ask, would it not have been simpler just to say, as Karanbir did, "it needs to contain nothing?"
See above. I see you removed the Linux Kernel Engineer from your signature. Did you get too much flame for it? It seemed to trigger some interesting responses.
On 5/21/07, Scott Silva ssilva@sgvwater.com wrote:
Mark Hull-Richter spake the following on 5/21/2007 11:18 AM:
Ah, of course - the confrontational approach. I love it!
Some on the list are more so than others.
True.
See above. I see you removed the Linux Kernel Engineer from your signature. Did you get too much flame for it? It seemed to trigger some interesting responses.
Too interesting, as in the ancient Chinese curse, which unfortunately has come to pass.