Hello,
This is for the users that still use nvidia-340 driver.
I ran into unable to compile error with exit code 10 ( its not that important ).
The important thing is:
You will have a make.log
file and in there the error states that its a mismatch gcc compiler 11.1 → 11.2
In order to fix this you will
- open
/etc/profile
and at the end of the file addexport IGNORE_CC_MISMATCH=1
- Reboot.
- You will be greeted by black screen. Don’t panic
Go to
tty
login as root and run
dkms autoinstall
- Reboot.
That’s it.
It worked for me.
Cheers…