The invida installer from cuda_12.2.2_535.104.05_linux.run on a RHEL9.4 host fails while linking with
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
The relevant part of the log is
ld -r -o /tmp/selfgz4013/NVIDIA-Linux-x86_64-535.104.05/kernel/nvidia-modeset/nv-modeset-interface.o /tmp/selfgz4013/NVIDIA-Linux-x86_64-535.104.05/kernel/nvidia-modeset/nvidia-modeset-linux.o /tmp/selfgz4013/NVIDIA-Linux-x86_64-535.104.05/kernel/nvidia-modeset/nv-kthread-q.o
LD [M] /tmp/selfgz4013/NVIDIA-Linux-x86_64-535.104.05/kernel/nvidia-modeset.o
LD [M] /tmp/selfgz4013/NVIDIA-Linux-x86_64-535.104.05/kernel/nvidia-uvm.o
LD [M] /tmp/selfgz4013/NVIDIA-Linux-x86_64-535.104.05/kernel/nvidia-drm.o
LD [M] /tmp/selfgz4013/NVIDIA-Linux-x86_64-535.104.05/kernel/nvidia-peermem.o
MODPOST /tmp/selfgz4013/NVIDIA-Linux-x86_64-535.104.05/kernel/Module.symvers
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
make[2]: *** [scripts/Makefile.modpost:134: /tmp/selfgz4013/NVIDIA-Linux-x86_64-535.104.05/kernel/Module.symvers] Error 1
make[2]: *** Deleting file '/tmp/selfgz4013/NVIDIA-Linux-x86_64-535.104.05/kernel/Module.symvers'
make[2]: Target '__modpost' not remade because of errors.
make[1]: *** [Makefile:1848: modules] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.14.0-427.13.1.el9_4.x86_64'
make: *** [Makefile:82: modules] Error 2
-> Checking to see whether the nvidia kernel module was successfully built
executing: 'cd ./kernel; /usr/bin/make -k -j16 NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.14.0-427.13.1.el9_4.x86_64/source" SYSOUT="/lib/modules/5.14.0-427.13.1.el9_4.x86_64/build" NV_KERNEL_MODULES="nvidia"'...
make[1]: Entering directory '/usr/src/kernels/5.14.0-427.13.1.el9_4.x86_64'
MODPOST /tmp/selfgz4013/NVIDIA-Linux-x86_64-535.104.05/kernel/Module.symvers
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
As said it’s a RHEL9.4 host running on kernel 5.14.0-427.13.1.el9_4.x86_64.
Does anybody has a clue how to resolve this issue? Any hint is welcome!
Thanks & best regards,
Ruediger