canonical / nvidia-graphics-drivers

Packaging scripts for nvidia-graphics-drivers in Ubuntu
43 stars 34 forks source link

stdarg.h missing with v5.16+ kernels #44

Closed xnox closed 2 years ago

xnox commented 2 years ago

linux stopped including toolchain headers during build, and instead provides some headers internally.

It means that conftests got extended in recent driver series to check for "<linux/stdarg.h>" vs "" and include one or the other as appropriate in the "nv_stdarg.h" header and using that throughout.

390 series appear to be missing that change, and need a backport.

I think this got added between diff nvidia-graphics-drivers-470-470.74/ nvidia-graphics-drivers-470-470.82.00/

xnox commented 2 years ago

kernel.diff.txt

This is the relevant diff i think, that needs to be tested against 390 tree.

xnox commented 2 years ago

Attempting fix in https://github.com/xnox/nvidia-graphics-drivers/tree/390-5.16 and opened https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-418-server/+bug/1961815 to track it too.

blastwave commented 2 years ago

It is not at all clear how to fix this problem with something like 418.113 where upon --extract of the "run" file there is no stdarg type file anywhere in the extracted contents. I do see that linux-5.16.12 provides include/linux/stdarg.h in the source tree however what does one do with that in the NVidia sources? This problem is poorly documented.