← Back to team overview

graphics-drivers-testers team mailing list archive

nvidia kernel module 390.157 failed to build for kernel 6.8.0-35

 

Hi @all,

I'm currently trying to turn an old notebook into a gaming machine for the
kids.

A Geforce 9650m GT with 1GB (aka G96CM) is installed in the NB. Acording to
Nvidia the 340 driver (https://www.nvidia.com/de-de/drivers/details/156190/
) shoud work. Unforunally i installed xubuntu in the latest LTS version
24.04 with kernel 6.8.
And that's where the problems start...

On the wiki page of Ubuntu (
https://wiki.ubuntuusers.de/Grafikkarten/Nvidia/nvidia/) I found the
reference to this PPA. And there the request to* leave feedback *here (
https://launchpad.net/~graphics-drivers-testers).  I would like to do that.
I hope this is the right way to do; If not please say something!

So here is the actual Problem:

ben@KidsNB:~$ uname -a
Linux KidsNB 6.8.0-35-generic #35-Ubuntu SMP PREEMPT_DYNAMIC Mon May 20
15:51:52 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
 ben@KidsNB:~$ lspci | grep “VGA”
01:00.0 VGA compatible controller: NVIDIA Corporation G96CM [GeForce 9650M
GT] (rev a1)
 ben@KidsNB:~$sudo apt-get install nvidia-driver-390 nvidia-settings
...
...
update-initramfs: Generating /boot/initrd.img-6.8.0-35-generic
Errors occurred while editing :
 nvidia-dkms-390
 nvidia-driver-390
E: Sub-process /usr/bin/dpkg returned an error code (1)


Here is the corresponding error report:
ProblemType: Package
DKMSBuildLog:
 DKMS make.log for nvidia-390.157 for kernel 6.8.0-35-generic (x86_64)
 Mon Jun  3 23:27:21 CEST 2024
 make[1]: Verzeichnis „/usr/src/linux-headers-6.8.0-35-generic“ wird
betreten
 make --no-print-directory -C /usr/src/linux-headers-6.8.0-35-generic \
 -f /usr/src/linux-headers-6.8.0-35-generic/Makefile modules
 warning: the compiler differs from the one used to build the kernel
   The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu
13.2.0-23ubuntu4) 13.2.0
   You are using:           cc (Ubuntu 13.2.0-23ubuntu4) 13.2.0
 make -f ./scripts/Makefile.build obj=/var/lib/dkms/nvidia/390.157/build
need-builtin=1 need-modorder=1
 # cmd_mod /var/lib/dkms/nvidia/390.157/build/nvidia.mod
   printf '%s
 '   nvidia/nv-frontend.o nvidia/nv-instance.o nvidia/nv-gpu-numa.o
nvidia/nv.o nvidia/nv-acpi.o nvidia/nv-chrdev.o nvidia/nv-cray.o
nvidia/nv-dma.o nvidia/nv-gvi.o nvidia/nv-i2c.o nvidia/nv-mempool.o
nvidia/nv-mmap.o nvidia/nv-p2p.o nvidia/nv-pat.o nvidia/nv-procfs.o
nvidia/nv-usermap.o nvidia/nv-vm.o nvidia/nv-vtophys.o
nvidia/os-interface.o nvidia/os-mlock.o nvidia/os-pci.o
nvidia/os-registry.o nvidia/os-usermap.o nvidia/nv-modeset-interface.o
nvidia/nv-pci-table.o nvidia/nv-kthread-q.o nvidia/nv-kthread-q-selftest.o
nvidia/nv-memdbg.o nvidia/nv-ibmnpu.o nvidia/nv-report-err.o
nvidia/nv_uvm_interface.o nvidia/nvlink_linux.o nvidia/nv-kernel.o | awk
'!x[$0]++ { print("/var/lib/dkms/nvidia/390.157/build/"$0) }' >
/var/lib/dkms/nvidia/390.157/build/nvidia.mod
 # SYMLINK /var/lib/dkms/nvidia/390.157/build/nvidia/nv-kernel.o
   ln -sf /var/lib/dkms/nvidia/390.157/build/nvidia/nv-kernel.o_binary
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-kernel.o
 # cmd_mod /var/lib/dkms/nvidia/390.157/build/nvidia-uvm.mod
   printf '%s
 '   nvidia-uvm/uvm_utils.o nvidia-uvm/uvm_common.o nvidia-uvm/uvm_linux.o
nvidia-uvm/nvstatus.o nvidia-uvm/nvCpuUuid.o nvidia-uvm/uvm8.o
nvidia-uvm/uvm8_tools.o nvidia-uvm/uvm8_global.o nvidia-uvm/uvm8_gpu.o
nvidia-uvm/uvm8_gpu_isr.o nvidia-uvm/uvm8_procfs.o
nvidia-uvm/uvm8_va_space.o nvidia-uvm/uvm8_gpu_semaphore.o
nvidia-uvm/uvm8_mem.o nvidia-uvm/uvm8_rm_mem.o nvidia-uvm/uvm8_channel.o
nvidia-uvm/uvm8_lock.o nvidia-uvm/uvm8_hal.o nvidia-uvm/uvm8_rb_tree.o
nvidia-uvm/uvm8_range_tree.o nvidia-uvm/uvm8_range_allocator.o
nvidia-uvm/uvm8_va_range.o nvidia-uvm/uvm8_va_block.o
nvidia-uvm/uvm8_range_group.o nvidia-uvm/uvm8_gpu_replayable_faults.o
nvidia-uvm/uvm8_gpu_non_replayable_faults.o
nvidia-uvm/uvm8_gpu_access_counters.o nvidia-uvm/uvm8_perf_events.o
nvidia-uvm/uvm8_perf_module.o nvidia-uvm/uvm8_mmu.o
nvidia-uvm/uvm8_pte_batch.o nvidia-uvm/uvm8_tlb_batch.o
nvidia-uvm/uvm8_push.o nvidia-uvm/uvm8_pushbuffer.o
nvidia-uvm/uvm8_thread_context.o nvidia-uvm/uvm8_tracker.o
nvidia-uvm/uvm8_kepler.o nvidia-uvm/uvm8_kepler_ce.o
nvidia-uvm/uvm8_kepler_host.o nvidia-uvm/uvm8_kepler_mmu.o
nvidia-uvm/uvm8_maxwell.o nvidia-uvm/uvm8_maxwell_host.o
nvidia-uvm/uvm8_pascal.o nvidia-uvm/uvm8_pascal_ce.o
nvidia-uvm/uvm8_pascal_host.o nvidia-uvm/uvm8_pascal_mmu.o
nvidia-uvm/uvm8_pascal_fault_buffer.o nvidia-uvm/uvm8_volta_host.o
nvidia-uvm/uvm8_volta_mmu.o nvidia-uvm/uvm8_volta.o
nvidia-uvm/uvm8_volta_fault_buffer.o
nvidia-uvm/uvm8_volta_access_counter_buffer.o nvidia-uvm/uvm8_policy.o
nvidia-uvm/uvm8_perf_utils.o nvidia-uvm/uvm8_kvmalloc.o
nvidia-uvm/uvm8_pmm_sysmem.o nvidia-uvm/uvm8_pmm_gpu.o
nvidia-uvm/uvm8_migrate.o nvidia-uvm/uvm8_map_external.o
nvidia-uvm/uvm8_user_channel.o nvidia-uvm/uvm8_hmm.o
nvidia-uvm/uvm8_perf_heuristics.o nvidia-uvm/uvm8_perf_thrashing.o
nvidia-uvm/uvm8_perf_prefetch.o nvidia-uvm/uvm8_test.o
nvidia-uvm/uvm8_test_rng.o nvidia-uvm/uvm8_range_tree_test.o
nvidia-uvm/uvm8_range_allocator_test.o nvidia-uvm/uvm8_gpu_semaphore_test.o
nvidia-uvm/uvm8_mem_test.o nvidia-uvm/uvm8_rm_mem_test.o
nvidia-uvm/uvm8_page_tree_test.o nvidia-uvm/uvm8_tracker_test.o
nvidia-uvm/uvm8_push_test.o nvidia-uvm/uvm8_channel_test.o
nvidia-uvm/uvm8_ce_test.o nvidia-uvm/uvm8_lock_test.o
nvidia-uvm/uvm8_perf_utils_test.o nvidia-uvm/uvm8_kvmalloc_test.o
nvidia-uvm/uvm8_pmm_test.o nvidia-uvm/uvm8_pmm_sysmem_test.o
nvidia-uvm/uvm8_perf_events_test.o nvidia-uvm/uvm8_perf_module_test.o
nvidia-uvm/uvm8_get_rm_ptes_test.o
nvidia-uvm/uvm8_fault_buffer_flush_test.o nvidia-uvm/uvm8_mmu_test.o
nvidia-uvm/uvm8_peer_identity_mappings_test.o
nvidia-uvm/uvm8_va_block_test.o nvidia-uvm/uvm8_range_group_tree_test.o
nvidia-uvm/uvm8_rb_tree_test.o | awk '!x[$0]++ {
print("/var/lib/dkms/nvidia/390.157/build/"$0) }' >
/var/lib/dkms/nvidia/390.157/build/nvidia-uvm.mod
 # cmd_mod /var/lib/dkms/nvidia/390.157/build/nvidia-modeset.mod
   printf '%s
 '   nvidia-modeset/nvidia-modeset-linux.o
