1 |
On 21/05/2020 20:25, Ashley Dixon wrote: |
2 |
> On Thu, May 21, 2020 at 08:13:38PM +0100, Ján Zahornadský wrote: |
3 |
>> when updating the system today, a new revision of nvidia-drivers ebuild |
4 |
>> fails with |
5 |
>> |
6 |
>> ERROR: Kernel configuration is invalid. |
7 |
>> include/generated/autoconf.h or include/config/auto.conf are missing. |
8 |
>> Run 'make oldconfig && make prepare' on kernel src to fix it. |
9 |
>> |
10 |
>> (full log attached as build.log) |
11 |
>> |
12 |
>> I'm fairly sure my kernel sources and configuration are in place: |
13 |
>> |
14 |
>> bolt /usr/src/linux-5.6.14-gentoo # ls -l include/generated/autoconf.h |
15 |
>> include/config/auto.conf |
16 |
>> -rw------- 1 root root 26144 May 21 10:13 include/config/auto.conf |
17 |
>> -rw------- 1 root root 35329 May 21 10:13 include/generated/autoconf.h |
18 |
> |
19 |
> Try executing `chmod a+r <path>` on both of those files. |
20 |
> |
21 |
|
22 |
That sadly didn't help :-( |
23 |
|
24 |
> Is /usr/src/linux a symlink to /usr/src/linux-5.6.14-gentoo ? The |
25 |
> nvidia-drivers package looks for the kernel sources in /usr/src/linux |
26 |
> so if the symlink is wrong then you might get errors like these. |
27 |
|
28 |
Yes, I have a symlink in /usr/src: |
29 |
|
30 |
bolt ~ # ls -l /usr/src/ |
31 |
total 8 |
32 |
lrwxrwxrwx 1 root root 19 May 21 10:12 linux -> linux-5.6.14-gentoo |
33 |
drwxr-xr-x 25 root root 4096 May 20 22:03 linux-5.6.13-gentoo |
34 |
drwxr-xr-x 25 root root 4096 May 21 10:58 linux-5.6.14-gentoo |