Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cannot open file `/usr/src/linux-2.6.9-gentoo-r1/include/lin
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
freelunch
n00b
n00b


Joined: 17 Nov 2004
Posts: 25

PostPosted: Fri Nov 26, 2004 8:30 pm    Post subject: cannot open file `/usr/src/linux-2.6.9-gentoo-r1/include/lin Reply with quote

I just emerged gentoo-dev-sources and tried to do a 'make mrproper':

% make mrproper
awk: cmd. line:2: fatal: cannot open file `/usr/src/linux-2.6.9-gentoo-r1/include/linux/version.h' for reading (No such file or directory

2.6.9 from kernel.org is fine. I couldn't find anything about this in google or gentoo forums.


Thanks!
Back to top
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Fri Nov 26, 2004 10:03 pm    Post subject: Reply with quote

do you have enough disk space? `df /usr/src`? you should also try to re-sync & emerge again.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54793
Location: 56N 3W

PostPosted: Fri Nov 26, 2004 10:09 pm    Post subject: Reply with quote

freelunch,

That file is created after your configure the kernel.
Have you done that yet ?
Make mrproper is a bit drastic, it wipes out all the config stuff as well as doing a make clean.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
freelunch
n00b
n00b


Joined: 17 Nov 2004
Posts: 25

PostPosted: Fri Nov 26, 2004 10:59 pm    Post subject: Reply with quote

NeddySeagoon wrote:

That file is created after your configure the kernel.
Have you done that yet ?
Make mrproper is a bit drastic, it wipes out all the config stuff as well as doing a make clean.

mrproper is the first step in building a new kernel source tree. It creates the approriate links, etc, for the hardware you are running on.

Only then should you import your previous kernel configs and config the kernel.

Some docs suggest you can sometimes skip 'mrproper'. Years ago I lost hours of time because I didn't follow that step. I know others who have had similar problems when they omitted it. So I don't skip it.

It works fine under 2.6.9. I tried re-emerging but it still failed.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54793
Location: 56N 3W

PostPosted: Fri Nov 26, 2004 11:29 pm    Post subject: Reply with quote

freelunch,

The kernel make changed in 2.6
The steps are configure (choose one from make config, make menuconfig, make gconfig or make xconfig)
make (now make bzImage and modules)
make modules_install
Copy bziminage.

In 2.4 it was make dep that fixed the links. Thtas no longer required, nor is the seperate make modules step if you are building the bzImage too. make modules is still there for when you want to add a module.
Have a read of
Code:
 make help
Cleaning targets:
  clean           - remove most generated files but keep the config
  mrproper        - remove all generated files + config + various backup files
there is more
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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