nvidia-modeset/nv-modeset-kernel.o | awk '!x[$0]++ {
print("/var/lib/dkms/nvidia/390.157/build/"$0) }' >
/var/lib/dkms/nvidia/390.157/build/nvidia-modeset.mod
 # SYMLINK
/var/lib/dkms/nvidia/390.157/build/nvidia-modeset/nv-modeset-kernel.o
   ln -sf
/var/lib/dkms/nvidia/390.157/build/nvidia-modeset/nv-modeset-kernel.o_binary
/var/lib/dkms/nvidia/390.157/build/nvidia-modeset/nv-modeset-kernel.o
 # cmd_mod /var/lib/dkms/nvidia/390.157/build/nvidia-drm.mod
   printf '%s
 '   nvidia-drm/nvidia-drm.o nvidia-drm/nvidia-drm-drv.o
nvidia-drm/nvidia-drm-utils.o nvidia-drm/nvidia-drm-crtc.o
nvidia-drm/nvidia-drm-encoder.o nvidia-drm/nvidia-drm-connector.o
nvidia-drm/nvidia-drm-gem.o nvidia-drm/nvidia-drm-fb.o
nvidia-drm/nvidia-drm-modeset.o nvidia-drm/nvidia-drm-prime-fence.o
nvidia-drm/nvidia-drm-linux.o nvidia-drm/nvidia-drm-helper.o
nvidia-drm/nv-pci-table.o nvidia-drm/nvidia-drm-gem-nvkms-memory.o
nvidia-drm/nvidia-drm-gem-user-memory.o | awk '!x[$0]++ {
print("/var/lib/dkms/nvidia/390.157/build/"$0) }' >
/var/lib/dkms/nvidia/390.157/build/nvidia-drm.mod
  CONFTEST: INIT_WORK
  CONFTEST: remap_pfn_range
  CONFTEST: hash__remap_4k_pfn
  CONFTEST: follow_pfn
  CONFTEST: vmap
  CONFTEST: set_pages_uc
  CONFTEST: list_is_first
  CONFTEST: set_memory_uc
  CONFTEST: set_memory_array_uc
  CONFTEST: change_page_attr
  CONFTEST: pci_get_class
  CONFTEST: pci_choose_state
  CONFTEST: vm_insert_page
  CONFTEST: acpi_device_id
  CONFTEST: acquire_console_sem
  CONFTEST: console_lock
  CONFTEST: kmem_cache_create
  CONFTEST: on_each_cpu
  CONFTEST: smp_call_function
  CONFTEST: acpi_evaluate_integer
  CONFTEST: ioremap_cache
  CONFTEST: ioremap_wc
  CONFTEST: acpi_walk_namespace
  CONFTEST: pci_domain_nr
  CONFTEST: dma_mapping_error
  CONFTEST: sg_alloc_table
  CONFTEST: sg_init_table
  CONFTEST: pci_get_domain_bus_and_slot
  CONFTEST: get_num_physpages
  CONFTEST: efi_enabled
  CONFTEST: proc_create_data
  CONFTEST: pde_data
  CONFTEST: PDE_DATA
  CONFTEST: proc_remove
  CONFTEST: pm_vt_switch_required
  CONFTEST: xen_ioemu_inject_msi
  CONFTEST: phys_to_dma
  CONFTEST: get_dma_ops
  CONFTEST: write_cr4
  CONFTEST: of_get_property
  CONFTEST: of_find_node_by_phandle
  CONFTEST: of_node_to_nid
  CONFTEST: pnv_pci_get_npu_dev
  CONFTEST: for_each_online_node
  CONFTEST: node_end_pfn
  CONFTEST: pci_bus_address
  CONFTEST: pci_stop_and_remove_bus_device
  CONFTEST: pci_remove_bus_device
  CONFTEST: request_threaded_irq
  CONFTEST: register_cpu_notifier
  CONFTEST: cpuhp_setup_state
  CONFTEST: dma_map_resource
  CONFTEST: backlight_device_register
  CONFTEST: register_acpi_notifier
  CONFTEST: timer_setup
  CONFTEST: kmem_cache_create_usercopy
  CONFTEST: do_gettimeofday
  CONFTEST: dma_direct_map_resource
  CONFTEST: vmf_insert_pfn
  CONFTEST: jiffies_to_timespec
  CONFTEST: ktime_get_raw_ts64
  CONFTEST: ktime_get_real_ts64
  CONFTEST: ioremap_nocache
  CONFTEST: vga_tryget
  CONFTEST: unsafe_follow_pfn
  CONFTEST: acpi_bus_get_device
  CONFTEST: acpi_video_backlight_use_native
  CONFTEST: remap_page_range
  CONFTEST: address_space_init_once
  CONFTEST: kbasename
  CONFTEST: fatal_signal_pending
  CONFTEST: list_cut_position
  CONFTEST: vzalloc
  CONFTEST: wait_on_bit_lock_argument_count
  CONFTEST: bitmap_clear
  CONFTEST: usleep_range
  CONFTEST: radix_tree_empty
  CONFTEST: radix_tree_replace_slot
  CONFTEST: drm_dev_unref
  CONFTEST: drm_reinit_primary_mode_group
  CONFTEST: get_user_pages_remote
  CONFTEST: get_user_pages
  CONFTEST: drm_gem_object_lookup
  CONFTEST: drm_atomic_state_ref_counting
  CONFTEST: drm_driver_has_gem_prime_res_obj
  CONFTEST: drm_atomic_helper_connector_dpms
  CONFTEST: drm_connector_funcs_have_mode_in_name
  CONFTEST: drm_framebuffer_get
  CONFTEST: drm_gem_object_get
  CONFTEST: drm_dev_put
  CONFTEST: drm_connector_for_each_possible_encoder
  CONFTEST: drm_gem_object_put_unlocked
  CONFTEST: is_export_symbol_gpl_of_node_to_nid
  CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
  CONFTEST: is_export_symbol_present_swiotlb_dma_ops
  CONFTEST: i2c_adapter
  CONFTEST: pm_message_t
  CONFTEST: irq_handler_t
  CONFTEST: acpi_device_ops
  CONFTEST: acpi_op_remove
  CONFTEST: outer_flush_all
  CONFTEST: proc_dir_entry
  CONFTEST: scatterlist
  CONFTEST: sg_table
  CONFTEST: file_operations
  CONFTEST: vm_operations_struct
  CONFTEST: atomic_long_type
  CONFTEST: pci_save_state
  CONFTEST: file_inode
  CONFTEST: task_struct
  CONFTEST: kuid_t
  CONFTEST: dma_ops
  CONFTEST: swiotlb_dma_ops
  CONFTEST: dma_map_ops
  CONFTEST: noncoherent_swiotlb_dma_ops
  CONFTEST: vm_fault_present
  CONFTEST: vm_fault_has_address
  CONFTEST: kernel_write
  CONFTEST: strnstr
  CONFTEST: iterate_dir
  CONFTEST: kstrtoull
  CONFTEST: backlight_properties_type
  CONFTEST: proc_ops
  CONFTEST: timeval
  CONFTEST: mm_has_mmap_lock
  CONFTEST: kmem_cache_has_kobj_remove_work
  CONFTEST: sysfs_slab_unlink
  CONFTEST: vmalloc_has_pgprot_t_arg
  CONFTEST: pci_dev_has_skip_bus_pm
  CONFTEST: pci_channel_state
  CONFTEST: fault_flags
  CONFTEST: atomic64_type
  CONFTEST: address_space
  CONFTEST: backing_dev_info
  CONFTEST: mm_context_t
  CONFTEST: vm_ops_fault_removed_vma_arg
  CONFTEST: vm_fault_t
  CONFTEST: pnv_npu2_init_context
  CONFTEST: drm_bus_present
  CONFTEST: drm_bus_has_bus_type
  CONFTEST: drm_bus_has_get_irq
  CONFTEST: drm_bus_has_get_name
  CONFTEST: drm_driver_has_device_list
  CONFTEST: drm_driver_has_legacy_dev_list
  CONFTEST: drm_driver_has_set_busid
  CONFTEST: drm_crtc_state_has_connectors_changed
  CONFTEST: drm_init_function_args
  CONFTEST: drm_mode_connector_list_update_has_merge_type_bits_arg
  CONFTEST: drm_helper_mode_fill_fb_struct
  CONFTEST: drm_master_drop_has_from_release_arg
  CONFTEST: drm_driver_unload_has_int_return_type
  CONFTEST: kref_has_refcount_of_type_refcount_t
  CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
  CONFTEST: drm_mode_object_find_has_file_priv_arg
  CONFTEST: drm_connector_list_iter
  CONFTEST: drm_atomic_helper_swap_state_has_stall_arg
  CONFTEST: drm_driver_prime_flag_present
  CONFTEST: drm_gem_prime_export_has_dev_arg
  CONFTEST: drm_gem_object_has_resv
  CONFTEST: drm_display_mode_has_vrefresh
  CONFTEST: drm_driver_master_set_has_int_return_type
  CONFTEST: drm_driver_has_gem_free_object
  CONFTEST: drm_prime_pages_to_sg_has_drm_device_arg
  CONFTEST: drm_driver_has_gem_prime_callbacks
  CONFTEST: drm_crtc_atomic_check_has_atomic_state_arg
  CONFTEST: drm_gem_object_vmap_has_map_arg
  CONFTEST: drm_plane_atomic_check_has_atomic_state_arg
  CONFTEST: drm_device_has_pdev
  CONFTEST: dma_resv_add_fence
  CONFTEST: dma_resv_reserve_fences
  CONFTEST: reservation_object_reserve_shared_has_num_fences_arg
  CONFTEST: dom0_kernel_present
  CONFTEST: nvidia_vgpu_kvm_build
  CONFTEST: nvidia_grid_build
  CONFTEST: drm_available
  CONFTEST: drm_atomic_available
  CONFTEST: is_export_symbol_gpl_refcount_inc
  CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
 # CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.o
   cc -Wp,-MMD,/var/lib/dkms/nvidia/390.157/build/nvidia/.nv-frontend.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 -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 -O2
