open-gpu-kernel-modules icon indicating copy to clipboard operation
open-gpu-kernel-modules copied to clipboard

Compilation failed on mainline 6.15.0 kernel

Open alokprasad-mrvl opened this issue 7 months ago • 3 comments

NVIDIA Open GPU Kernel Modules Version

570.133.20

Operating System and Version

Ubuntu 24.04 LTS

Kernel Release

6.15.0-061500-generic #202505260036 SMP PREEMPT_DYNAMIC Mon May 26 01:07:21 UTC 2025 x86_64 x86_64 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

make modules -j$(nproc)

Terminal output/Build Log

make modules -j$(nproc)

make[2]: Entering directory '/usr/src/linux-headers-6.15.0-061500-generic' make[3]: Entering directory '/home/marvell/alok/nvidia/open-gpu-kernel-modules-570.133.20/kernel-open' warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-14 (Ubuntu 14.2.0-23ubuntu1) 14.2.0 You are using: x86_64-linux-gnu-gcc-14 (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 CC [M] nvidia/nv.o CC [M] nvidia/nv-pci.o CC [M] nvidia/nv-dmabuf.o CC [M] nvidia/nv-nano-timer.o CC [M] nvidia/nv-acpi.o CC [M] nvidia/nv-cray.o CC [M] nvidia/nv-dma.o CC [M] nvidia/nv-i2c.o CC [M] nvidia/nv-mmap.o CC [M] nvidia/nv-p2p.o CC [M] nvidia/nv-pat.o nvidia/nv-acpi.c:26:10: fatal error: os-interface.h: No such file or directory 26 | #include "os-interface.h" | ^~~~~~~~~~~~~~~~ compilation terminated. CC [M] nvidia/nv-procfs.o nvidia/nv-cray.c:26:10: fatal error: os-interface.h: No such file or directory 26 | #include "os-interface.h" | ^~~~~~~~~~~~~~~~ compilation terminated. CC [M] nvidia/nv-usermap.o make[5]: *** [/usr/src/linux-headers-6.15.0-061500-generic/scripts/Makefile.build:203: nvidia/nv-acpi.o] Error 1 make[5]: *** Waiting for unfinished jobs.... make[5]: *** [/usr/src/linux-headers-6.15.0-061500-generic/scripts/Makefile.build:203: nvidia/nv-cray.o] Error 1 nvidia/nv-dma.c:26:10: fatal error: os-interface.h: No such file or directory 26 | #include "os-interface.h" | ^~~~~~~~~~~~~~~~ compilation terminated. make[5]: *** [/usr/src/linux-headers-6.15.0-061500-generic/scripts/Makefile.build:203: nvidia/nv-dma.o] Error 1 nvidia/nv-mmap.c:26:10: fatal error: os-interface.h: No such file or directory 26 | #include "os-interface.h" | ^~~~~~~~~~~~~~~~ compilation terminated. make[5]: *** [/usr/src/linux-headers-6.15.0-061500-generic/scripts/Makefile.build:203: nvidia/nv-mmap.o] Error 1 nvidia/nv-p2p.c:26:10: fatal error: os-interface.h: No such file or directory 26 | #include "os-interface.h" | ^~~~~~~~~~~~~~~~ compilation terminated. make[5]: *** [/usr/src/linux-headers-6.15.0-061500-generic/scripts/Makefile.build:203: nvidia/nv-p2p.o] Error 1 nvidia/nv-pat.c:26:10: fatal error: os-interface.h: No such file or directory 26 | #include "os-interface.h" | ^~~~~~~~~~~~~~~~ compilation terminated. make[5]: *** [/usr/src/linux-headers-6.15.0-061500-generic/scripts/Makefile.build:203: nvidia/nv-pat.o] Error 1 nvidia/nv-procfs.c:26:10: fatal error: os-interface.h: No such file or directory 26 | #include "os-interface.h" | ^~~~~~~~~~~~~~~~ compilation terminated. make[5]: *** [/usr/src/linux-headers-6.15.0-061500-generic/scripts/Makefile.build:203: nvidia/nv-procfs.o] Error 1 nvidia/nv-usermap.c:26:10: fatal error: os-interface.h: No such file or directory 26 | #include "os-interface.h" | ^~~~~~~~~~~~~~~~ compilation terminated. make[5]: *** [/usr/src/linux-headers-6.15.0-061500-generic/scripts/Makefile.build:203: nvidia/nv-usermap.o] Error 1 nvidia/nv-nano-timer.c:30:10: fatal error: os-interface.h: No such file or directory 30 | #include "os-interface.h" | ^~~~~~~~~~~~~~~~ compilation terminated. make[5]: *** [/usr/src/linux-headers-6.15.0-061500-generic/scripts/Makefile.build:203: nvidia/nv-nano-timer.o] Error 1 nvidia/nv.c:30:10: fatal error: nv-firmware.h: No such file or directory 30 | #include "nv-firmware.h" | ^~~~~~~~~~~~~~~ compilation terminated. make[5]: *** [/usr/src/linux-headers-6.15.0-061500-generic/scripts/Makefile.build:203: nvidia/nv.o] Error 1 nvidia/nv-dmabuf.c:24:10: fatal error: nv-dmabuf.h: No such file or directory 24 | #include "nv-dmabuf.h" | ^~~~~~~~~~~~~ compilation terminated. make[5]: *** [/usr/src/linux-headers-6.15.0-061500-generic/scripts/Makefile.build:203: nvidia/nv-dmabuf.o] Error 1 nvidia/nv-pci.c:25:10: fatal error: nv-pci-types.h: No such file or directory 25 | #include "nv-pci-types.h" | ^~~~~~~~~~~~~~~~ compilation terminated. make[5]: *** [/usr/src/linux-headers-6.15.0-061500-generic/scripts/Makefile.build:203: nvidia/nv-pci.o] Error 1 nvidia/nv-i2c.c:28:10: fatal error: os-interface.h: No such file or directory 28 | #include "os-interface.h" | ^~~~~~~~~~~~~~~~ compilation terminated. make[5]: *** [/usr/src/linux-headers-6.15.0-061500-generic/scripts/Makefile.build:203: nvidia/nv-i2c.o] Error 1 make[4]: *** [/usr/src/linux-headers-6.15.0-061500-generic/Makefile:2010: .] Error 2 make[3]: *** [/usr/src/linux-headers-6.15.0-061500-generic/Makefile:248: __sub-make] Error 2 make[3]: Leaving directory '/home/marvell/alok/nvidia/open-gpu-kernel-modules-570.133.20/kernel-open' make[2]: *** [Makefile:248: __sub-make] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-6.15.0-061500-generic' make[1]: *** [Makefile:115: modules] Error 2

`

More Info

No response

alokprasad-mrvl avatar May 28 '25 12:05 alokprasad-mrvl

You are running an too old nvidia driver version. You should update it to the latest 570 driver. The latest 570 Driver does support the 6.15.0 Kernel with the open module.

ptr1337 avatar May 28 '25 13:05 ptr1337

@ptr1337 do u mean from Nvidia site or from github site? i checked the mainline code i dont think it will compile in latest kernel e.g code still uses make_device_exclusive_range while it has been change to make_device_exclusive (kernel-open/nvidia-uvm/uvm_hmm.c)

alokprasad-mrvl avatar May 28 '25 14:05 alokprasad-mrvl

@ptr1337 do u mean from Nvidia site or from github site? i checked the mainline code i dont think it will compile in latest kernel e.g code still uses make_device_exclusive_range while it has been change to make_device_exclusive (kernel-open/nvidia-uvm/uvm_hmm.c)

The best would be the distribution packages, if otherwise not maybe package them on your own or use the .run file.

Yes, it compiles sucesfully with the open module - Ive already tested it. Only the closed source module is not compiling with 570.153.02 due a GPL VIolation.

Edit: Also please update the comment, since you wrote "6.14.0", while you did mean "6.15.0"

ptr1337 avatar May 28 '25 15:05 ptr1337

Duplicate of #840

ccicnce113424 avatar May 29 '25 12:05 ccicnce113424

Any update on the release supporting 6.15 , i see that https://github.com/NVIDIA/open-gpu-kernel-modules/issues/840 is closed

alokprasad avatar Jul 10 '25 04:07 alokprasad

Any update on the release supporting 6.15 , i see that #840 is closed

This has been already fixed

ptr1337 avatar Jul 10 '25 07:07 ptr1337

Which tag release to pick ? head?

alokprasad avatar Jul 10 '25 08:07 alokprasad

Checked 575.64.03 its compiles on 6.15

alokprasad avatar Jul 10 '25 08:07 alokprasad