cc: error: unrecognized command-line option ‘-ftrivial-auto-var-
init=zero’
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-12 (Ubuntu
12.3.0-1ubuntu1~22.04.3) 12.3.0
You are using: cc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0
-------------------------------------
You probably need to switch to a newer gcc version
sudo apt install gcc-12 g++-12
sudo update-alternatives --config gcc
** Changed in: nvidia-graphics-drivers-580 (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2154116
Title:
nvidia-kernel-source-580 580.159.03-0ubuntu0.22.04.1: nvidia kernel
module failed to build
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-580/+bug/2154116/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs