Solution
The issue was caused by a compatibility mismatch between the installed NI Linux Device Drivers (version 25.3, corresponding to the 2025 Q2 release) and the system's kernel version (6.14.0-24-generic, x86_64). This kernel version is not supported by the 2025 Q2 release, which led to a failure in building the nipalk kernel module via DKMS.
To solve the issue, please follow these steps:
- Fully remove all components of the 2025 Q2 NI Linux Device Drivers.
- Update the system to use the 2025 Q3 release of the NI Linux Device Drivers.
- Install the updated driver package.
After this steps the DKMS modules will build successfully with the supported kernel version (6.14.0).