View previous topic :: View next topic |
Author |
Message |
Windmill Tux's lil' helper
Joined: 21 Feb 2014 Posts: 105
|
Posted: Fri Apr 06, 2018 2:30 pm Post subject: nvidia kernel configuration is invalid |
|
|
I have this error when trying to install nvidia driver
Code: | 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."; \
|
The compilation continues after this, but I opened a thread because I do't know if it's a real problem or not. I found a thread talking about the same error, but it was from 2017 so I find it strange that it hasn't been fixed in a year |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Fri Apr 06, 2018 2:54 pm Post subject: |
|
|
Try doing what the error suggests?
"make oldconfig" is a tip off that some config item is completely missing from your config file, not just turned off.
ALWAYS run make oldconfig when upgrading versions other than minor revisions. i.e. 4.8 to 4.9, minor revisions being 4.8.10 to 4.8.20
I have a script that always runs make oldconfig. it takes a few seconds and never finds anything on the minor revisions. But I don't mind waiting ten seconds or so, the build is going to take much longer. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
Posted: Fri Apr 06, 2018 2:57 pm Post subject: |
|
|
https://forums.gentoo.org/viewtopic-p-6457443.html#6457443
cach0rr0 wrote: | Code: | test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; |
That's just saying it will echo that if those files are missing |
_________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
gerard27 Advocate
Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Fri Apr 06, 2018 3:19 pm Post subject: |
|
|
My experience is that this error message will be printed ALWAYS.
I think the nvidia source has an "if/then" missing.
I have installed nvidia-drivers many times,always this message even though X works fine.
Gerard. _________________ To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30894 Location: here
|
Posted: Fri Apr 06, 2018 3:28 pm Post subject: |
|
|
gerard27 wrote: | My experience is that this error message will be printed ALWAYS.
I think the nvidia source has an "if/then" missing.
I have installed nvidia-drivers many times,always this message even though X works fine.
Gerard. |
No the error message isn't printed, but all test command is printed.
If error occur (when include/generated/autoconf.h or include/config/auto.conf are missing) you see error message without echo _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Windmill Tux's lil' helper
Joined: 21 Feb 2014 Posts: 105
|
Posted: Sat Apr 07, 2018 7:25 am Post subject: |
|
|
It seems that the driver is working correctly. |
|
Back to top |
|
|
|