package nvidia-dkms-390 390.157-0ubuntu0.22.04.2 failed to install/upgrade: installed nvidia-dkms-390 package post-installation script subprocess returned error exit status 10

Bug #2052341 reported by Konstantin
This bug report is a duplicate of:  Bug #2028165: nvidia-dkms-* FTBS with linux 6.5. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-graphics-drivers-390 (Ubuntu)
New
Undecided
Unassigned

Bug Description

dpkg: dependency problems prevent configuration of nvidia-driver-390:
 nvidia-driver-390 depends on nvidia-dkms-390 (<= 390.157-1); however:
  Package nvidia-dkms-390 is not configured yet.
 nvidia-driver-390 depends on nvidia-dkms-390 (>= 390.157); however:
  Package nvidia-dkms-390 is not configured yet.

dpkg: error processing package nvidia-driver-390 (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.

/var/crash reads:
# CC [M] /var/lib/dkms/nvidia/390.157/build/nvidia/nv-dma.o
   x86_64-linux-gnu-gcc-12 -Wp,-MMD,/var/lib/dkms/nvidia/390.157/build/nvidia/.nv-dma.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -I./ubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=zero -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -gdwarf-5 -I/var/lib/dkms/nvidia/390.157/build/common/inc -I/var/lib/dkms/nvidia/390.157/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"390.157\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Wno-sign-compare -Wno-format-extra-args -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -I/var/lib/dkms/nvidia/390.157/build/nvidia -DNV_BUILD_MODULE_INSTANCES=0 -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds-strict -fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -DKBUILD_BASENAME='"nv_dma"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/390.157/build/nvidia/nv-dma.o /var/lib/dkms/nvidia/390.157/build/nvidia/nv-dma.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --hacks=skylake --retpoline --rethunk --sls --stackval --static-call --uaccess --prefix=16 --module /var/lib/dkms/nvidia/390.157/build/nvidia/nv-dma.o
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:21,
                  from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.c:24:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h: In function ‘NV_GET_USER_PAGES_REMOTE’:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:45: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~
       | |
       | struct task_struct *
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
                  from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
 ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ~~~~~~~~~~~~~~~~~~^~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:50: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~
       | |
       | struct mm_struct *
 ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
  2398 | unsigned long start, unsigned long nr_pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:71: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~
       | |
       | unsigned int
 ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘unsigned int’
  2399 | unsigned int gup_flags, struct page **pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:165:45: error: passing argument 6 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   165 | pages, vmas);
       | ^~~~~
       | |
       | struct page **
 ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘struct page **’
  2400 | int *locked);
       | ~~~~~^~~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:23: error: too many arguments to function ‘get_user_pages_remote’
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~~~~~~~~~~~~~~~~~
 ./include/linux/mm.h:2397:6: note: declared here
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ^~~~~~~~~~~~~~~~~~~~~
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:21,
                  from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-cray.c:15:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h: In function ‘NV_GET_USER_PAGES_REMOTE’:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:45: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~
       | |
       | struct task_struct *
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
                  from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
 ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ~~~~~~~~~~~~~~~~~~^~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:50: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~
       | |
       | struct mm_struct *
 ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
  2398 | unsigned long start, unsigned long nr_pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:71: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~
       | |
       | unsigned int
 ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘unsigned int’
  2399 | unsigned int gup_flags, struct page **pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:165:45: error: passing argument 6 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   165 | pages, vmas);
       | ^~~~~
       | |
       | struct page **
 ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘struct page **’
  2400 | int *locked);
       | ~~~~~^~~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:23: error: too many arguments to function ‘get_user_pages_remote’
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~~~~~~~~~~~~~~~~~
 ./include/linux/mm.h:2397:6: note: declared here
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ^~~~~~~~~~~~~~~~~~~~~
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:21,
                  from /var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:13:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h: In function ‘NV_GET_USER_PAGES_REMOTE’:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:45: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~
       | |
       | struct task_struct *
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
                  from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
 ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ~~~~~~~~~~~~~~~~~~^~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:50: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~
       | |
       | struct mm_struct *
 ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
  2398 | unsigned long start, unsigned long nr_pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:71: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~
       | |
       | unsigned int
 ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘unsigned int’
  2399 | unsigned int gup_flags, struct page **pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:165:45: error: passing argument 6 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   165 | pages, vmas);
       | ^~~~~
       | |
       | struct page **
 ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘struct page **’
  2400 | int *locked);
       | ~~~~~^~~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:23: error: too many arguments to function ‘get_user_pages_remote’
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~~~~~~~~~~~~~~~~~
 ./include/linux/mm.h:2397:6: note: declared here
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ^~~~~~~~~~~~~~~~~~~~~
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:21,
                  from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-acpi.c:16:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h: In function ‘NV_GET_USER_PAGES_REMOTE’:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:45: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~
       | |
       | struct task_struct *
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
                  from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
 ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ~~~~~~~~~~~~~~~~~~^~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:50: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~
       | |
       | struct mm_struct *
 ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
  2398 | unsigned long start, unsigned long nr_pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:71: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~
       | |
       | unsigned int
 ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘unsigned int’
  2399 | unsigned int gup_flags, struct page **pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:165:45: error: passing argument 6 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   165 | pages, vmas);
       | ^~~~~
       | |
       | struct page **
 ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘struct page **’
  2400 | int *locked);
       | ~~~~~^~~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:23: error: too many arguments to function ‘get_user_pages_remote’
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~~~~~~~~~~~~~~~~~
 ./include/linux/mm.h:2397:6: note: declared here
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ^~~~~~~~~~~~~~~~~~~~~
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:21,
                  from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.c:13:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h: In function ‘NV_GET_USER_PAGES_REMOTE’:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:45: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~
       | |
       | struct task_struct *
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
                  from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
 ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ~~~~~~~~~~~~~~~~~~^~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:50: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~
       | |
       | struct mm_struct *
 ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
  2398 | unsigned long start, unsigned long nr_pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:71: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~
       | |
       | unsigned int
 ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘unsigned int’
  2399 | unsigned int gup_flags, struct page **pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:165:45: error: passing argument 6 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   165 | pages, vmas);
       | ^~~~~
       | |
       | struct page **
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:21,
                  from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.c:13:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h: In function ‘NV_GET_USER_PAGES_REMOTE’:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:45: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~
       | |
       | struct task_struct *
 ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘struct page **’
  2400 | int *locked);
       | ~~~~~^~~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:23: error: too many arguments to function ‘get_user_pages_remote’
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~~~~~~~~~~~~~~~~~
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
                  from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
 ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ~~~~~~~~~~~~~~~~~~^~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:50: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~
       | |
       | struct mm_struct *
 ./include/linux/mm.h:2397:6: note: declared here
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ^~~~~~~~~~~~~~~~~~~~~
 ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
  2398 | unsigned long start, unsigned long nr_pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:71: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~
       | |
       | unsigned int
 ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘unsigned int’
  2399 | unsigned int gup_flags, struct page **pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:165:45: error: passing argument 6 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   165 | pages, vmas);
       | ^~~~~
       | |
       | struct page **
 ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘struct page **’
  2400 | int *locked);
       | ~~~~~^~~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:23: error: too many arguments to function ‘get_user_pages_remote’
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~~~~~~~~~~~~~~~~~
 ./include/linux/mm.h:2397:6: note: declared here
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ^~~~~~~~~~~~~~~~~~~~~
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:21,
                  from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-chrdev.c:15:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h: In function ‘NV_GET_USER_PAGES_REMOTE’:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:45: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~
       | |
       | struct task_struct *
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
                  from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
 ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ~~~~~~~~~~~~~~~~~~^~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:50: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~
       | |
       | struct mm_struct *
 ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
  2398 | unsigned long start, unsigned long nr_pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:71: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~
       | |
       | unsigned int
 ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘unsigned int’
  2399 | unsigned int gup_flags, struct page **pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:165:45: error: passing argument 6 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   165 | pages, vmas);
       | ^~~~~
       | |
       | struct page **
 ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘struct page **’
  2400 | int *locked);
       | ~~~~~^~~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:23: error: too many arguments to function ‘get_user_pages_remote’
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~~~~~~~~~~~~~~~~~
 ./include/linux/mm.h:2397:6: note: declared here
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ^~~~~~~~~~~~~~~~~~~~~
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:21,
                  from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-dma.c:15:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h: In function ‘NV_GET_USER_PAGES_REMOTE’:
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:45: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~
       | |
       | struct task_struct *
 In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
                  from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
 ./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ~~~~~~~~~~~~~~~~~~^~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:50: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~
       | |
       | struct mm_struct *
 ./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
  2398 | unsigned long start, unsigned long nr_pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:71: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~
       | |
       | unsigned int
 ./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘unsigned int’
  2399 | unsigned int gup_flags, struct page **pages,
       | ~~~~~~~~~~~~~~^~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:165:45: error: passing argument 6 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   165 | pages, vmas);
       | ^~~~~
       | |
       | struct page **
 ./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘struct page **’
  2400 | int *locked);
       | ~~~~~^~~~~~
 /var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:23: error: too many arguments to function ‘get_user_pages_remote’
   164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
       | ^~~~~~~~~~~~~~~~~~~~~
 ./include/linux/mm.h:2397:6: note: declared here
  2397 | long get_user_pages_remote(struct mm_struct *mm,
       | ^~~~~~~~~~~~~~~~~~~~~
 /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.c: In function ‘gather_memblock_ids_for_node’:
 /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.c:232:47: warning: cast between incompatible function types from ‘int (*)(struct dir_context *, const char *, int, loff_t, u64, unsigned int)’ {aka ‘int (*)(struct dir_context *, const char *, int, long long int, long long unsigned int, unsigned int)’} to ‘bool (*)(struct dir_context *, const char *, int, loff_t, u64, unsigned int)’ {aka ‘_Bool (*)(struct dir_context *, const char *, int, long long int, long long unsigned int, unsigned int)’} [-Wcast-function-type]
   232 | nv_dir_context_t ats_ctx = { .ctx.actor = (filldir_t)filldir_get_memblock_id };
       | ^
 /var/lib/dkms/nvidia/390.157/build/nvidia/nv-acpi.c: In function ‘nv_acpi_methods_uninit’:
 /var/lib/dkms/nvidia/390.157/build/nvidia/nv-acpi.c:687:25: warning: unused variable ‘device’ [-Wunused-variable]
   687 | struct acpi_device *device = NULL;
       | ^~~~~~
 cc1: some warnings being treated as errors
 make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/nvidia/390.157/build/nvidia/nv-cray.o] Error 1
 make[3]: *** Waiting for unfinished jobs....
 cc1: some warnings being treated as errors
 cc1: some warnings being treated as errors
 make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.o] Error 1
 make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.o] Error 1
 cc1: some warnings being treated as errors
 cc1: some warnings being treated as errors
 make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.o] Error 1
 make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/nvidia/390.157/build/nvidia/nv-chrdev.o] Error 1
 cc1: some warnings being treated as errors
 make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/nvidia/390.157/build/nvidia/nv-acpi.o] Error 1
 cc1: some warnings being treated as errors
 make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/nvidia/390.157/build/nvidia/nv-dma.o] Error 1
 cc1: some warnings being treated as errors
 make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/nvidia/390.157/build/nvidia/nv.o] Error 1
 make[2]: *** [/usr/src/linux-headers-6.5.0-15-generic/Makefile:2037: /var/lib/dkms/nvidia/390.157/build] Error 2
 make[1]: *** [Makefile:234: __sub-make] Error 2
 make[1]: Leaving directory '/usr/src/linux-headers-6.5.0-15-generic'
 make: *** [Makefile:81: modules] Error 2
