报错:
FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol ‘rcu_read_unlock_strict’
make[2]: *** [scripts/Makefile.modpost:123: /tmp/selfgz54499/NVIDIA-Linux-x86_64-515.65.01/kernel/Module.symvers] Error 1
make[2]: Target ‘__modpost’ not remade because of errors.
make[1]: *** [Makefile:1777: modules] Error 2
make[1]: Leaving directory ‘/usr/src/kernels/5.10.0-216.0.0.115.oe2203sp4.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 -j32 NV_KERNEL_MODULES=“nvidia” NV_EXCLUDE_KERNEL_MODULES=“” SYSSRC=“/lib/modules/5.10.0-216.0.0.115.oe2203sp4.x86_64/source” SYSOUT=“/lib/modules/5.10.0-216.0.0.115.oe2203sp4.x86_64/build”’…
make[1]: Entering directory ‘/usr/src/kernels/5.10.0-216.0.0.115.oe2203sp4.x86_64’
scripts/Makefile.lib:8: ‘always’ is deprecated. Please use ‘always-y’ instead
MODPOST /tmp/selfgz54499/NVIDIA-Linux-x86_64-515.65.01/kernel/Module.symvers
FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol ‘rcu_read_unlock_strict’
make[2]: *** [scripts/Makefile.modpost:123: /tmp/selfgz54499/NVIDIA-Linux-x86_64-515.65.01/kernel/Module.symvers] Error 1
make[2]: Target ‘__modpost’ not remade because of errors.
make[1]: *** [Makefile:1777: modules] Error 2
make[1]: Leaving directory ‘/usr/src/kernels/5.10.0-216.0.0.115.oe2203sp4.x86_64’
make: *** [Makefile:82: modules] Error 2
→ Error.
ERROR: An error occurred while performing the step: “Checking to see whether the nvidia kernel module was successfully built”. See /var/log/nvidia-installer.log for details.
→ The command cd ./kernel; /usr/bin/make -k -j32 NV_KERNEL_MODULES="nvidia" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.10.0-216.0.0.115.oe2203sp4.x86_64/source" SYSOUT="/lib/modules/5.10.0-216.0.0.115.oe2203sp4.x86_64/build"
failed with the following output:
make[1]: Entering directory ‘/usr/src/kernels/5.10.0-216.0.0.115.oe2203sp4.x86_64’
scripts/Makefile.lib:8: ‘always’ is deprecated. Please use ‘always-y’ instead
MODPOST /tmp/selfgz54499/NVIDIA-Linux-x86_64-515.65.01/kernel/Module.symvers
FATAL: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol ‘rcu_read_unlock_strict’
make[2]: *** [scripts/Makefile.modpost:123: /tmp/selfgz54499/NVIDIA-Linux-x86_64-515.65.01/kernel/Module.symvers] Error 1
make[2]: Target ‘__modpost’ not remade because of errors.
make[1]: *** [Makefile:1777: modules] Error 2
make[1]: Leaving directory ‘/usr/src/kernels/5.10.0-216.0.0.115.oe2203sp4.x86_64’
make: *** [Makefile:82: modules] Error 2
ERROR: The nvidia kernel module was not created.
ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.