Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] missing makefile. (genkernel all)
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
mrfabiolo
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2011
Posts: 90

PostPosted: Wed Jan 15, 2014 8:41 am    Post subject: [solved] missing makefile. (genkernel all) Reply with quote

I've never had any problems recompiling the kernel
But now, I don't know what could I have touch...

Code:
tux mrlogick # genkernel --menuconfig all
* Gentoo Linux Genkernel; Version 3.4.45.1
* Running with options: --menuconfig all

* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* ERROR: Kernel Makefile (/usr/src/linux/Makefile) missing.  Maybe re-install the kernel sources.
*
* -- Grepping log... --
*
* Running with options: --menuconfig all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
*
* ERROR: Kernel Makefile (/usr/src/linux/Makefile) missing.  Maybe re-install the kernel sources.
*
* -- 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!
*
tux mrlogick #


Why do not I have the makefile?

Code:
mrlogick@tux ~ $ ls /usr/src/
linux  linux-3.10.17-gentoo  linux-3.10.25-gentoo
mrlogick@tux ~ $ ls /usr/src/linux
include  scripts
mrlogick@tux ~ $ ls /usr/src/linux-3.10.25-gentoo/
arch     distro         include  kernel       net             security
block    Documentation  init     lib          README          sound
COPYING  drivers        ipc      MAINTAINERS  REPORTING-BUGS  tools
CREDITS  firmware       Kbuild   Makefile     samples         usr
crypto   fs             Kconfig  mm           scripts         virt


Last edited by mrfabiolo on Thu Jan 16, 2014 7:46 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: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jan 15, 2014 11:34 am    Post subject: Reply with quote

Probably because your running kernel source was unmerged as part of an update. Check to see what kernel source you have installed:
Code:
equery list -i gentoo-sources
and check to see what kernel you're running:
Code:
uname -r
In case you don't have it installed, equery is part of app-portage/gentoolkit.

-John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.


Last edited by John R. Graham on Wed Jan 15, 2014 5:07 pm; edited 2 times in total
Back to top
View user's profile Send private message
mrfabiolo
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2011
Posts: 90

PostPosted: Wed Jan 15, 2014 1:52 pm    Post subject: Reply with quote

Code:
mrlogick@tux ~ $ equery list -i gentoo-sources
 * Searching for gentoo-sources ...
[IP-] [  ] sys-kernel/gentoo-sources-3.10.25:3.10.25

Code:
mrlogick@tux ~ $ uname -r
3.10.17-gentoo

Code:
mrlogick@tux ~ $ ls /usr/src/
linux  linux-3.10.17-gentoo  linux-3.10.25-gentoo
mrlogick@tux ~ $ ls /usr/src/linux-3.10.17-gentoo/
include  scripts


What should I have to do now?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


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

PostPosted: Wed Jan 15, 2014 3:30 pm    Post subject: Reply with quote

If you want to stay with gentoo-sources-3.10.17 for now, then emerge that explicit version:
Code:
emerge =gentoo-sources-3.10.17
This will also protect it from automatic deletion in the future since that exact version will be added to the world set.

However, if you want to upgrade to 3.10.25, then just move the linux symlink in /usr/src to point to the new kernel source directory. Need help with that?

- 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
mrfabiolo
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2011
Posts: 90

PostPosted: Thu Jan 16, 2014 7:45 pm    Post subject: Reply with quote

Thank you very much.. i've understood.
Back to top
View user's profile Send private message
michi-monster
Apprentice
Apprentice


Joined: 16 Aug 2016
Posts: 175
Location: Germany

PostPosted: Tue Feb 07, 2017 10:41 am    Post subject: Reply with quote

I have the same problem.
Code:
localhost linux # genkernel --menuconfig all
* Gentoo Linux Genkernel; Version 65
* Running with options: --menuconfig all

* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* ERROR: Kernel Makefile (/usr/src/linux/Makefile) missing.  Maybe re-install the kernel sources.
*
* -- Grepping log... --
*
* Running with options: --menuconfig all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
*
* ERROR: Kernel Makefile (/usr/src/linux/Makefile) missing.  Maybe re-install the kernel sources.
*
* -- 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!


Code:
localhost linux # equery list -i gentoo-sources
 * Searching for gentoo-sources ...
[IP-] [  ] sys-kernel/gentoo-sources-4.9.6-r1:4.9.6-r1


Code:
localhost linux # eselect kernel list
Available kernel symlink targets:
  [1]   linux-4.9.6-gentoo-r1

localhost linux # uname -r
4.4.39-gentoo
[/code]
Gentoo-sources i have new installed. But itś not ok. Please help.
_________________
www.edv-bildung.de
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 4520
Location: Germany

PostPosted: Fri Feb 10, 2017 12:23 am    Post subject: Reply with quote

michi-monster wrote:
[...]

Code:
localhost linux # eselect kernel list
Available kernel symlink targets:
  [1]   linux-4.9.6-gentoo-r1

localhost linux # uname -r
4.4.39-gentoo
[/code]
Gentoo-sources i have new installed. But itś not ok. Please help.

The linux-4.9.6-gentoo-r1 Sources is not set,
set it with
Code:
eselect kernel set 1
should work.
Back to top
View user's profile Send private message
michi-monster
Apprentice
Apprentice


Joined: 16 Aug 2016
Posts: 175
Location: Germany

PostPosted: Fri Feb 10, 2017 1:43 pm    Post subject: Reply with quote

ohh - no a so simple error
Now its all right
_________________
www.edv-bildung.de
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