Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] "make menuconfig" fails on new installation.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
lostkhaos
n00b
n00b


Joined: 29 Jun 2013
Posts: 4

PostPosted: Sat Jun 29, 2013 8:34 pm    Post subject: [Solved] "make menuconfig" fails on new installati Reply with quote

Hi all. Trying to get Gentoo installed in a VM before I make the commitment to install it on my work laptop. I extracted my stage3 (stage3-i686-20130528.tar.bz2), mounted my proc, sys, and dev. I set my profile, I ran my emerge sync and portage update. Fully updated, I emerge'd gentoo-sources, and then eselect'd my kernel. Upon running my "make menuconfig", I get an error about Kconfig.

Code:
(chroot) livecd src # ls -l
total 4
lrwxrwxrwx  1 root root   19 Jun 29 16:30 linux -> linux-3.8.13-gentoo
drwxr-xr-x 15 root root 4096 Jun 29 15:32 linux-3.8.13-gentoo
(chroot) livecd src # cd linux
(chroot) livecd linux # make menuconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
  HOSTCC  scripts/kconfig/mconf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf Kconfig
arch/x86/Kconfig:255: can't open file "init/Kconfig"
make[1]: *** [menuconfig] Error 1
make: *** [menuconfig] Error 2


I've tried this a number of times. I even destroyed and completely re-created the whole VM and that didn't help either. I'm thinking I'm missing some step here, can anyone point me in the right direction?

Edit: Fixed by manually copying files from the staging directory (/var/tmp/portage/sys-kernel/gentoo-sources-3.8.13/image/) into the root and could then successfully build.


Last edited by lostkhaos on Sat Jun 29, 2013 9:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7394
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Jun 29, 2013 8:50 pm    Post subject: Reply with quote

Hmm. This file appears to be shipped with the kernel sources:
Code:
# equery files gentoo-sources | grep init/Kconfig
/usr/src/linux-3.8.13-gentoo/init/Kconfig
Would you post the output of
Code:
# ls -l /usr/src/linux/init
please?

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
lostkhaos
n00b
n00b


Joined: 29 Jun 2013
Posts: 4

PostPosted: Sat Jun 29, 2013 8:53 pm    Post subject: Reply with quote

The folder doesn't even exist :(

Code:
(chroot) livecd linux # ls -l /usr/src/linux/init
ls: cannot access /usr/src/linux/init: No such file or directory

(chroot) livecd linux # ls -l /usr/src/linux/   
total 464
-rw-r--r--  1 root root  95054 Feb 18 18:58 CREDITS
-rw-r--r--  1 root root   2536 Feb 18 18:58 Kbuild
-rw-r--r--  1 root root    252 Feb 18 18:58 Kconfig
-rw-r--r--  1 root root 239609 Feb 18 18:58 MAINTAINERS
-rw-r--r--  1 root root  48033 Jun 29 16:37 Makefile
-rw-r--r--  1 root root  18736 Feb 18 18:58 README
drwxr-xr-x 30 root root   4096 Jun 29 16:39 arch
drwxr-xr-x  4 root root   4096 Jun 29 16:39 crypto
drwxr-xr-x 33 root root   4096 Jun 29 16:40 drivers
drwxr-xr-x 36 root root   4096 Jun 29 16:39 firmware
drwxr-xr-x 72 root root   4096 Jun 29 16:39 fs
drwxr-xr-x  4 root root   4096 Jun 29 16:44 include
drwxr-xr-x  2 root root   4096 Jun 29 16:39 ipc
drwxr-xr-x 10 root root   4096 Jun 29 16:39 kernel
drwxr-xr-x 55 root root   4096 Jun 29 16:40 net
drwxr-xr-x 13 root root   4096 Jun 29 16:39 samples
drwxr-xr-x 13 root root   4096 Jun 29 16:39 scripts
drwxr-xr-x  9 root root   4096 Jun 29 16:39 security
drwxr-xr-x 22 root root   4096 Jun 29 16:39 sound
drwxr-xr-x 15 root root   4096 Jun 29 16:40 tools
Back to top
View user's profile Send private message
lostkhaos
n00b
n00b


Joined: 29 Jun 2013
Posts: 4

PostPosted: Sat Jun 29, 2013 9:31 pm    Post subject: Reply with quote

Hm, equery seems to argue with emerge..

Code:
(chroot) livecd src # equery files gentoo-sources | grep init/Kconfig
!!! No installed packages matching 'gentoo-sources'
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6250
Location: Goose Creek SC

PostPosted: Sat Jun 29, 2013 9:47 pm    Post subject: Reply with quote

boot cd, enter the chroot, nominally:
Code:
mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
source /etc/profile
export PS1="(chroot) $PS1"
run
Code:
ls -l /usr/src/

_________________
Defund the FCC.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2276
Location: Canada

PostPosted: Sat Jun 29, 2013 9:51 pm    Post subject: Reply with quote

Did you chrooted into your new environment ?
Back to top
View user's profile Send private message
lostkhaos
n00b
n00b


Joined: 29 Jun 2013
Posts: 4

PostPosted: Sat Jun 29, 2013 9:51 pm    Post subject: Reply with quote

I covered that in my first post ;)

Code:
(chroot) livecd linux # ls -l /usr/src
total 4
lrwxrwxrwx  1 root root   19 Jun 29 17:43 linux -> linux-3.8.13-gentoo
drwxr-xr-x 24 root root 4096 Jun 29 17:48 linux-3.8.13-gentoo


On a whim I manually copied everything from /var/tmp/portage/sys-kernel/gentoo-sources-3.8.13/image/ into the root, and I can now run that. Seems strange that emerge couldn't finish doing that for me :?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 7394
Location: Somewhere over Atlanta, Georgia

PostPosted: Sat Jun 29, 2013 11:37 pm    Post subject: Reply with quote

The fact that that directory even exists means you've missed an error message that was thrown when you emerged gentoo-sources. You might want to try that again, look for the error messages and, if you like, post them here.

- John
_________________
This space intentionally left blank.
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 2276
Location: Canada

PostPosted: Sun Jun 30, 2013 5:22 pm    Post subject: Reply with quote

lostkhaos wrote:
I covered that in my first post ;)

Code:
(chroot) livecd linux # ls -l /usr/src
total 4
lrwxrwxrwx  1 root root   19 Jun 29 17:43 linux -> linux-3.8.13-gentoo
drwxr-xr-x 24 root root 4096 Jun 29 17:48 linux-3.8.13-gentoo




Although it perhaps can be deduced that you have chrooted into the right directory, "covered" is a strong word here :)
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1339

PostPosted: Sun Jun 30, 2013 8:50 pm    Post subject: Reply with quote

Since this is a VM, this is very likely due to the lack of memory; because of the way Portage queues files, it can sometimes consume a huge amount of memory when merging, especially with gentoo-sources. Lots of small files, lots of overhead in the merge queue; nobody looked into that yet...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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