-fno-allow-store-data-races -fstack-protector-strong
-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 -fstrict-flex-arrays=3
-fno-strict-overflow -fno-stack-check -fconserve-stack -Wall -Wundef
-Werror=implicit-function-declaration -Werror=implicit-int
-Werror=return-type -Werror=strict-prototypes -Wno-format-security
-Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member
-Wmissing-declarations -Wmissing-prototypes -Wframe-larger-than=1024
-Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable
-Wno-dangling-pointer -Wvla -Wno-pointer-sign -Wcast-function-type
-Wno-stringop-overflow -Wno-array-bounds -Wno-alloc-size-larger-than
-Wimplicit-fallthrough=5 -Werror=date-time
-Werror=incompatible-pointer-types -Werror=designated-init
-Wenum-conversion -Wno-unused-but-set-variable -Wno-unused-const-variable
-Wno-restrict -Wno-packed-not-aligned -Wno-format-overflow
-Wno-format-truncation -Wno-stringop-truncation
-Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value
-Wno-maybe-uninitialized -Wno-sign-compare -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_frontend"' -DKBUILD_MODNAME='"nvidia"'
-D__KBUILD_MODNAME=kmod_nvidia -c -o
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.o
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.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-frontend.o
 # CC [M]  /var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.o
   cc -Wp,-MMD,/var/lib/dkms/nvidia/390.157/build/nvidia/.nv-instance.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 -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 -O2
