It is rather unlikely that my compiler install is corrupted, compiling any other software (including the current stable driver, version 510.54) works.
/usr/bin/cc points to /usr/bin/gcc (v. 11.2.1).
This issue persists across multiple different kernel versions, and regardless of whether or not I build with DKMS (attached logfiles are from a non-DKMS build).
If I create a symlink to stdarg.h and stddef.h in the kernel’s include directory, the include errors go away. Instead, I get symbol redefinition warnings (those go away when I replace the symlinks with empty files) and other errors inside some macro expansions (see the end of the logfile for the symlink build).
A logfile from a build using symlinks in the kernel’s include directory looks like this: nvinstall-symlinks.log (1.6 MB)
Thank you, this indeed fixed my issue. I was unaware there was a newer beta driver as neither https://developer.nvidia.com/vulkan-driver nor other driver download pages referenced a newer version, thanks for clarifying that. Am I correct in assuming that the newest drivers are located in the Announcements section of the forum instead?
470.103.01 isn’t beta. The Vulkan Driver beta page only lists drivers that were specifically released to support developers using newer Vulkan versions or extensions that aren’t quite ready for the main driver releases. Eventually, those features get folded into the driver’s main codeline and released as part of the stable driver series.