# Drivers do not compile on latest Proxmox kernel headers

**URL:** <https://forums.developer.nvidia.com/t/drivers-do-not-compile-on-latest-proxmox-kernel-headers/385464>\
**Category:** Linux\
**Tags:** kernel\
**Created:** [October 9, 2026, 8:16pm UTC](https://forums.developer.nvidia.com/t/drivers-do-not-compile-on-latest-proxmox-kernel-headers/385464 "2026-10-09T20:16:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom474](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tom474](https://forums.developer.nvidia.com/u/tom474)\
**Post date:** [October 9, 2026, 8:16pm UTC](https://forums.developer.nvidia.com/t/drivers-do-not-compile-on-latest-proxmox-kernel-headers/385464/1 "2026-10-09T20:16:58Z")

</div>

With Proxmox kernel headers 7.0.14-22 (and -23) the NVIDIA driver (615.71.09-2) fails to compile with error `nv-linux.h:1270:34: error: field 'cxlds' has incomplete type`. It previously worked fine with Proxmox kernel headers 7.0.14-16 and earlier.

```auto
Setting up proxmox-kernel-7.0.14-23-pve-signed (7.0.14-23) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 7.0.14-23-pve /boot/vmlinuz-7.0.14-23-pve
Sign command: /lib/modules/7.0.14-23-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Autoinstall of module nvidia/615.71.09 for kernel 7.0.14-23-pve (x86_64)
Building module(s).....................(bad exit status: 2)
Failed command:
'make' -j40 KERNEL_UNAME=7.0.14-23-pve IGNORE_PREEMPT_RT_PRESENCE=1 IGNORE_XEN_PRESENCE=1 modules

Error! Bad return status for module build on kernel: 7.0.14-23-pve (x86_64)
Consult /var/lib/dkms/nvidia/615.71.09/build/make.log for more information.

Autoinstall on 7.0.14-23-pve failed for module(s) nvidia(10).

Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-7.0.14-23-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-7.0.14-23-pve-signed (--configure):
 installed proxmox-kernel-7.0.14-23-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of nvidia-driver:
 nvidia-driver depends on nvidia-kernel-open-dkms (= 615.71.09-2); however:
  Package nvidia-kernel-open-dkms is not configured yet.

dpkg: error processing package nvidia-driver (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-kernel-7.0:
 proxmox-kernel-7.0 depends on proxmox-kernel-7.0.14-23-pve-signed | proxmox-kernel-7.0.14-23-pve; however:
  Package proxmox-kernel-7.0.14-23-pve-signed is not configured yet.
  Package proxmox-kernel-7.0.14-23-pve is not installed.
  Package proxmox-kernel-7.0.14-23-pve-signed which provides proxmox-kernel-7.0.14-23-pve is not configured yet.

dpkg: error processing package proxmox-kernel-7.0 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of nvidia-open:
 nvidia-open depends on nvidia-kernel-open-dkms (>= 615.71.09); however:
  Package nvidia-kernel-open-dkms is not configured yet.
 nvidia-open depends on nvidia-driver (>= 615.71.09); however:
  Package nvidia-driver is not configured yet.

dpkg: error processing package nvidia-open (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 nvidia-kernel-open-dkms
 proxmox-kernel-7.0.14-23-pve-signed
 nvidia-driver
 proxmox-kernel-7.0
 nvidia-open
Removing subscription nag from UI...
E: Sub-process /usr/bin/dpkg returned an error code (1)

```

**What changed in the kernel.** The 7.0.14-16 headers have no `include/cxl/cxl.h`, so the guard was false and the CXL code was skipped. The 7.0.14-22 headers do ship that file. Proxmox has pulled in some newer upstream CXL work, though I’m inferring which part from the headers rather than the changelog. But the file only names `struct cxl_dev_state` without defining its contents; nowhere in the -22 headers is the struct fully defined. So the guard becomes true, the compiler hits an embedded field whose size it can’t know, and you get `field 'cxlds' has incomplete type`.

The tell-tale is in the probe results the build generated:

```c
#define NV_CXL_CXL_H_PRESENT ← header exists, so the struct gets compiled
#undef NV_CXL_INIT_SUPPORTED ← NVIDIA's own fuller CXL test correctly failed
#undef NV_CXL_PCI_H_PRESENT

```

NVIDIA’s more thorough test, which actually tries to use `cxl_dev_state`, correctly concluded CXL isn’t usable on this kernel. The struct is just guarded by the weaker file-exists test instead. That’s an NVIDIA bug: the two checks disagree, and the wrong one wins.

[nvidia-bug-report.log.gz](https://forums.developer.nvidia.com/secure-uploads/nvidia/original/4X/8/0/b/80ba29ef995e2c2cae71ce3b9f160d7aa7c670af.gz) (1003.8 KB)

[make.log](https://forums.developer.nvidia.com/secure-uploads/nvidia/original/4X/7/8/f/78f400193d3505daf66448329df71effa37a8baf.log) (128.0 KB)

---

<div class="post-metadata">

**Author:** ![andrewjlamarche](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@andrewjlamarche](https://forums.developer.nvidia.com/u/andrewjlamarche)\
**Post date:** [October 9, 2026, 9:52pm UTC](https://forums.developer.nvidia.com/t/drivers-do-not-compile-on-latest-proxmox-kernel-headers/385464/2 "2026-10-09T21:52:39Z")

</div>

Can confirm this on my end as well.

---

<div class="post-metadata">

**Author:** ![sheng.work](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@sheng.work](https://forums.developer.nvidia.com/u/sheng.work)\
**Post date:** [October 10, 2026, 6:32am UTC](https://forums.developer.nvidia.com/t/drivers-do-not-compile-on-latest-proxmox-kernel-headers/385464/3 "2026-10-10T06:32:57Z")

</div>

I meet same issue.  
The last working kernel is “7.0.14-19” for both “615.71.09” and “615.78.08”  
Since kernel “7.0.14-20”, there 2 “615” will fail in installation

---

<div class="post-metadata">

**Author:** ![jasonbkemper](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/jasonbkemper/32/544408_2.png) [@jasonbkemper](https://forums.developer.nvidia.com/u/jasonbkemper)\
**Post date:** [October 10, 2026, 10:27pm UTC](https://forums.developer.nvidia.com/t/drivers-do-not-compile-on-latest-proxmox-kernel-headers/385464/4 "2026-10-10T22:27:26Z")

</div>

Confirmed independently on a fresh Proxmox VE 9.2 installation.

- PVE Manager: 9.2.21

- Kernel: 7.0.14-23-pve

- GPU: GeForce RTX 3060 (GA106, 10de:2504)

- NVIDIA driver: 615.71.09-2

- Package: nvidia-kernel-open-dkms

- Kernel headers: proxmox-headers-7.0.14-23-pve

- DKMS: 3.2.2

Installed through NVIDIA’s official Debian 13 repository using `apt install nvidia-driver-cuda nvidia-kernel-open-dkms`.

DKMS compilation fails with the same error:

`nv-linux.h:1270:34: error: field 'cxlds' has incomplete type`

This reproduces the issue on a newly installed, fully updated Proxmox host, without a previously installed NVIDIA proprietary driver.

---

<div class="post-metadata">

**Author:** ![HackinDoge](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@HackinDoge](https://forums.developer.nvidia.com/u/HackinDoge)\
**Post date:** [October 19, 2026, 8:50pm UTC](https://forums.developer.nvidia.com/t/drivers-do-not-compile-on-latest-proxmox-kernel-headers/385464/5 "2026-10-19T20:50:48Z")

</div>

The fix, on NVIDIA’s GitHub:

> <https://github.com/NVIDIA/open-gpu-kernel-modules/pull/1435/commits/0e23c574b430c27d7b5ae394bc6ca488aff346cd>

Downloaded the above as a `.patch`, then applied it to my DKMS tree:

```auto
cd /var/lib/dkms/nvidia/<driver ver>/source
patch -p1 < /path/to/nvidia.patch
dkms build nvidia/<driver ver> -k $(uname -r)
dkms install nvidia/<driver ver> -k $(uname -r)
dracut -f

```

^ ran on CentOS Stream 10. Commands may vary on other distros.

---

<div class="post-metadata">

**Author:** ![morgwai666](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/morgwai666/32/393870_2.png) [@morgwai666](https://forums.developer.nvidia.com/u/morgwai666)\
**Post date:** [October 20, 2026, 2:53am UTC](https://forums.developer.nvidia.com/t/drivers-do-not-compile-on-latest-proxmox-kernel-headers/385464/6 "2026-10-20T02:53:19Z")

</div>

DKMS-3.4.x has a very convenient feature of [external patch & post-install script management](https://github.com/dkms-project/dkms/releases/tag/v3.4.0), so that you do not need to mess directly with module sources controlled by a given distro’s package management system:

1. put the patch for example in `/etc/dkms/nvidia/patches/fix-nv_cxl.patch`
2. create `/etc/dkms/nvidia.conf` with the following content:

```auto
PATCH[0]=fix-nv_cxl.patch

```

3. rebuild the modules

This will also persists across driver upgrades.
