Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make menuconfig > Makefile: No such file or directory
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
twisted
n00b
n00b


Joined: 13 Aug 2006
Posts: 4

PostPosted: Sun Aug 13, 2006 12:14 pm    Post subject: make menuconfig > Makefile: No such file or directory Reply with quote

Hi,

Some time ago, I had a problem with my harddisk. After running e2fsck, the content of my /usr partition was moved to the lost+found directory. It took me a while to put everything back in place. Everything runs fine since then, I only have one problem. When I try to make changes to my kernel, I get the following error message:
Code:
localhost linux # pwd
/usr/src/linux

localhost linux # make clean
  CLEAN   arch/i386/boot/compressed
  CLEAN   arch/i386/boot
  CLEAN   /usr/src/linux-2.6.16-gentoo-r7
  CLEAN   arch/i386/kernel
  CLEAN   drivers/char
  CLEAN   drivers/ieee1394
  CLEAN   init
scripts/Makefile.clean:17: /usr/src/linux-2.6.16-gentoo-r7/ipc/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-2.6.16-gentoo-r7/ipc/Makefile'.  Stop.
make: *** [_clean_ipc] Error 2

localhost linux # make menuconfig
scripts/Makefile.build:15: /usr/src/linux-2.6.16-gentoo-r7/scripts/basic/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-2.6.16-gentoo-r7/scripts/basic/Makefile'.  Stop.
make: *** [scripts_basic] Error 2

I've searched for a solution but couldn't find it.. Can anybody help me please?

Thanks alot ! :D
Back to top
View user's profile Send private message
stahlsau
Guru
Guru


Joined: 09 Jan 2004
Posts: 584
Location: WildWestwoods

PostPosted: Sun Aug 13, 2006 12:22 pm    Post subject: Reply with quote

hi,
maybe a simple re-emerge of your current kernel will fix this? Seems like a file is missing.
Back to top
View user's profile Send private message
twisted
n00b
n00b


Joined: 13 Aug 2006
Posts: 4

PostPosted: Sun Aug 13, 2006 1:08 pm    Post subject: Reply with quote

stahlsau wrote:
hi,
maybe a simple re-emerge of your current kernel will fix this? Seems like a file is missing.
Maybe a stupid question, but how can I do that? I looked in the man page of the emerge command an the online gentoo docs but couldn't find it..
Back to top
View user's profile Send private message
gimpel
Advocate
Advocate


Joined: 15 Oct 2004
Posts: 2720
Location: Munich, Bavaria

PostPosted: Sun Aug 13, 2006 1:20 pm    Post subject: Reply with quote

Code:
USE="symlink" emerge -av gentoo-sources


this will just unpack the latest kernel source and create the symlink. to get the same version again use =gentoo-sources-2.6.16-r7, but i guess that will fail as it's not in portage anymore, latest 2.6.16 is -r13
_________________
http://proaudio.tuxfamily.org/wiki - pro-audio software overlay
Back to top
View user's profile Send private message
twisted
n00b
n00b


Joined: 13 Aug 2006
Posts: 4

PostPosted: Sun Aug 13, 2006 1:28 pm    Post subject: Reply with quote

gimpel wrote:
Code:
USE="symlink" emerge -av gentoo-sources


this will just unpack the latest kernel source and create the symlink. to get the same version again use =gentoo-sources-2.6.16-r7, but i guess that will fail as it's not in portage anymore, latest 2.6.16 is -r13
Okay thanks alot ! :D
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