View previous topic :: View next topic |
Author |
Message |
lostkhaos n00b
Joined: 29 Jun 2013 Posts: 4
|
Posted: Sat Jun 29, 2013 8:34 pm Post subject: [Solved] "make menuconfig" fails on new installati |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Sat Jun 29, 2013 8:50 pm Post subject: |
|
|
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 _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
lostkhaos n00b
Joined: 29 Jun 2013 Posts: 4
|
Posted: Sat Jun 29, 2013 8:53 pm Post subject: |
|
|
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 |
|
|
lostkhaos n00b
Joined: 29 Jun 2013 Posts: 4
|
Posted: Sat Jun 29, 2013 9:31 pm Post subject: |
|
|
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 |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sat Jun 29, 2013 9:47 pm Post subject: |
|
|
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 _________________ Defund the FCC. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Sat Jun 29, 2013 9:51 pm Post subject: |
|
|
Did you chrooted into your new environment ? |
|
Back to top |
|
|
lostkhaos n00b
Joined: 29 Jun 2013 Posts: 4
|
Posted: Sat Jun 29, 2013 9:51 pm Post subject: |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10589 Location: Somewhere over Atlanta, Georgia
|
Posted: Sat Jun 29, 2013 11:37 pm Post subject: |
|
|
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 _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Sun Jun 30, 2013 5:22 pm Post subject: |
|
|
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 |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Sun Jun 30, 2013 8:50 pm Post subject: |
|
|
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 |
|
|
|