@Robert_Croverlla,
Thanks a lot as always.
I tried fresh installing cuda10.0 with nvidia-410 and met the same problem. (dependency)
so I followed your advice, and incrementally added required packages required for cuda-10.0, until the âsudo apt-get install cuda-10.0 âŠâ command worked.
But I have an error at the end while rebuilding the kernel, and the message says I should look into /var/lib/dkms/nvidia-410/410.78/build/make.log . The make.log file ends with below error messages.
CC [M] /var/lib/dkms/nvidia-410/410.78/build/nvidia/nv-kthread-q-selftest.o
CC [M] /var/lib/dkms/nvidia-410/410.78/build/nvidia/nv-memdbg.o
CC [M] /var/lib/dkms/nvidia-410/410.78/build/nvidia/nv-ibmnpu.o
CC [M] /var/lib/dkms/nvidia-410/410.78/build/nvidia/nv-report-err.o
In file included from /var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-linux.h:21:0,
from /var/lib/dkms/nvidia-410/410.78/build/nvidia/os-mlock.c:15:
/var/lib/dkms/nvidia-410/410.78/build/nvidia/os-mlock.c: In function âos_lock_user_pagesâ:
/var/lib/dkms/nvidia-410/410.78/build/nvidia/os-mlock.c:120:48: warning: passing argument 6 of âget_user_pagesâ makes pointer from integer without a cast
page_count, write, force, user_pages, NULL);
^
/var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-mm.h:44:70: note: in definition of macro âNV_GET_USER_PAGESâ
get_user_pages(current, current->mm, start, nr_pages, write, force, pages, vmas)
^
In file included from /var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-pgprot.h:17:0,
from /var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-linux.h:20,
from /var/lib/dkms/nvidia-410/410.78/build/nvidia/os-mlock.c:15:
include/linux/mm.h:1243:6: note: expected âstruct page **â but argument is of type âNvBoolâ
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
In file included from /var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-linux.h:21:0,
from /var/lib/dkms/nvidia-410/410.78/build/nvidia/os-mlock.c:15:
/var/lib/dkms/nvidia-410/410.78/build/nvidia/os-mlock.c:120:55: warning: passing argument 7 of âget_user_pagesâ from incompatible pointer type
page_count, write, force, user_pages, NULL);
^
/var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-mm.h:44:77: note: in definition of macro âNV_GET_USER_PAGESâ
get_user_pages(current, current->mm, start, nr_pages, write, force, pages, vmas)
^
In file included from /var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-pgprot.h:17:0,
from /var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-linux.h:20,
from /var/lib/dkms/nvidia-410/410.78/build/nvidia/os-mlock.c:15:
include/linux/mm.h:1243:6: note: expected âstruct vm_area_struct **â but argument is of type âstruct page **â
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
In file included from /var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-linux.h:21:0,
from /var/lib/dkms/nvidia-410/410.78/build/nvidia/os-mlock.c:15:
/var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-mm.h:44:9: error: too many arguments to function âget_user_pagesâ
get_user_pages(current, current->mm, start, nr_pages, write, force, pages, vmas)
^
/var/lib/dkms/nvidia-410/410.78/build/nvidia/os-mlock.c:119:11: note: in expansion of macro âNV_GET_USER_PAGESâ
ret = NV_GET_USER_PAGES((unsigned long)address,
^
In file included from /var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-pgprot.h:17:0,
from /var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-linux.h:20,
from /var/lib/dkms/nvidia-410/410.78/build/nvidia/os-mlock.c:15:
include/linux/mm.h:1243:6: note: declared here
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
scripts/Makefile.build:285: recipe for target â/var/lib/dkms/nvidia-410/410.78/build/nvidia/os-mlock.oâ failed
make[2]: *** [/var/lib/dkms/nvidia-410/410.78/build/nvidia/os-mlock.o] Error 1
make[2]: *** Waiting for unfinished jobsâŠ
Makefile:1454: recipe for target âmodule/var/lib/dkms/nvidia-410/410.78/buildâ failed
make[1]: *** [module/var/lib/dkms/nvidia-410/410.78/build] Error 2
make[1]: Leaving directory â/usr/src/linux-headers-4.4.0-164-genericâ
Makefile:79: recipe for target âmodulesâ failed
make: *** [modules] Error 2
From below message above,
"In file included from /var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-linux.h:21:0,
from /var/lib/dkms/nvidia-410/410.78/build/nvidia/os-mlock.c:15:
/var/lib/dkms/nvidia-410/410.78/build/common/inc/nv-mm.h:44:9: error: too many arguments to function âget_user_pagesâ
get_user_pages(current, current->mm, start, nr_pages, write, force, pages, vmas)
", there seems to be version mismatch problem. should I install higher nvidia version? or lower version?