Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
genkernel cannot find Makefiles
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
leonixyz
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2012
Posts: 76

PostPosted: Sun Jun 02, 2013 5:35 pm    Post subject: genkernel cannot find Makefiles Reply with quote

I'm installing on an i686 machine but genkernel is failing...

I first tried to run "genkernel all", but I got an error in doing mrproper...

Reading the man page of genkernel I see that --no-mrproper will skip the deletion of files of previous kernel compilations (that I don't have, it's a new installation)

So I ran "genkernel --no-mrproper all", but this is the result in /var/log/genkernel.log

Code:
* Gentoo Linux Genkernel; Version 3.4.45
* Running with options: --no-mrproper all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86/modules_load ..

* Linux Kernel 3.8.13-gentoo for x86...
* .. with config file /usr/share/genkernel/arch/x86/kernel-config
* kernel: Using config from /usr/share/genkernel/arch/x86/kernel-config
* kernel: --mrproper is disabled; not running 'make mrproper'.
*         >> Running oldconfig...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86" 
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.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/conf
scripts/kconfig/conf --oldconfig Kconfig
arch/x86/Kconfig:255: can't open file "init/Kconfig"
make[1]: *** [oldconfig] Error 1
make: *** [oldconfig] Error 2
* Gentoo Linux Genkernel; Version 3.4.45
* Running with options: --no-mrproper all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86/modules_load ..

* ERROR: Failed to compile the "oldconfig" target...
*
* -- Grepping log... --
*
*
* -- End log... --
*
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
* kernel: >> Cleaning...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86" 
scripts/Makefile.clean:17: /usr/src/linux-3.8.13-gentoo/drivers/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-3.8.13-gentoo/drivers/Makefile'.  Stop.
make: *** [_clean_drivers] Error 2
make: INTERNAL: Exiting with 3 jobserver tokens available; should be 2!
* Gentoo Linux Genkernel; Version 3.4.45
* Running with options: --no-mrproper all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86/modules_load ..

* ERROR: Failed to compile the "clean" target...
*
* -- Grepping log... --
*
*
* -- End log... --
*
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*


Last edited by leonixyz on Sun Jun 02, 2013 5:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7090
Location: Saint Amant, Acadiana

PostPosted: Sun Jun 02, 2013 5:40 pm    Post subject: Reply with quote

File a bug or roll your own kernel.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


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

PostPosted: Sun Jun 02, 2013 8:28 pm    Post subject: Reply with quote

@leonixyz, the existence of that makefile is not affected by mrproper. Looks like your kernel directory is corrupted. I'd unmerge gentoo-sources, clean up the source directory (just ask if you need more specific help), and emerge it again. Bet your problem goes away.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
leonixyz
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2012
Posts: 76

PostPosted: Mon Jun 03, 2013 8:46 am    Post subject: Reply with quote

I tried to unmerge and re-emerge gentoo-sources, but unsuccessfully: emerge gave me an error.
I thought the "bad" installation of gentoo-sources was the problem, I didn't noticed that before because i ran multiple commands. Thus, I copied the whole /usr/src/linux from another gentoo to this one and then started genkernel.
After some hours of compilation the installation stopped another time with a screen full of red error messages. I gave a look to /boot and there are the kernel and sysmap in, but no initramfs.

/var/log/genkernel.log
http://www.leonixyz.net/genkernel.log

/var/log/portage/elog/summary.log
http://www.leonixyz.net/summary.log
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