Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot make menuconfig
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
coviex
n00b
n00b


Joined: 27 Sep 2010
Posts: 33

PostPosted: Tue Sep 28, 2010 7:51 pm    Post subject: Cannot make menuconfig Reply with quote

Code:
# eselect kernel list
Available kernel symlink targets:
  [1]   linux-2.6.31-gentoo-r6 *
  [2]   linux-2.6.35-gentoo-r8

# make menuconfig
make: *** No rule to make target `menuconfig'.  Stop.


PS World was up to date last week.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Tue Sep 28, 2010 8:29 pm    Post subject: Reply with quote

Well...

1. Are you in /usr/src/linux?

2. Did you run emerge --depclean? This will remove old makefiles in old src dirs. If this is the case, do this:

Code:

cd /usr/src
rm linux
ln -s /usr/src/linux-(your_current_version) /usr/src/linux


Then cd to /usr/src/linux and try make menuconfig again.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
rh1
Guru
Guru


Joined: 10 Apr 2010
Posts: 501

PostPosted: Tue Sep 28, 2010 8:41 pm    Post subject: Reply with quote

In order to prevent this from re-occurring, emerge a specific kernel then --depclean won't erase the sources for that version. See this thread: https://forums.gentoo.org/viewtopic-t-845059-highlight-.html
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Tue Sep 28, 2010 8:42 pm    Post subject: Reply with quote

Well... well...
audiodef wrote:
ln -s /usr/src/linux-(your_current_version) /usr/src/linux

audiodef, this is likely to lead to the menuconfig of his old version.

It seems that coviex has got sources for 2.6.31 and 2.6.35 and his symlink appears on 2.6.31
It is likely that he wishes to build 2.6.35. Not to rebuild 2.6.31 =>

1/ eselect kernel set 2
2/ cd /usr/src/linux
3/ make menuconfig.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Tue Sep 28, 2010 9:03 pm    Post subject: Reply with quote

aCOSwt wrote:

audiodef, this is likely to lead to the menuconfig of his old version.


No, it's not, actually. However, I like your method better. 8)
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Tue Sep 28, 2010 9:31 pm    Post subject: Reply with quote

audiodef wrote:
No, it's not, actually.

I apologize audiodef, I had wrongly understood "your_current_version" = coviex' 2.6.31
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Tue Sep 28, 2010 9:46 pm    Post subject: Reply with quote

I meant the current latest version that an update would have pulled in. 8)
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
coviex
n00b
n00b


Joined: 27 Sep 2010
Posts: 33

PostPosted: Wed Sep 29, 2010 7:52 am    Post subject: Reply with quote

aCOSwt wrote:

It seems that coviex has got sources for 2.6.31 and 2.6.35 and his symlink appears on 2.6.31

right

aCOSwt wrote:

It is likely that he wishes to build 2.6.35. Not to rebuild 2.6.31 =>

Yes and No.
When I got PC which I work on now I decided to update OS. One of first packages was gcc. Then I did depclean. Manual suggests to rebuild all packages with new gcc. I could do only system.
World failed on sys-fs/loop-aes:

Code:
 * Unable to calculate Linux Kernel version for build, attempting to use running version
 * These sources have not yet been prepared.
 * We cannot build against an unprepared tree.
 * To resolve this, please type the following:
 *
 * # cd /usr/src/linux
 * # make oldconfig
 * # make modules_prepare


But
Code:
# make oldconfig
make: *** No rule to make target `oldconfig'.  Stop.


Now I'd try to update kernel but I cannot make menuconfig and see what was enabled/disabled in my working kernel so that I enable/disable the same in the latest available.
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Wed Sep 29, 2010 8:08 am    Post subject: Reply with quote

coviex wrote:
...Then I did depclean....World failed on sys-fs/loop-aes...

If you depcleand after having got the sources for 2.6.35, then it is likely that you removed the sources for your running 2.6.31 => Many packages and almost all drivers will not be able to build, producing the error message you mention.

I re-suggest you :

1/ eselect kernel set 2
2/ cd /usr/src/linux
3/ make menuconfig.

