On 21/05/2020 20:25, Ashley Dixon wrote:
On Thu, May 21, 2020 at 08:13:38PM +0100, Ján Zahornadský wrote:
when updating the system today, a new revision of nvidia-drivers ebuild
fails with

ERROR: Kernel configuration is invalid.
    include/generated/autoconf.h or include/config/auto.conf are missing.
    Run 'make oldconfig && make prepare' on kernel src to fix it.

(full log attached as build.log)

I'm fairly sure my kernel sources and configuration are in place:

bolt /usr/src/linux-5.6.14-gentoo # ls -l include/generated/autoconf.h
include/config/auto.conf
-rw------- 1 root root 26144 May 21 10:13 include/config/auto.conf
-rw------- 1 root root 35329 May 21 10:13 include/generated/autoconf.h

Try executing `chmod a+r <path>` on both of those files.


That sadly didn't help :-(

> Is  /usr/src/linux a symlink to  /usr/src/linux-5.6.14-gentoo ? The
> nvidia-drivers package looks for the kernel sources in /usr/src/linux
> so if the symlink is wrong then you might get errors like these.

Yes, I have a symlink in /usr/src:

bolt ~ # ls -l /usr/src/
total 8
lrwxrwxrwx  1 root root   19 May 21 10:12 linux -> linux-5.6.14-gentoo
drwxr-xr-x 25 root root 4096 May 20 22:03 linux-5.6.13-gentoo
drwxr-xr-x 25 root root 4096 May 21 10:58 linux-5.6.14-gentoo

Reply via email to