Closed brandus1 closed 1 year ago
An option here is to determine which gcc to intall based upon
$ cat /proc/version
Linux version 5.15.0-1021-gcp (buildd@lcy02-amd64-108) (gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #28-Ubuntu SMP Fri Oct 14 15:46:06 UTC 2022
$ apt install gcc-11-base=11.2.0-19ubuntu1
...
the last command forces a downgrade if you have already installed 11.3
@tpdownes Do you have any experience with this? Do you know if ignoring the version difference or forcing downgrade installation can cause the driver to malfunction?
@brandus1 Thank you for reporting this!
I would not rely on ignoring a compiler mismatch in general. I would either make sure the right kernel is installed (if available) or deliberately install an earlier gcc (presumably still available)
That said you could probably try to get away with ignoring the compiler mismatch in this case if you need progress now.
Failed CC version check. Bailing out! simple running of the script throws:
Environment
To Reproduce just create an ubuntu 22.04 machine and run the official recommended installation using this script
Solution modified the script by adding
--no-cc-version-check
flag aftersh NVIDIA-Linux-x86_64-470.103.01.run -s --dkms