View previous topic :: View next topic |
Author |
Message |
freelunch n00b
Joined: 17 Nov 2004 Posts: 25
|
Posted: Fri Nov 26, 2004 8:30 pm Post subject: cannot open file `/usr/src/linux-2.6.9-gentoo-r1/include/lin |
|
|
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 |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Fri Nov 26, 2004 10:03 pm Post subject: |
|
|
do you have enough disk space? `df /usr/src`? you should also try to re-sync & emerge again. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54793 Location: 56N 3W
|
Posted: Fri Nov 26, 2004 10:09 pm Post subject: |
|
|
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 |
|
|
freelunch n00b
Joined: 17 Nov 2004 Posts: 25
|
Posted: Fri Nov 26, 2004 10:59 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54793 Location: 56N 3W
|
Posted: Fri Nov 26, 2004 11:29 pm Post subject: |
|
|
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 |
|
|
|