-fno-allow-store-data-races -fstack-protector-strong
-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 -fstrict-flex-arrays=3
-fno-strict-overflow -fno-stack-check -fconserve-stack -Wall -Wundef
-Werror=implicit-function-declaration -Werror=implicit-int
-Werror=return-type -Werror=strict-prototypes -Wno-format-security
-Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member
-Wmissing-declarations -Wmissing-prototypes -Wframe-larger-than=1024
-Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable
-Wno-dangling-pointer -Wvla -Wno-pointer-sign -Wcast-function-type
-Wno-stringop-overflow -Wno-array-bounds -Wno-alloc-size-larger-than
-Wimplicit-fallthrough=5 -Werror=date-time
-Werror=incompatible-pointer-types -Werror=designated-init
-Wenum-conversion -Wno-unused-but-set-variable -Wno-unused-const-variable
-Wno-restrict -Wno-packed-not-aligned -Wno-format-overflow
-Wno-format-truncation -Wno-stringop-truncation
-Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value
-Wno-maybe-uninitialized -Wno-sign-compare -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_instance"' -DKBUILD_MODNAME='"nvidia"'
-D__KBUILD_MODNAME=kmod_nvidia -c -o
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.o
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.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-instance.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-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 *
 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:2440:46: note: expected ‘struct mm_struct *’ but
