Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Missing Makefile in kernel source
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
Langest
n00b
n00b


Joined: 19 Jan 2018
Posts: 27

PostPosted: Fri Jan 19, 2018 9:55 pm    Post subject: [Solved] Missing Makefile in kernel source Reply with quote

Hello!

I have successfully installed gentoo for the first time. Coming from Arch it felt pretty easy when you had the terrific handbook as assistance.
However, I have run into trouble now that I have been using gentoo for a while. For some reason the Makefile for the kernel has gone missing. I have been able to build it previously so I know it has existed at some point in time. I have tried to search for similar or the same problem and it seems like
Code:
$emerge --depclean
is a potential culprit. But I have not been able to fix it. I have tried to reinstall the sources but with no luck.
Any suggestions to what I can try? Or do you need more information?

This is
Code:
$ pwd
/usr/src/linux
$ ls -a
.      certs     fs       kernel  scripts        usr         .config.old          modules.builtin  .tmp_kallsyms1.o  .tmp_System.map  vmlinux
..     crypto    include  lib     security       virt        kernelConfig         modules.order    .tmp_kallsyms1.S  .tmp_vmlinux1    .vmlinux.cmd
arch   drivers   init     mm      sound          built-in.o  kernelConfig2        Module.symvers   .tmp_kallsyms2.o  .tmp_vmlinux2    vmlinux.o
block  firmware  ipc      net     .tmp_versions  .config     .missing-syscalls.d  System.map       .tmp_kallsyms2.S  .version


Thank you!
Langest


Last edited by Langest on Sat Jan 20, 2018 6:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43569
Location: 56N 3W

PostPosted: Fri Jan 19, 2018 10:00 pm    Post subject: Reply with quote

Langest,

Welcome to gentoo.

As --depclean removed your kernel makefile, you have a newer kernel in /usr/src that has not yet been installed.

You should upgrade your kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Langest
n00b
n00b


Joined: 19 Jan 2018
Posts: 27

PostPosted: Fri Jan 19, 2018 10:48 pm    Post subject: Reply with quote

Thank you for the fast reply!

You are correct that there exists another kernel version, but to me it does not look like a newer version.
Code:
$ ls -l /usr/src/
total 8.0K
drwxr-xr-x 22 root root 4.0K Jan 10 17:57 linux-4.14.7-gentoo
drwxr-xr-x 25 root root 4.0K Jan 19 23:39 linux-4.9.76-gentoo-r1
lrwxrwxrwx  1 root root   20 Jan 12 09:49 linux -> linux-4.14.7-gentoo/

4.14.7 is the kernel I currently run on which is missing the make file and 4.9.76 is the newer? I thought 4.14.7 > 4.9.76-r. But as you say, it seems like 4.9.76-r has a Makefile.
When I look at https://packages.gentoo.org/packages/sys-kernel/gentoo-sources 4.14.7 is missing. Was it pulled because of something (meltdown & spectre maybe?) and that is the reason for me getting confused over the matter?

Thank you!
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Fri Jan 19, 2018 10:56 pm    Post subject: Reply with quote

Code:
emerge --ask --depclean

And look at the output before committing. :)
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43569
Location: 56N 3W

PostPosted: Fri Jan 19, 2018 11:11 pm    Post subject: Reply with quote

Langest,

Ah. 4.14.7 got masked for bugs that that only affected hardened profile users.
That wasn't known at the time in was masked. Its now been removed from the repository.

Code:
$ eix gentoo-sources
[?] sys-kernel/gentoo-sources
     (4.14.8-r1) [M](~)4.14.8-r1^bs{tbz2}
     (4.14.9) [M](~)4.14.9^bs
     (4.14.10) [M](~)4.14.10^bs
     (4.14.10-r1) [M](~)4.14.10-r1^bs
     (4.14.11) [M](~)4.14.11^bs
     (4.14.11-r1) (~)4.14.11-r1^bs
     (4.14.11-r2) (~)4.14.11-r2^bs
     (4.14.12) (~)4.14.12^bs{tbz2}
     (4.14.13) (~)4.14.13^bs{tbz2}


All the 4.14 versions in the repository are either masked [M] or testing (~)

If you want to try a testing kernel, use at least 4.14.11-r2 as that is the first one with the Spectre and Meltdown patches.
There is no reason to avoid 4.14.13, other than its still in Gentoo testing.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18073

PostPosted: Fri Jan 19, 2018 11:34 pm    Post subject: Reply with quote

NeddySeagoon wrote:
If you want to try a testing kernel, use at least 4.14.11-r2 as that is the first one with the Spectre and Meltdown patches.
There is no reason to avoid 4.14.13, other than its still in Gentoo testing.
Project:Security/Vulnerabilities/Meltdown and Spectre changed their "recommended / stabilization candidate" version from 4.14.13 to 4.14.14.

I had no problems using 'make olddefconfig' to upgrade from .13 to .14.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7101

PostPosted: Sat Jan 20, 2018 12:10 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic-t-1074552.html
may answer some of your questions.
Back to top
View user's profile Send private message
Langest
n00b
n00b


Joined: 19 Jan 2018
Posts: 27

PostPosted: Sat Jan 20, 2018 8:28 am    Post subject: Reply with quote

Wow, plenty of thanks!

That is a lot of useful information and I feel you covered all of my questions.
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