1 |
On Sat, 2009-06-20 at 19:01 -0400, John P. Burkett wrote: |
2 |
> Today on an amd64 machine I tried "emerge -eav system". The process |
3 |
> ended with the following message: |
4 |
> |
5 |
> >>> Emerging (267 of 281) x11-drivers/ati-drivers-8.552-r2 |
6 |
> * ati-driver-installer-8-11-x86.x86_64.run RMD160 SHA1 SHA256 size ;-) |
7 |
> ... |
8 |
> [ ok ] |
9 |
> * checking ebuild checksums ;-) ... |
10 |
> |
11 |
> [ ok ] |
12 |
> * checking auxfile checksums ;-) ... |
13 |
> |
14 |
> [ ok ] |
15 |
> * checking miscfile checksums ;-) ... |
16 |
> |
17 |
> [ ok ] |
18 |
> * Determining the location of the kernel source code |
19 |
> * Found kernel source directory: |
20 |
> * /usr/src/linux |
21 |
> * Could not find a Makefile in the kernel source directory. |
22 |
> * Please ensure that /usr/src/linux points to a complete set of Linux |
23 |
> sources |
24 |
> * |
25 |
> * ERROR: x11-drivers/ati-drivers-8.552-r2 failed. |
26 |
> * Call stack: |
27 |
> * ebuild.sh, line 49: Called pkg_setup |
28 |
> * ati-drivers-8.552-r2.ebuild, line 70: Called linux-mod_pkg_setup |
29 |
> * linux-mod.eclass, line 578: Called linux-info_pkg_setup |
30 |
> * linux-info.eclass, line 696: Called die |
31 |
> * The specific snippet of code: |
32 |
> * get_version || die "Unable to calculate Linux Kernel version" |
33 |
> * The die message: |
34 |
> * Unable to calculate Linux Kernel version |
35 |
> |
36 |
> Doing "ls -lad /usr/src/linux" elicits |
37 |
> lrwxrwxrwx 1 root root 22 Sep 3 2007 /usr/src/linux -> |
38 |
> linux-2.6.22-gentoo-r2 |
39 |
> |
40 |
> Doing "uname -r" elicits |
41 |
> 2.6.22-gentoo-r2-osmp |
42 |
<snip> |
43 |
I'm guessing you did an "emerge --depclean" sometime after compiling the |
44 |
2.6.22-r2 kernel that erased your make files, This is something depclean |
45 |
loves to do while leaving 99% of the older kernel source files intact |
46 |
when a new kernel source has been emerged. I think it leaves |
47 |
your .config file. Been a few weeks since I burned myself last with this |
48 |
one. If you were following directions back in 2007 you should have a |
49 |
stored config in /boot |
50 |
|
51 |
Try "emerge =sys-kernel/gentoo-sources-2.6.22-r2 to re-emerge the old |
52 |
package to regain the make files. What the osmp is about beats me. |
53 |
|
54 |
or |
55 |
|
56 |
Emerge a new gentoo-sources, eselect it, configure, compile, install a |
57 |
new kernel. |