Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 589880

Summary: nvidia-drivers won't compile with gentoo-sources-4.7.0
Product: Gentoo Linux Reporter: Fred Krogh <fkrogh>
Component: Current packagesAssignee: Jeroen Roovers (RETIRED) <jer>
Status: RESOLVED DUPLICATE    
Severity: normal CC: hardened
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Result from emerge --info '=x11-drivers/nvidia-drivers-367.35-r1::gentoo
The ebuild log
emerge -pqv '=x11-drivers/nvidia-drivers-367.35-r1::gentoo
The environment
The .config file named as config

Description Fred Krogh 2016-07-27 22:38:05 UTC
Created attachment 441772 [details]
Result from emerge --info '=x11-drivers/nvidia-drivers-367.35-r1::gentoo

Getting this error:

test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        
        \
echo >&2;                                                       \
echo >&2 "  ERROR: Kernel configuration is invalid.";           \
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
echo >&2 ;          

But I have an autoconf.h in 
/usr/src/linux-4.7.0-gentoo/include/generated/
Comment 1 Fred Krogh 2016-07-27 22:39:54 UTC
Created attachment 441774 [details]
The ebuild log
Comment 2 Fred Krogh 2016-07-27 22:42:34 UTC
Created attachment 441776 [details]
emerge -pqv '=x11-drivers/nvidia-drivers-367.35-r1::gentoo
Comment 3 Fred Krogh 2016-07-27 22:44:05 UTC
Created attachment 441778 [details]
The environment
Comment 4 Adam Feldman gentoo-dev 2016-07-27 22:48:35 UTC
Looks like your kernel isn't configured.  Your error message explicitly says how to attempt to fix that aspect "Run 'make oldconfig && make prepare' on kernel src to fix it."

Either way, from the ebuild:

    if use kernel_linux && kernel_is ge 4 7; then
        ewarn "Gentoo supports kernels which are supported by NVIDIA"
        ewarn "which are limited to the following kernels:"
        ewarn "<sys-kernel/gentoo-sources-4.7"
        ewarn "<sys-kernel/vanilla-sources-4.7"
        ewarn ""
        ewarn "You are free to utilize epatch_user to provide whatever"
        ewarn "support you feel is appropriate, but will not receive"
        ewarn "support as a result of those changes."
        ewarn ""
        ewarn "Do not file a bug report about this."
        ewarn ""
    fi
Comment 5 Fred Krogh 2016-07-27 22:51:45 UTC
I have done those things -- twice.
I'll try deleting copying over an old .config, and try again, and will post again if it should work, I see no reason it should.
Comment 6 Fred Krogh 2016-07-27 23:00:35 UTC
Created attachment 441780 [details]
The .config file named as config
Comment 7 Fred Krogh 2016-07-27 23:01:31 UTC
Sorry, that last comment was meant to say, it is not working as expected.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2016-07-28 17:57:36 UTC

*** This bug has been marked as a duplicate of bug 586066 ***