575.51.03 fails to build in Debian trixie
NVIDIA Open GPU Kernel Modules Version
575.51.03
Operating System and Version
Description: Debian GNU/Linux trixie/sid
Kernel Release
Linux MyDebian 6.12.22-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.22-1 (2025-04-10) x86_64 GNU/Linux
Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.
- [x] I am running on a stable kernel release.
Build Command
Installed from this repository: https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ did apt upgrade.
Terminal output/Build Log
More Info
The error log says
ERROR: modpost: /var/lib/dkms/nvidia/575.51.03/build/nvidia: sizeof(struct of_device_id)=196 is not a modulo of the size of section __mod_of__<identifier>_device_table=400.
according to amd64 kernel header(/usr/src/linux-headers-6.12.22-common/include/linux/mod_devicetable.h)
struct of_device_id {
char name[32];
char type[32];
char compatible[128];
const void *data;
};
sizeof(struct of_device_id) should be 200 but reported as 196.
This error seems similar to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=877779 It might be debian specific issue but prior 570.133.20 module could build without any problem. I think it is regression of 575.51.03.