Here is my system details:
x86_64DISTRIB_ID=UbuntuDISTRIB_RELEASE=22.04DISTRIB_CODENAME=jammyDISTRIB_DESCRIPTION="Ubuntu 22.04.4 LTS"PRETTY_NAME="Ubuntu 22.04.4 LTS"NAME="Ubuntu"VERSION_ID="22.04"VERSION="22.04.4 LTS (Jammy Jellyfish)"VERSION_CODENAME=jammyID=ubuntuID_LIKE=debianHOME_URL="https://www.ubuntu.com/"SUPPORT_URL="https://help.ubuntu.com/"BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"UBUNTU_CODENAME=jammy
But this installation keeps giving me lots of gcc compilation errors, like:
from ./include/linux/spinlock.h:56,from /tmp/selfgz3982/NVIDIA-Linux-x86_64-530.30.02/kernel/common/inc/nv-lock.h:29,from /tmp/selfgz3982/NVIDIA-Linux-x86_64-530.30.02/kernel/common/inc/nv-linux.h:32,from /tmp/selfgz3982/NVIDIA-Linux-x86_64-530.30.02/kernel/nvidia/nv-procfs.c:27:/tmp/selfgz3982/NVIDIA-Linux-x86_64-530.30.02/kernel/common/inc/nv-mm.h: In function 'NV_GET_USER_PAGES':./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of 'get_user_pages' makes integer from pointer without a cast [-Wint-conversion]44 | #define current get_current()| ^~~~~~~~~~~~~| || struct task_struct */tmp/selfgz3982/NVIDIA-Linux-x86_64-530.30.02/kernel/common/inc/nv-mm.h:88:31: note: in expansion of macro 'current'88 | return get_user_pages(current, current->mm, start, nr_pages, write,| ^~~~~~~./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of 'get_user_pages' makes integer from pointer without a cast [-Wint-conversion]44 | #define current get_current()| ^~~~~~~~~~~~~| || struct task_struct */tmp/selfgz3982/NVIDIA-Linux-x86_64-530.30.02/kernel/common/inc/nv-mm.h:88:31: note: in expansion of macro 'current'88 | return get_user_pages(current, current->mm, start, nr_pages, write,| ^~~~~~~./arch/x86/include/asm/current.h:44:17: warning: passing argument 1 of 'get_user_pages' makes integer from pointer without a cast [-Wint-conversion]44 | #define current get_current()...make[2]: *** [/usr/src/linux-headers-6.5.0-41-generic/Makefile:2039: /tmp/selfgz10069/NVIDIA-Linux-x86_64-530.30.02/kernel] Error 2
Full log can be found at: https://gist.github.com/maifeeulasad/10d68d94fb83f16dfb4caf2e6e7cb982
What shall I do? Can you guys please help?