And build a new kernel. (Warning... many options have changed between 31 and 35 so you are likely to need to review them all)

Then, you should be able to rebuild your world.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6656
Location: The soundosphere

PostPosted: Wed Sep 29, 2010 6:27 pm    Post subject: Reply with quote

While you're at it, check out Pappy's Kernel Seeds. It'll help you build a slimmer, more efficient kernel than make defconfig.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
coviex
n00b
n00b


Joined: 27 Sep 2010
Posts: 33

PostPosted: Thu Sep 30, 2010 7:30 am    Post subject: Reply with quote

aCOSwt wrote:

I re-suggest you :

1/ eselect kernel set 2
2/ cd /usr/src/linux
3/ make menuconfig.

And build a new kernel. (Warning... many options have changed between 31 and 35 so you are likely to need to review them all)

How do I know what options I need? I doubt they all are 100% self-explanatory and PC is pretty old.
Is there another way but menuconfig to see current options?
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Thu Sep 30, 2010 8:02 am    Post subject: Reply with quote

coviex wrote:
How do I know what options I need?

:lol: Is'nt this the greatest part of the game ?
Well...

Method 1 : Starting from your (I presume) working 2.6.31 .config
Did you save it somewhere or did you loose it when removing 2.6.31 sources ?
If you cannot find it, do you get a file named /proc/config.gz ?

Method 2 : Restarting from scratch default => $7.C here : http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=7

Method 3 : Restarting from scratch automatic => $7.D within the preceeding document.
Back to top
View user's profile Send private message
coviex
n00b
n00b


Joined: 27 Sep 2010
Posts: 33

PostPosted: Fri Oct 01, 2010 3:23 pm    Post subject: Reply with quote

aCOSwt wrote:

Method 1 : Starting from your (I presume) working 2.6.31 .config
Did you save it somewhere or did you loose it when removing 2.6.31 sources ?

I have .config and .config.old, but I didn't remove 2.6.31 nor saved .config on purpose :)

aCOSwt wrote:

If you cannot find it, do you get a file named /proc/config.gz ?

No such file.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Fri Oct 01, 2010 3:50 pm    Post subject: Reply with quote

Krinn's howto make a kernel for the poors

1/ cd /usr/src/linux
2/ make allmodconfig
3/ make menuconfig
(now set to Yes every drivers names you will see after running the command in #4)
4/ lspci -k | grep -A3 -E "IDE|SATA" | grep Kernel
5/ Set your kernel arch and cputype
6/ make && make modules modules_install && make install
7/ Pray (optional but it will never hurt, if you're not totally poor, you can use candles)
Back to top
View user's profile Send private message
coviex
n00b
n00b


Joined: 27 Sep 2010
Posts: 33

PostPosted: Fri Oct 01, 2010 4:08 pm    Post subject: Reply with quote

krinn wrote:

3/ make menuconfig
(now set to Yes every drivers names you will see after running the command in #4)

So #4 should be #3?

Code:

# make allmodconfig
make: *** No rule to make target `allmodconfig'.  Stop.
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Fri Oct 01, 2010 4:45 pm    Post subject: Reply with quote

krinn wrote:
Krinn's howto make a kernel for the poors

krinn's help is always very... hmm... helpful !
His/her charming habit to find always renewed qualifiers for those (s)he helps could however appear questionnable... :wink:

Well coviex, are you the author of your preceeding .config ?

If no : Opt for my method 3 above !

If yes and you are not in a hurry to conclude and want to understand things better :

1/ eselect kernel set 2
2/ Copy your old .config in /usr/src/linux
3/ make oldconfig
4/ make a diff between your new .config and your old one,
5/ make menuconfig and review all the options that differ from your two configs

If the preceeding way is not acceptable for you then : Follow krinn's howto for the poors ! (S)he is right ! :wink:
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Fri Oct 01, 2010 6:07 pm    Post subject: Reply with quote

You didn't read the link rh1 gave you else you would have already know 1/ why this happen to you 2/ how to recover your kernel source
and the make allmodconfig would have work...

And for posterity: krinn is a he :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