NVIDIA / NVIDIA/open-gpu-kernel-modules

575.51.03 fails to build in Debian trixie

Open
#855 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

build-problem
Dominant language
C
Stars
17.4k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

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.
  • 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

make.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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the attached make.log and the Debian kernel header at /usr/src/linux-headers-6.12.22-common/include/linux/mod_devicetable.h. Compare the 575.51.03 build context with the reported working 570.133.20 module and the referenced Debian bug. Done means the module builds successfully on Debian trixie with the stated 6.12.22 kernel.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, debian, linux
Domain
build-system, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.