Skip to content

Ubuntu kernel 7.0.0-42-generic fails to compile. 7.0.0-38-generic works. #49

Open

Description

@kimnzl

NVIDIA Open GPU Kernel Modules Version

615.78.08-p2p, efed674

Operating System and Version

Ubuntu 26.04.1 LTS

Kernel Release

Working: 7.0.0-38-generic #38-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 4 09:10:14 UTC 2026 x86_64 GNU/Linux
Failing: 7.0.0-42-generic

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

sudo ./install.sh

Terminal output/Build Log

././common/inc/nv-linux.h:1280:34: error: field ‘cxlds’ has incomplete type
 1280 |     struct cxl_dev_state         cxlds;
      |                                  ^~~~~
In file included from ././common/inc/nv-dmabuf.h:27,
                 from nvidia/nv-dmabuf.c:24:
././common/inc/nv-linux.h:1280:34: error: field ‘cxlds’ has incomplete type
 1280 |     struct cxl_dev_state         cxlds;
      |                                  ^~~~~
make[5]: *** [/usr/src/linux-headers-7.0.0-42-generic/scripts/Makefile.build:289: nvidia/nv-vtophys.o] Error 1
In file included from nvidia/nv-mmap.c:27:
././common/inc/nv-linux.h:1280:34: error: field ‘cxlds’ has incomplete type
 1280 |     struct cxl_dev_state         cxlds;
      |                                  ^~~~~```

### More Info

After updating to the latest kernel 7.0.0-42 on ubuntu 26.04 the compile fails. 
error: field 'cxlds' has incomplete type

It looks to be a bug in the NVIDIA Open GPU Kernel Modules:  https://github.com/NVIDIA/open-gpu-kernel-modules/issues/1433

They also have a related upcoming change:
We have an equivalent fix in our tree already, and it should be included in our upcoming 620.xx releases.
https://github.com/NVIDIA/open-gpu-kernel-modules/pull/1438

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions