Hi yudotrah,

Thanks for reporting this issue and for providing the detailed DKMS
build log — it was very helpful.

From the log, the build failure appears to be caused by a compiler
mismatch. Your installed kernel headers for 6.8.0-107-generic are
passing the GCC 13+ option -ftrivial-auto-var-init=zero, but the system
is using GCC 11.4, which does not recognise this flag. As a result, the
NVIDIA DKMS module build fails.

Before we investigate further, could you please update your system to
the latest available packages and retry the DKMS build? The currently
installed NVIDIA driver version (535.288.01) is older than the current
jammy-updates version (535.309.01).

Please run:

  sudo apt update
  sudo apt upgrade
  sudo dkms autoinstall

If the build still fails afterwards, please attach the updated DKMS
build log and the output of:

  gcc --version
  cat /proc/version

This will help confirm whether the issue persists with the latest
packages and whether the compiler mismatch remains present.

Thank you!


** Changed in: nvidia-graphics-drivers-535 (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/2148805

Title:
  nvidia-kernel-source-535 535.288.01-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-535/+bug/2148805/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to