Skip to content

Compilation failed on mainline 6.15.0 kernel #866

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
alokprasad-mrvl opened this issue May 28, 2025 · 4 comments
Open
1 task done

Compilation failed on mainline 6.15.0 kernel #866

alokprasad-mrvl opened this issue May 28, 2025 · 4 comments

Comments

@alokprasad-mrvl
Copy link

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.

  • 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

@ptr1337
Copy link

ptr1337 commented May 28, 2025

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.

@alokprasad-mrvl
Copy link
Author

alokprasad-mrvl commented May 28, 2025

@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)

@ptr1337
Copy link

ptr1337 commented May 28, 2025

@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"

@alokprasad-mrvl alokprasad-mrvl changed the title Compilation failed on mainline 6.14.0 kernel Compilation failed on mainline 6.15.0 kernel May 28, 2025
@ccicnce113424
Copy link

Duplicate of #840

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

No branches or pull requests

3 participants