DKMSKernelVersion: 6.5.0-15-generic
Date: Sat Feb 3 07:16:37 2024
DuplicateSignature: dkms:nvidia-kernel-source-390:390.157-0ubuntu0.22.04.2:/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:45: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
Package: nvidia-kernel-source-390 390.157-0ubuntu0.22.04.2
PackageVersion: 390.157-0ubuntu0.22.04.2
SourcePackage: nvidia-graphics-drivers-390
Title: nvidia-kernel-source-390 390.157-0ubuntu0.22.04.2: nvidia kernel module failed to build
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
Dependencies:
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2022-05-12 (631 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
PackageArchitecture: amd64
ProcCpuinfoMinimal:
 processor : 7
 vendor_id : GenuineIntel
 cpu family : 6
 model : 165
 model name : Intel(R) Core(TM) i3-10100F CPU @ 3.60GHz
 stepping : 3
 microcode : 0xf8
 cpu MHz : 4186.604
 cache size : 6144 KB
 physical id : 0
 siblings : 8
 core id : 3
 cpu cores : 4
 apicid : 7
 initial apicid : 7
 fpu : yes
 fpu_exception : yes
 cpuid level : 22
 wp : yes
 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp vnmi md_clear flush_l1d arch_capabilities
 vmx flags : vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple pml ept_mode_based_exec
 bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs itlb_multihit srbds mmio_stale_data retbleed eibrs_pbrsb gds
 bogomips : 7200.00
 clflush size : 64
 cache_alignment : 64
 address sizes : 39 bits physical, 48 bits virtual
 power management:
ProcVersionSignature: Ubuntu 6.5.0-15.15~22.04.1-generic 6.5.3
Python3Details: /usr/bin/python3.10, Python 3.10.12, python3-minimal, 3.10.6-1~22.04
PythonDetails: /usr/bin/python3.10, Python 3.10.12, unpackaged
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.2
 apt 2.4.11
Tags: jammy
Uname: Linux 6.5.0-15-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
_MarkForUpload: True

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: nvidia-dkms-390 390.157-0ubuntu0.22.04.2
ProcVersionSignature: Ubuntu 6.5.0-15.15~22.04.1-generic 6.5.3
Uname: Linux 6.5.0-15-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: pass
Date: Sat Feb 3 07:16:37 2024
ErrorMessage: installed nvidia-dkms-390 package post-installation script subprocess returned error exit status 10
InstallationDate: Installed on 2022-05-12 (631 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
Python3Details: /usr/bin/python3.10, Python 3.10.12, python3-minimal, 3.10.6-1~22.04
PythonDetails: /usr/bin/python3.10, Python 3.10.12, unpackaged
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.2
 apt 2.4.11
SourcePackage: nvidia-graphics-drivers-390
Title: package nvidia-dkms-390 390.157-0ubuntu0.22.04.2 failed to install/upgrade: installed nvidia-dkms-390 package post-installation script subprocess returned error exit status 10
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Konstantin (sibkestrel) wrote :
tags: removed: need-duplicate-check
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.