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