Nvidia driver 460.67 is failing to build

After updating my workstation yesterday the (new) Nvidia driver (version 460.67) is failing to install. I am running Ubuntu 20.04 and apparently kernel 5.4.0-72-generic (x86_64).

Here is the output of my nvidia-bug-report: nvidia-bug-report.log.gz (118.3 KB)

From inspection it appears that make is having trouble finding gcc, though I have several versions installed:

update-alternatives --config gcc
There are 4 choices for the alternative gcc (providing /home/user/.local/bin/gcc).

  Selection    Path             Priority   Status
  0            /usr/bin/gcc-10   100       auto mode
  1            /usr/bin/gcc-10   100       manual mode
  2            /usr/bin/gcc-7    70        manual mode
  3            /usr/bin/gcc-8    80        manual mode
* 4            /usr/bin/gcc-9    90        manual mode

Presently I set the version to gcc-9 since when I run apt install gcc this is listed as the most up to date version.

Perhaps there are other problems that I cannot parse from the bug report.

Does anyone have ideas on how to proceed?

make[1]: cc: Command not found

what does which cc show?
cc should also be set to v.9.

Interesting. which cc does not return anything.

On the other hand,

$ which gcc

My understanding is that update-alternatives controls which version is linked to that gcc command.

update-alternatives --set cc PATH_TO/gcc
update-alternatives --set c++ PATH_TO/g++

1 Like

Thanks Mart! That was rather naive of me. It seems I had not configured cc to point anywhere. Thanks for your patience and help.