Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make && make modules_install crash [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
WeirDave
Apprentice
Apprentice


Joined: 27 Nov 2003
Posts: 194
Location: Tampabay Florida

PostPosted: Mon Nov 01, 2004 5:45 pm    Post subject: make && make modules_install crash [Solved] Reply with quote

While making crashed out. Last lines are:

mkdir -p /lib/modules/2.4.26-gentoo-r9/kernel/drivers/net
cp 3c501.o 3c503.o 3c505.o 3c509.o 3c515.o 8389.o dummy.o /lib/modules/2.4.26-gentoo-r9/kernel/drivers/net
cp: cannot stat '3c501.o' : No such file or directory
cp: cannot stat '3c503.o' : No such file or directory
cp: cannot stat '3c505.o' : No such file or directory
cp: cannot stat '3c509.o' : No such file or directory
cp: cannot stat '3c515.o' : No such file or directory
cp: cannot stat '8390.o' : No such file or directory
cp: cannot stat 'dummy.o' : No such file or directory
make [2] *** [_modinst__] Error 1
make [2] Leaving directory '/usr/src/linux-2.4.26-gentoo-r9/drivers/net'
make [1] *** [_modinst__] Error 2
make [1] Leaving directory '/usr/src/linux-2.4.26-gentoo-r9/drivers'
make: *** [_modinst__] Error 2
livecd linux #

So First question that comes to mind is. I thought I was compiling the 2.6 kernel I must have chosen something wrong. The second thing is why did it crash?
_________________
\\eir]>ave
http://www.weirdave.com &
http://aatrade.weirdave.com
Home of The Library and The eXpanse


Last edited by WeirDave on Wed Nov 17, 2004 1:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Mon Nov 01, 2004 6:10 pm    Post subject: Reply with quote

Did you " make && make clean bzImage/install modules modules_install " . What trying to spit out is did you make modules first?
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Nov 01, 2004 6:48 pm    Post subject: Reply with quote

To explain a little further:

With a 2.4 kernel you need to do:
make bzImage
make modules
make modules_install

And with a 2.6 kernel you do:
make
make modules_install

So, it looks like you used the 2.6 procedure on your 2.4 kernel and that's why you get the error. The modules weren't build yet, so make modules_install can't find them.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
WeirDave
Apprentice
Apprentice


Joined: 27 Nov 2003
Posts: 194
Location: Tampabay Florida

PostPosted: Mon Nov 01, 2004 7:13 pm    Post subject: Reply with quote

nixnut wrote:
To explain a little further:

With a 2.4 kernel you need to do:
make bzImage
make modules
make modules_install

And with a 2.6 kernel you do:
make
make modules_install

So, it looks like you used the 2.6 procedure on your 2.4 kernel and that's why you get the error. The modules weren't build yet, so make modules_install can't find them.


Makes perfect sense. Can I go back and re emerge the correct kernel or am I hosed and have to start from the begining (ie bootstrap etc.)?
_________________
\\eir]>ave
http://www.weirdave.com &
http://aatrade.weirdave.com
Home of The Library and The eXpanse
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Nov 01, 2004 7:16 pm    Post subject: Reply with quote

You don't even need to re-emerge the kernel.
A simple make clean && make bzImage && make modules && make modules_install should do the trick.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
WeirDave
Apprentice
Apprentice


Joined: 27 Nov 2003
Posts: 194
Location: Tampabay Florida

PostPosted: Mon Nov 01, 2004 7:32 pm    Post subject: Reply with quote

nixnut wrote:
You don't even need to re-emerge the kernel.
A simple make clean && make bzImage && make modules && make modules_install should do the trick.


I just discovered that I emerge the "gentoo-sources" instead of the "gentoo-dev-sources" for the 2.6 kernel though don't I need to emerge that?
_________________
\\eir]>ave
http://www.weirdave.com &
http://aatrade.weirdave.com
Home of The Library and The eXpanse
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Nov 01, 2004 7:37 pm    Post subject: Reply with quote

WeirDave wrote:
I just discovered that I emerge the "gentoo-sources" instead of the "gentoo-dev-sources" for the 2.6 kernel though don't I need to emerge that?