argument is of type ‘struct task_struct *’
  2440 | 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 *
 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 *
 ./include/linux/mm.h:2441:42: note: expected ‘long unsigned int’ but
argument is of type ‘struct mm_struct *’
  2441 |                            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
 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:2440:46: note: expected ‘struct mm_struct *’ but
argument is of type ‘struct task_struct *’
  2440 | 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:2442:66: note: expected ‘struct page **’ but argument
is of type ‘unsigned int’
  2442 |                            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:2441:42: note: expected ‘long unsigned int’ but
argument is of type ‘struct mm_struct *’
  2441 |                            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:2443:33: note: expected ‘int *’ but argument is of
type ‘struct page **’
  2443 |                            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:2442:66: note: expected ‘struct page **’ but argument
is of type ‘unsigned int’
  2442 |                            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:2440:6: note: declared here
  2440 | long get_user_pages_remote(struct mm_struct *mm,
       |      ^~~~~~~~~~~~~~~~~~~~~
 ./include/linux/mm.h:2443:33: note: expected ‘int *’ but argument is of
type ‘struct page **’
  2443 |                            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:2440:6: note: declared here
  2440 | long get_user_pages_remote(struct mm_struct *mm,
       |      ^~~~~~~~~~~~~~~~~~~~~
 /var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.c: At top level:
 /var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.c:68:1: warning: no
previous prototype for ‘nv_pci_register_driver’ [-Wmissing-prototypes]
    68 | nv_pci_register_driver(
       | ^~~~~~~~~~~~~~~~~~~~~~
 cc1: some warnings being treated as errors
 make[3]: *** [scripts/Makefile.build:243:
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.o] Fehler 1
 make[3]: *** Auf noch nicht beendete Prozesse wird gewartet …
 cc1: some warnings being treated as errors
 make[3]: *** [scripts/Makefile.build:243:
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.o] Fehler 1
 make[2]: *** [/usr/src/linux-headers-6.8.0-35-generic/Makefile:1926:
/var/lib/dkms/nvidia/390.157/build] Fehler 2
 make[1]: *** [Makefile:240: __sub-make] Fehler 2
 make[1]: Verzeichnis „/usr/src/linux-headers-6.8.0-35-generic“ wird
verlassen
 make: *** [Makefile:81: modules] Fehler 2
DKMSKernelVersion: 6.8.0-35-generic
Date: Mon Jun  3 23:28:23 2024
DuplicateSignature:
dkms:nvidia-kernel-source-390:390.157-0ubuntu7:/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-0ubuntu7
PackageVersion: 390.157-0ubuntu7
SourcePackage: nvidia-graphics-drivers-390
Title: nvidia-kernel-source-390 390.157-0ubuntu7: nvidia kernel module
failed to build


Anything else i should do/try?

Best Wishes
Benjamin