You are using an older version of gcc(11.4) than the default version (12.3) for 
Ubuntu 22.04, which causes the unrecognized option error. This is not a bug in 
Ubuntu or the Nvidia package.
I recommend removing gcc-11 if you do not need it, or making gcc-12 the default.


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) 12.3.0
  You are using:           cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

cc: error: unrecognized command-line option ‘-ftrivial-auto-var-
init=zero’

** Changed in: nvidia-graphics-drivers-570 (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2118251

Title:
  nvidia-kernel-source-570 570.133.07-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-570/+bug/2118251/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to