If you want a 2.6 kernel you'll have to emerge it.
If you're willing to stick with the 2.4 for now, you won't have to emerge anything right now.

If you do want the 2.6 kernel (it is an improvement over the 2.4 after all), emerge it and after emerging change the link /usr/src/linux so that it points to the new kernel source.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
WeirDave
Apprentice
Apprentice


Joined: 27 Nov 2003
Posts: 194
Location: Tampabay Florida

PostPosted: Mon Nov 01, 2004 7:38 pm    Post subject: Reply with quote

nixnut wrote:
WeirDave wrote:
I just discovered that I emerge the "gentoo-sources" instead of the "gentoo-dev-sources" for the 2.6 kernel though don't I need to emerge that?


If you want a 2.6 kernel you'll have to emerge it.
If you're willing to stick with the 2.4 for now, you won't have to emerge anything right now.

If you do want the 2.6 kernel (it is an improvement over the 2.4 after all), emerge it and after emerging change the link /usr/src/linux so that it points to the new kernel source.


Cool. That is exactly what I started doing. :) How do I get rid of the other kernel?
_________________
\\eir]>ave
http://www.weirdave.com &
http://aatrade.weirdave.com
Home of The Library and The eXpanse
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Nov 01, 2004 7:41 pm    Post subject: Reply with quote

WeirDave wrote:
If you do want the 2.6 kernel (it is an improvement over the 2.4 after all), emerge it and after emerging change the link /usr/src/linux so that it points to the new kernel source.


Cool. That is exactly what I started doing. :) How do I get rid of the other kernel?[/quote]

rm -rf /usr/src/linux-2.4.26 (or whatever the 2.4 source dir is called)
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
WeirDave
Apprentice
Apprentice


Joined: 27 Nov 2003
Posts: 194
Location: Tampabay Florida

PostPosted: Mon Nov 01, 2004 7:44 pm    Post subject: Reply with quote

nixnut wrote:
WeirDave wrote:
If you do want the 2.6 kernel (it is an improvement over the 2.4 after all), emerge it and after emerging change the link /usr/src/linux so that it points to the new kernel source.


Cool. That is exactly what I started doing. :) How do I get rid of the other kernel?


rm -rf /usr/src/linux-2.4.26 (or whatever the 2.4 source dir is called)[/quote]

Fantastic! Just so I can learn what do the switches do?
_________________
\\eir]>ave
http://www.weirdave.com &
http://aatrade.weirdave.com
Home of The Library and The eXpanse
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Nov 01, 2004 7:46 pm    Post subject: Reply with quote

WeirDave wrote:
rm -rf /usr/src/linux-2.4.26 (or whatever the 2.4 source dir is called)


Fantastic! Just so I can learn what do the switches do?[/quote]
Err.. that's what we have man pages for :wink:
in this case: man rm
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
WeirDave
Apprentice
Apprentice


Joined: 27 Nov 2003
Posts: 194
Location: Tampabay Florida

PostPosted: Mon Nov 01, 2004 9:32 pm    Post subject: Reply with quote

nixnut wrote:
WeirDave wrote:
rm -rf /usr/src/linux-2.4.26 (or whatever the 2.4 source dir is called)


Fantastic! Just so I can learn what do the switches do?

Err.. that's what we have man pages for :wink:
in this case: man rm[/quote]

I will be certain to check that out. One last question how do I remove that from the "world favorites" file?
_________________
\\eir]>ave
http://www.weirdave.com &
http://aatrade.weirdave.com
Home of The Library and The eXpanse
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Tue Nov 02, 2004 6:33 pm    Post subject: Reply with quote

You can emerge -C kernel but it is a pain because you have to get the syntex just rigth or it will want to unmerge all your kernels. As nixnut, the heroic mountain climber :lol: , said rm -r will do it just be very carefull of where you are and who you are when you do it as it will happily wipe your drive 8O . If you get frustrated with trying to figube out portages, its one big pain in the dinkass, then cd into /usr/src and then remove kernel-version
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue Nov 02, 2004 7:00 pm    Post subject: Reply with quote

Moved from Installing Gentoo.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum