 |
|
| Linux Forum Index » Linux Setup » difficulty recompiling RHEL 4.2 kernel |
|
Page 2 of 2 Goto page Previous 1, 2 |
|
| Author |
Message |
| Dushan Mitrovich |
Posted: Tue Jun 06, 2006 12:19 pm |
|
|
|
Guest
|
"ne..." <akabi@speakeasy.net.invalid> wrote:
Quote: Try this instead;
1) cp /boot/config-[whatever] .config
# OR cp configs/config-[whatever] .config
2) make oldconfig
3) make menuconfig
4) make rpm
You need to copy the /boot/config-[whatever] so that you start of with a
working configuration. This assumes that /boot/config-[whatever] is the
configuration of an aktual working kernel. make oldconfig then confi-
gures your to be compiled kernel using the old configuration. This
drops all the options that were in the olde kernel but not in the new
kernel. It also gives the ability to configure new options. make
menuconfig gives you ability to further configure your kernel with a
nicer looking interface.
Thanks for describing what the different steps are supposed to do. But
one sentence has me perplexed:
"This drops all the options that were in the olde kernel but not in the
new kernel."
If I understood the sequence correctly, the command 'make oldconfig' con-
figures an as-yet-uncompiled kernel to the old, existing configuration,
including all the original options. Only when I do 'make menuconfig' do
I get a chance to drop old, unwanted options and add new ones. Is my
picture wrong?
- Dushan |
|
|
| Back to top |
|
|
|
| Nico Kadel-Garcia |
Posted: Tue Jun 06, 2006 2:28 pm |
|
|
|
Guest
|
"Dushan Mitrovich" <anti@spamming.org> wrote in message
news:occhE5aAHA1X092yn@spinn.net...
Quote: "ne..." <akabi@speakeasy.net.invalid> wrote:
Try this instead;
1) cp /boot/config-[whatever] .config
# OR cp configs/config-[whatever] .config
2) make oldconfig
3) make menuconfig
4) make rpm
You need to copy the /boot/config-[whatever] so that you start of with a
working configuration. This assumes that /boot/config-[whatever] is the
configuration of an aktual working kernel. make oldconfig then confi-
gures your to be compiled kernel using the old configuration. This
drops all the options that were in the olde kernel but not in the new
kernel. It also gives the ability to configure new options. make
menuconfig gives you ability to further configure your kernel with a
nicer looking interface.
Thanks for describing what the different steps are supposed to do. But
one sentence has me perplexed:
"This drops all the options that were in the olde kernel but not in the
new kernel."
If I understood the sequence correctly, the command 'make oldconfig' con-
figures an as-yet-uncompiled kernel to the old, existing configuration,
including all the original options. Only when I do 'make menuconfig' do
I get a chance to drop old, unwanted options and add new ones. Is my
picture wrong?
It's very close. The extra source of confusion is that lots of folks go and
get brand new kernels and use the .config from their existing, older source
tree. This can cause format changes in the .config file, and old modules
that have been discarded will wind up deleted from the rebuild .config file,
and new modules that may never have existed before will be listed, if not
disabled by default or by other settings, in the new .config file.
It's a handy way to get a starting place for what drivers your current
kernel has available and to avoid accidentally leaving out something vital,
like network drivers or SCSI controller drivers that you need to actually
boot with. |
|
|
| Back to top |
|
|
|
| Nico Kadel-Garcia |
Posted: Thu Jun 08, 2006 7:14 am |
|
|
|
Guest
|
"Unruh" <unruh-spam@physics.ubc.ca> wrote in message
news:e68hhi$5fl$1@nntp.itservices.ubc.ca...
Quote: anti@spamming.org (Dushan Mitrovich) writes:
"Nico Kadel-Garcia" <nkadel@comcast.net> wrote:
"Dushan Mitrovich" <anti@spamming.org> wrote in message
news:lT0hE5aAHYRe092yn@spinn.net...
"Nico Kadel-Garcia" <nkadel@comcast.net> wrote:
...
Actually, I'm using Scientific Linux 4.2, which came on 4 CDs. It is
RHEL 4.2 specialized for scientific apps by Fermilab, CERN, and several
other national labs, and is supposed to be stable. And so far it's been
_very_ stable: haven't managed to modify it at all. But I have already
found some bugs in it (in particular, system-config-display doesn't work
correctly, and the supplied video drivers are very flaky -- details if
video drivers have nothing to do with the kernel. Those are under X.
What is system-config-display?
[ etc. ]
Unruh, you're being disingenuous here. First, he was referring to the
Scientific Linux distribution 4.2 in this case, not the kernel. Second,
you'd better believe that video drivers have something to do with the
kernel! You have to actually get the commands to the AGP or PCI card, and
those are kernel level operations, as much as other parts of the operation
occur in userland with the graphics drivers.
And system-config-display is RedHat's X display configuration tool. It's
actually pretty good.
Quote: you want them) that I've managed to get around. To say that I'm not en-
amoured with this distro would be a major understatement. The Scientific
Linux managers at Fermilab say my earlier problems were in parts of the
distro they hadn't touched. I had sent a description of the problems and
solutions to RedHat, and never got any response back.
You would hardly expect RedHat to do something about a rewritten version.
Might as well send Redhat problems with Mandrake, since Mandrake branched
off from Redhat 5 years ago.
They may have actually noticed the problem, but RedHat sells support for
RHEL these days: you'd need to buy that support to expect to get it.
Quote: What about simply deleting, flushing the remnants of, and re-installing
kernel-devel or kernel-source for your distribution?
Yes, at this point that's what I think will have to be done.
Why?
Read the thread. He's having weird compilation errors, possibly due to
remnants of previously failed compilations and interrupted operations.
Quote: This repeated failure is what made me wonder about re-prepping the
source.
One more, unrelated, question: I have an external USR 33.6 modem that
works fine from OS/2, but linux can't seem to find it. From what I've
Find it? What is to find. It is connected to a serial port. You just send
stuff to that serial port.
www.theory.physics.ubc.ca/ppp-linux.html
Which is just the sort of thing he was looking for, in particular:
http://www.theory.physics.ubc.ca/ppp-linux.html#Modem
Quote: read, my (faint) impression is that modem support is already available
as
a module. I've looked on the I'net for a linux driver for it, but
could
not find anything. Any thoughts?
?? an external modem does NOT need a module.
True. The guy's a newbie, be nice!
External modems are amazingly useful when you want to watch the blinking
lights and see what's happening on modem calls: I find them very useful for
debugging.
Quote: Redhat for some reason likes Gnome. Mandriva likes KDE.
There are some... interesting licensing issues with Gnome vs. KDE.
Quote: Here's another head-scratcher I ran into: I have an IDE DVD/CD recorder,
which Linux sees and mounts/unmounts jst fine. I also have a SCSI CD-ROM
that I have no idea how to get recognized. Linux sees the SCSI adapter
okay, but how do I find the CD drive attached to it?
/dev/scd0 probably.
Only if he's got the ide-scsi module in place already: and using that module
has seriously lost its charm since the 2.6 kernel came out with better
support for directly writing to IDE based CD-RW drives, and cdrecord was
patched to support it. |
|
|
| Back to top |
|
|
|
| Dushan Mitrovich |
Posted: Thu Jun 08, 2006 10:53 am |
|
|
|
Guest
|
Unruh <unruh-spam@physics.ubc.ca> wrote:
Quote: Dushan Mitrovich writes:
Actually, I'm using Scientific Linux 4.2, which came on 4 CDs. It is
RHEL 4.2 specialized for scientific apps by Fermilab, CERN, and several
other national labs, and is supposed to be stable. And so far it's been
_very_ stable: haven't managed to modify it at all. But I have already
found some bugs in it (in particular, system-config-display doesn't work
correctly, and the supplied video drivers are very flaky -- details if
video drivers have nothing to do with the kernel. Those are under X.
What is system-config-display?
It records the parameters relating to keyboard, mouse, video adapter and
monitor.
Quote: you want them) that I've managed to get around. To say that I'm not en-
amoured with this distro would be a major understatement. The Scientific
Linux managers at Fermilab say my earlier problems were in parts of the
distro they hadn't touched. I had sent a description of the problems and
solutions to RedHat, and never got any response back.
You would hardly expect RedHat to do something about a rewritten version.
Might as well send Redhat problems with Mandrake, since Mandrake branched
off from Redhat 5 years ago.
But according to the people at Fermilab responsible for SL, that part has
_not_ been rewritten. My description sent to them was intended as helpful
feedback.
Nico Kadel-Garcia wrote:
Quote: What about simply deleting, flushing the remnants of, and re-installing
kernel-devel or kernel-source for your distribution?
Yes, at this point that's what I think will have to be done.
Why?
I don't know what else to do, everything else having failed.
<snip>
Quote: One more, unrelated, question: I have an external USR 33.6 modem that
works fine from OS/2, but linux can't seem to find it. From what I've
Find it? What is to find. It is connected to a serial port. You just
send stuff to that serial port.
www.theory.physics.ubc.ca/ppp-linux.html
Oh. Thanks for the reference.
Quote: read, my (faint) impression is that modem support is already available
as a module. I've looked on the I'net for a linux driver for it, but
could not find anything. Any thoughts?
?? an external modem does NOT need a module.
Good, now I know.
<snip>
Quote: Here's another head-scratcher I ran into: I have an IDE DVD/CD recorder,
which Linux sees and mounts/unmounts jst fine. I also have a SCSI CD-ROM
that I have no idea how to get recognized. Linux sees the SCSI adapter
okay, but how do I find the CD drive attached to it?
/dev/scd0 probably.
I'll try that; thanks.
- Dushan |
|
|
| Back to top |
|
|
|
| Unruh |
Posted: Thu Jun 08, 2006 10:57 am |
|
|
|
Guest
|
"Nico Kadel-Garcia" <nkadel@comcast.net> writes:
Quote: "Unruh" <unruh-spam@physics.ubc.ca> wrote in message
news:e68hhi$5fl$1@nntp.itservices.ubc.ca...
anti@spamming.org (Dushan Mitrovich) writes:
"Nico Kadel-Garcia" <nkadel@comcast.net> wrote:
"Dushan Mitrovich" <anti@spamming.org> wrote in message
news:lT0hE5aAHYRe092yn@spinn.net...
"Nico Kadel-Garcia" <nkadel@comcast.net> wrote:
...
Actually, I'm using Scientific Linux 4.2, which came on 4 CDs. It is
RHEL 4.2 specialized for scientific apps by Fermilab, CERN, and several
other national labs, and is supposed to be stable. And so far it's been
_very_ stable: haven't managed to modify it at all. But I have already
found some bugs in it (in particular, system-config-display doesn't work
correctly, and the supplied video drivers are very flaky -- details if
video drivers have nothing to do with the kernel. Those are under X.
What is system-config-display?
[ etc. ]
Unruh, you're being disingenuous here. First, he was referring to the
Scientific Linux distribution 4.2 in this case, not the kernel. Second,
you'd better believe that video drivers have something to do with the
kernel! You have to actually get the commands to the AGP or PCI card, and
those are kernel level operations, as much as other parts of the operation
occur in userland with the graphics drivers.
Well, I think that you are being disingenuous. Yes, of course the kernel
has something to do with everything on the machine. HOwever, it sounds to
me like he has problems with the video driver. The video driver is a part
of X, not a part of the kernel or of modules compiled with the kernel. Ie,
to solve his video problems a kernel recompile is almost certain to be
pretty useless exercise.
Quote: And system-config-display is RedHat's X display configuration tool. It's
actually pretty good.
OK, I do not know it. It would also be better if he told us what his
problems were with that tool. Again, it is highly probable that a kernel
recompile will not fix those problems.
Quote: you want them) that I've managed to get around. To say that I'm not en-
amoured with this distro would be a major understatement. The Scientific
Linux managers at Fermilab say my earlier problems were in parts of the
distro they hadn't touched. I had sent a description of the problems and
solutions to RedHat, and never got any response back.
You would hardly expect RedHat to do something about a rewritten version.
Might as well send Redhat problems with Mandrake, since Mandrake branched
off from Redhat 5 years ago.
They may have actually noticed the problem, but RedHat sells support for
RHEL these days: you'd need to buy that support to expect to get it.
Agreed. They do however have the Fedora Core line which does do "free"
support, in the sense of accepting bug reports I believe.
Quote: What about simply deleting, flushing the remnants of, and re-installing
kernel-devel or kernel-source for your distribution?
Yes, at this point that's what I think will have to be done.
Why?
Read the thread. He's having weird compilation errors, possibly due to
remnants of previously failed compilations and interrupted operations.
My why was more about why is he recompiling his kernel. Of course it is a
fun exercise.
What I have found works better is to
rpm -Uhv kernel-.....src.rpm
which unpacks the kernel in /usr/src/*/SOURCE
Untar the kernel source tar, and the updates, change the config, retar them
and then run rpm -ba ../SPECS/kernel*.spec
There are disadvantages-- too many kernels get built. But it is far more
the way in which the actual kernel gets built and it allows installation
via rpm, which is one of the great advantages of RedHat.
Quote: This repeated failure is what made me wonder about re-prepping the
source.
One more, unrelated, question: I have an external USR 33.6 modem that
works fine from OS/2, but linux can't seem to find it. From what I've
Find it? What is to find. It is connected to a serial port. You just send
stuff to that serial port.
www.theory.physics.ubc.ca/ppp-linux.html
Which is just the sort of thing he was looking for, in particular:
http://www.theory.physics.ubc.ca/ppp-linux.html#Modem
read, my (faint) impression is that modem support is already available
as
a module. I've looked on the I'net for a linux driver for it, but
could
not find anything. Any thoughts?
?? an external modem does NOT need a module.
True. The guy's a newbie, be nice!
Is he? Then why in the world is he fooling around with the kernel? It is
like someone having trouble with grinding the valves on his Toyota, and
then being told that the first car he ever saw was two weeks ago. Ie, in
general he wants to figure out how to use the thing first before he starts
doing one of the most difficult recompiling jobs. Not least because the
turnaround is hours, not minutes.
Quote: External modems are amazingly useful when you want to watch the blinking
lights and see what's happening on modem calls: I find them very useful for
debugging.
Agreed. Unfortunately all I use my modems for these days is dialing phone
calls.
Quote: Redhat for some reason likes Gnome. Mandriva likes KDE.
There are some... interesting licensing issues with Gnome vs. KDE.
There were. I think that has changed.
Quote: Here's another head-scratcher I ran into: I have an IDE DVD/CD recorder,
which Linux sees and mounts/unmounts jst fine. I also have a SCSI CD-ROM
that I have no idea how to get recognized. Linux sees the SCSI adapter
okay, but how do I find the CD drive attached to it?
/dev/scd0 probably.
Only if he's got the ide-scsi module in place already: and using that module
has seriously lost its charm since the 2.6 kernel came out with better
support for directly writing to IDE based CD-RW drives, and cdrecord was
patched to support it.
NO. He says he has a SCSI CDROM. That is a cdrom connected to a real scsi
card. No ide-scsi. It is not his ide cdrom he wants to find, it is his scsi
cdrom he wants to find.
I am in serious doubts about his need to recompile the kernel. It is highly
probable that theproblem is on the other side of the keyboard-- ie
unfamiliarity with the system.
FAr too many of the HowTos are 10 years old and were written by very
experienced people for whom a kernel recompile was easy. They keep
advocating that you recompile your kernel. That is almost NEVER the
solution for any problem in any modern distribution of Linux. I would not
say never-- since sometimes the distribution does get something wrong, but
it is like a cyliner relap when fixing a car. That is almost never the
solution for any problem you have with the car. |
|
|
| Back to top |
|
|
|
| Nico Kadel-Garcia |
Posted: Thu Jun 08, 2006 2:41 pm |
|
|
|
Guest
|
"Unruh" <unruh-spam@physics.ubc.ca> wrote in message
news:e69kuf$gkm$1@nntp.itservices.ubc.ca...
Quote: My why was more about why is he recompiling his kernel. Of course it is a
fun exercise.
What I have found works better is to
rpm -Uhv kernel-.....src.rpm
which unpacks the kernel in /usr/src/*/SOURCE
Untar the kernel source tar, and the updates, change the config, retar
them
and then run rpm -ba ../SPECS/kernel*.spec
There are disadvantages-- too many kernels get built. But it is far more
the way in which the actual kernel gets built and it allows installation
via rpm, which is one of the great advantages of RedHat.
It also takes over a day on a not-very-fast machine, and you very much need
to update the .spec file to give it a different version name to prevent
fascinating conflicts with the existing kernel. But yeah, this works.
Quote: read, my (faint) impression is that modem support is already
available
as
a module. I've looked on the I'net for a linux driver for it, but
could
not find anything. Any thoughts?
?? an external modem does NOT need a module.
True. The guy's a newbie, be nice!
Is he? Then why in the world is he fooling around with the kernel? It is
like someone having trouble with grinding the valves on his Toyota, and
then being told that the first car he ever saw was two weeks ago. Ie, in
general he wants to figure out how to use the thing first before he starts
doing one of the most difficult recompiling jobs. Not least because the
turnaround is hours, not minutes.
Newbies gotta learn sometime. And it's actually a separate issue: he's
trying to get HPFS support, system-config-display was something he mentioned
in passing.
Before you start harping at newbies, please go back and re-read the thread.
Quote: External modems are amazingly useful when you want to watch the blinking
lights and see what's happening on modem calls: I find them very useful
for
debugging.
Agreed. Unfortunately all I use my modems for these days is dialing phone
calls.
Heh. Yeah, I was heavily involved in HylaFAX some years back: I still use it
for modem probing because the faxaddmodem tool is *so good* at picking up
the details of the modem.
Quote: Here's another head-scratcher I ran into: I have an IDE DVD/CD recorder,
which Linux sees and mounts/unmounts jst fine. I also have a SCSI
CD-ROM
that I have no idea how to get recognized. Linux sees the SCSI adapter
okay, but how do I find the CD drive attached to it?
/dev/scd0 probably.
Only if he's got the ide-scsi module in place already: and using that
module
has seriously lost its charm since the 2.6 kernel came out with better
support for directly writing to IDE based CD-RW drives, and cdrecord was
patched to support it.
NO. He says he has a SCSI CDROM. That is a cdrom connected to a real scsi
card. No ide-scsi. It is not his ide cdrom he wants to find, it is his
scsi
cdrom he wants to find.
I see your point: I misread it as looking for the IDE drive, which I've seen
so many people have adventures. Here is what he actually said..
Here's another head-scratcher I ran into: I have an IDE DVD/CD recorder,
which Linux sees and mounts/unmounts jst fine. I also have a SCSI
CD-ROM
that I have no idea how to get recognized. Linux sees the SCSI adapter
okay, but how do I find the CD drive attached to it?
In which case, cdrecord will report it easily with "cdrecord -scanbus", but
I stand by using k3b to access it, seriously. k3b is just wonderful about
detecting and accessing all available drives, in ways that fit Eric
Raymond's standards for making things "usable by Aunt Tillie".
Quote: I am in serious doubts about his need to recompile the kernel. It is
highly
probable that theproblem is on the other side of the keyboard-- ie
unfamiliarity with the system.
FAr too many of the HowTos are 10 years old and were written by very
experienced people for whom a kernel recompile was easy. They keep
advocating that you recompile your kernel. That is almost NEVER the
solution for any problem in any modern distribution of Linux. I would not
say never-- since sometimes the distribution does get something wrong, but
it is like a cyliner relap when fixing a car. That is almost never the
solution for any problem you have with the car.
Unfortunately, he's trying to get HPFS. You've assumed the display issues he
mentioned, much later, are why he's doing recompilation.
Please, go back and re-read his original request: you seem to have stepped
into the middle. It's not fair to people to do that. |
|
|
| Back to top |
|
|
|
| Nico Kadel-Garcia |
Posted: Fri Jun 09, 2006 6:43 am |
|
|
|
Guest
|
Dushan Mitrovich wrote:
Quote: Strange: yesterday there was a /dev/scd0, but today there wasn't.
In any case, it looks like the hard disk I was using (5.1 GB) is too
small to hold the OS and its apps and the Matlab I was trying to
install, so
I'm getting a larger HD and will do a new install.
I'd suggest that, if you're gonna run Matlab!
But if you throw out the various language modules you can easily recover a
Gig of mostly wasted space. Throwing out all the TeX stuff can easily get
you quite a bit of space as well. |
|
|
| Back to top |
|
|
|
| Dushan Mitrovich |
Posted: Fri Jun 09, 2006 12:57 pm |
|
|
|
Guest
|
"Nico Kadel-Garcia" <nkadel@comcast.net> wrote:
Quote: Dushan Mitrovich wrote:
Strange: yesterday there was a /dev/scd0, but today there wasn't.
In any case, it looks like the hard disk I was using (5.1 GB) is too
small to hold the OS and its apps and the Matlab I was trying to
install, so
I'm getting a larger HD and will do a new install.
I'd suggest that, if you're gonna run Matlab!
But if you throw out the various language modules you can easily recover a
Gig of mostly wasted space. Throwing out all the TeX stuff can easily get
you quite a bit of space as well.
Yes, I did notice that a huge - and useless - amount of space goes to the
language modules. And the TeX stuff I can leave out since I've got a per-
fectly good VTeX setup in OS/2. And if I leave out OpenOffice, that'll
save me nearly a Gig. I'd had plenty of room under RedHat 7.2 to run the
Intel Fortran compiler, but I guess the newer distributions are quite a
bit bigger. I've just learned that a good, reliable 80 GB HD from Samsung
or Seagate is only about $50, so there's little excuse for not getting one.
It'll be interesting to see if with a fresh start I still run into the mis-
sing files problem. If so, it would suggest the distribution CDs, even tho
there were 4 of them, still had some needed files left out. From the SL
release notes I learned that the source tree had been left out intentional-
ly for lack of room!
- Dushan |
|
|
| Back to top |
|
|
|
| Dushan Mitrovich |
Posted: Tue Jun 13, 2006 3:24 am |
|
|
|
Guest
|
"Nico Kadel-Garcia" <nkadel@comcast.net> wrote:
Quote: Right now, can you use the "make oldconfig" commands, or "cp
/boot/config-[yourkernel] .config; make oldconfig" to get the kernel source
tree straightened out?
I think so, but am not sure. The 'make oldconfig' command seems not to
have run into any difficulties, because the file that I piped the errors
to was empty. OTOH, the normally generated messages produced a file over
100 kB in size (this entailed repeating the 'make oldconfig' command - was
this a no-no?). Also, how would I recognize a straightened out kernel
source tree if I got one?
- Dushan |
|
|
| Back to top |
|
|
|
| Nico Kadel-Garcia |
Posted: Tue Jun 13, 2006 6:06 am |
|
|
|
Guest
|
Dushan Mitrovich wrote:
Quote: "Nico Kadel-Garcia" <nkadel@comcast.net> wrote:
Right now, can you use the "make oldconfig" commands, or "cp
/boot/config-[yourkernel] .config; make oldconfig" to get the kernel
source tree straightened out?
I think so, but am not sure. The 'make oldconfig' command seems not
to have run into any difficulties, because the file that I piped the
errors to was empty. OTOH, the normally generated messages produced
a file over 100 kB in size (this entailed repeating the 'make
oldconfig' command - was this a no-no?). Also, how would I recognize
a straightened out kernel source tree if I got one?
Repeating the "make oldconfig" may reset some time stamps and force you to
rebuild from scratch, I'm not sure right now, I'd have to look. It's not
eveil, the "make oldconfig" step is very fast.
If "make" commands complete with status 0, then they worked. This should be
evident at the end of your log files that you're recording.
At this point, you should also be able to do "make rpm", which would be a
very good test that everything is straightened out. |
|
|
| Back to top |
|
|
|
| Dushan Mitrovich |
Posted: Tue Jun 13, 2006 1:18 pm |
|
|
|
Guest
|
"Nico Kadel-Garcia" <nkadel@comcast.net> wrote:
Quote: Dushan Mitrovich wrote:
"Nico Kadel-Garcia" <nkadel@comcast.net> wrote:
Right now, can you use the "make oldconfig" commands, or "cp
/boot/config-[yourkernel] .config; make oldconfig" to get the kernel
source tree straightened out?
I think so, but am not sure. The 'make oldconfig' command seems not
to have run into any difficulties, because the file that I piped the
errors to was empty. OTOH, the normally generated messages produced
a file over 100 kB in size (this entailed repeating the 'make
oldconfig' command - was this a no-no?). Also, how would I recognize
a straightened out kernel source tree if I got one?
Repeating the "make oldconfig" may reset some time stamps and force you
to rebuild from scratch, I'm not sure right now, I'd have to look. It's
not eveil, the "make oldconfig" step is very fast.
If "make" commands complete with status 0, then they worked. This should
be evident at the end of your log files that you're recording.
At this point, you should also be able to do "make rpm", which would be a
very good test that everything is straightened out.
Okay, I'll try it out.
- Dushan |
|
|
| Back to top |
|
|
|
| Dushan Mitrovich |
Posted: Tue Jun 13, 2006 1:18 pm |
|
|
|
Guest
|
"Nico Kadel-Garcia" <nkadel@comcast.net> wrote:
Quote: Repeating the "make oldconfig" may reset some time stamps and force you
to rebuild from scratch, I'm not sure right now, I'd have to look. It's
not eveil, the "make oldconfig" step is very fast.
If "make" commands complete with status 0, then they worked. This should
be evident at the end of your log files that you're recording.
At this point, you should also be able to do "make rpm", which would be a
very good test that everything is straightened out.
I did a 'make rpm' and got the following error messages:
----------------------------------
RPM build errors:
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf kernel-2.6.922.0.1.EL
+ /bin/gzip -dc /usr/src/kernels/kernel-2.6.922.0.1.EL.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd kernel-2.6.922.0.1.EL
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd kernel-2.6.922.0.1.EL
+ LANG=C
+ export LANG
+ unset DISPLAY
+ make clean
+ make
/bin/sh: arch/i386/kernel/asm-offsets.s: No such file or directory
make[3]: *** No rule to make target `init/main.o', needed by `init/built-in.o'. Stop.
make[2]: *** [init] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.55531 (%build)
Bad exit status from /var/tmp/rpm-tmp.55531 (%build)
make[1]: *** [rpm] Error 1
make: *** [rpm] Error 2
----------------------------------
This the same problem I'd run into before, so I guess everything is not yet
straightened out. But I'll be getting my new hard disk tomorrow, and after
installing it and re-installing the SL 4.2 package, I'll be in position to
try all this afresh. Will let you know next week how things are progres-
sing.
- Dushan |
|
|
| Back to top |
|
|
|
|
|
All times are GMT - 5 Hours
The time now is Tue Dec 08, 2009 4:52 pm
|
|