GoogleCloudPlatform / compute-gpu-installation

Apache License 2.0
76 stars 35 forks source link

Installation Fails on GCP VM Debian 11 Kernel 6.1.0-18-cloud-amd64 #33

Closed PavlyZaki closed 4 months ago

PavlyZaki commented 6 months ago

Describe the bug I tried running nvidia-smi today and it failed.

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

So, I went on the GCP documentation and downloaded the install_gpu_driver.py file.

When I run the file, I get this error:

[2024-03-11 17:34:36] Executing: which nvidia-smi

/usr/bin/nvidia-smi

[2024-03-11 17:34:36] Executing: nvidia-smi

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA 
driver is installed and running.

[2024-03-11 17:34:36] Executing: lspci -n

00:00.0 0600: 8086:1237 (rev 02)
00:01.0 0601: 8086:7110 (rev 03)
00:01.3 0680: 8086:7113 (rev 03)
00:03.0 0000: 1af4:1004
00:04.0 0302: 10de:1db1 (rev a1)
00:05.0 0200: 1af4:1000
00:06.0 00ff: 1af4:1005

[2024-03-11 17:34:36] Executing: lspci -n

00:00.0 0600: 8086:1237 (rev 02)
00:01.0 0601: 8086:7110 (rev 03)
00:01.3 0680: 8086:7113 (rev 03)
00:03.0 0000: 1af4:1004
00:04.0 0302: 10de:1db1 (rev a1)
00:05.0 0200: 1af4:1000
00:06.0 00ff: 1af4:1005

[2024-03-11 17:34:36] Executing: curl -fSsl -O https://us.download.nvidia.com/tesla/525.125.06/NVIDIA-Linux-x86_64-525.125.06.run

[2024-03-11 17:34:40] Executing: sh NVIDIA-Linux-x86_64-525.125.06.run -s --dkms  --no-cc-version-check        

ERROR: An error occurred while performing the step: "Building kernel modules". See /var/log/nvidia-installer.log for details.

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.

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.

Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 525.125.06...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................       

[2024-03-11 17:36:02] Executing: sh NVIDIA-Linux-x86_64-525.125.06.run -s --dkms  --no-cc-version-check        

ERROR: An error occurred while performing the step: "Building kernel modules". See /var/log/nvidia-installer.log for details.

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.

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.

Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 525.125.06...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................       

[2024-03-11 17:37:25] Executing: sh NVIDIA-Linux-x86_64-525.125.06.run -s --dkms  --no-cc-version-check        

ERROR: An error occurred while performing the step: "Building kernel modules". See /var/log/nvidia-installer.log for details.

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.

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.

Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 525.125.06................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 

Output of /var/log/nvidia-installer.log:

make[1]: Entering directory '/usr/src/linux-headers-6.1.0-18-common'
make[2]: Entering directory '/usr/src/linux-headers-6.1.0-18-cloud-amd64'
  SYMLINK /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-kernel.o
  SYMLINK /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-modeset/nv-modeset-kernel.o
 CONFTEST: hash__remap_4k_pfn
 CONFTEST: set_pages_uc
 CONFTEST: list_is_first
 CONFTEST: set_memory_uc
 CONFTEST: set_memory_array_uc
 CONFTEST: set_pages_array_uc
 CONFTEST: ioremap_cache
 CONFTEST: ioremap_wc
 CONFTEST: pci_get_domain_bus_and_slot
 CONFTEST: get_num_physpages
 CONFTEST: pde_data
 CONFTEST: xen_ioemu_inject_msi
 CONFTEST: phys_to_dma
 CONFTEST: get_dma_ops
 CONFTEST: dma_attr_macros
 CONFTEST: dma_map_page_attrs
 CONFTEST: write_cr4
 CONFTEST: of_find_node_by_phandle
 CONFTEST: of_node_to_nid
 CONFTEST: pnv_pci_get_npu_dev
 CONFTEST: of_get_ibm_chip_id
 CONFTEST: pci_bus_address
 CONFTEST: pci_stop_and_remove_bus_device
 CONFTEST: register_cpu_notifier
 CONFTEST: cpuhp_setup_state
 CONFTEST: dma_map_resource
 CONFTEST: get_backlight_device_by_name
 CONFTEST: timer_setup
 CONFTEST: pci_enable_msix_range
 CONFTEST: kernel_read_has_pointer_pos_arg
 CONFTEST: kernel_write_has_pointer_pos_arg
 CONFTEST: dma_direct_map_resource
 CONFTEST: tegra_get_platform
 CONFTEST: tegra_bpmp_send_receive
 CONFTEST: flush_cache_all
 CONFTEST: vmf_insert_pfn
 CONFTEST: jiffies_to_timespec
 CONFTEST: ktime_get_raw_ts64
 CONFTEST: ktime_get_real_ts64
 CONFTEST: full_name_hash
 CONFTEST: pci_enable_atomic_ops_to_root
 CONFTEST: vga_tryget
 CONFTEST: pgprot_decrypted
 CONFTEST: cc_mkdec
 CONFTEST: seq_read_iter
 CONFTEST: unsafe_follow_pfn
 CONFTEST: drm_gem_object_get
 CONFTEST: drm_gem_object_put_unlocked
 CONFTEST: add_memory_driver_managed
 CONFTEST: device_property_read_u64
 CONFTEST: devm_of_platform_populate
 CONFTEST: of_dma_configure
 CONFTEST: of_property_count_elems_of_size
 CONFTEST: of_property_read_variable_u8_array
 CONFTEST: i2c_new_client_device
 CONFTEST: i2c_unregister_device
 CONFTEST: of_get_named_gpio
 CONFTEST: devm_gpio_request_one
 CONFTEST: gpio_direction_input
 CONFTEST: gpio_direction_output
 CONFTEST: gpio_get_value
 CONFTEST: gpio_set_value
 CONFTEST: gpio_to_irq
 CONFTEST: icc_get
 CONFTEST: icc_put
 CONFTEST: icc_set_bw
 CONFTEST: dma_buf_export_args
 CONFTEST: dma_buf_ops_has_kmap
 CONFTEST: dma_buf_ops_has_kmap_atomic
 CONFTEST: dma_buf_ops_has_map
 CONFTEST: dma_buf_ops_has_map_atomic
 CONFTEST: dma_buf_has_dynamic_attachment
 CONFTEST: dma_buf_attachment_has_peer2peer
 CONFTEST: dma_set_mask_and_coherent
 CONFTEST: devm_clk_bulk_get_all
 CONFTEST: get_task_ioprio
 CONFTEST: mdev_set_iommu_device
 CONFTEST: wait_on_bit_lock_argument_count
 CONFTEST: radix_tree_empty
 CONFTEST: radix_tree_replace_slot
 CONFTEST: pnv_npu2_init_context
 CONFTEST: cpumask_of_node
 CONFTEST: ioasid_get
 CONFTEST: migrate_vma_setup
 CONFTEST: mmget_not_zero
 CONFTEST: acpi_video_backlight_use_native
 CONFTEST: drm_dev_unref
 CONFTEST: drm_reinit_primary_mode_group
 CONFTEST: get_user_pages_remote
 CONFTEST: get_user_pages
 CONFTEST: pin_user_pages_remote
 CONFTEST: pin_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_connector_has_vrr_capable_property
 CONFTEST: drm_framebuffer_get
 CONFTEST: drm_dev_put
 CONFTEST: drm_format_num_planes
 CONFTEST: drm_connector_for_each_possible_encoder
 CONFTEST: drm_rotation_available
 CONFTEST: drm_vma_offset_exact_lookup_locked
 CONFTEST: nvhost_dma_fence_unpack
 CONFTEST: is_export_symbol_gpl_of_node_to_nid
 CONFTEST: is_export_symbol_gpl_sme_active
 CONFTEST: is_export_symbol_present_swiotlb_map_sg_attrs
 CONFTEST: is_export_symbol_present_swiotlb_dma_ops
 CONFTEST: is_export_symbol_present___close_fd
 CONFTEST: is_export_symbol_present_close_fd
 CONFTEST: is_export_symbol_present_get_unused_fd
 CONFTEST: is_export_symbol_present_get_unused_fd_flags
 CONFTEST: is_export_symbol_present_nvhost_get_default_device
 CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_byte_offset
 CONFTEST: is_export_symbol_present_nvhost_syncpt_unit_interface_get_aperture
 CONFTEST: is_export_symbol_present_tegra_dce_register_ipc_client
 CONFTEST: is_export_symbol_present_tegra_dce_unregister_ipc_client
 CONFTEST: is_export_symbol_present_tegra_dce_client_ipc_send_recv
 CONFTEST: is_export_symbol_present_dram_clk_to_mc_clk
 CONFTEST: is_export_symbol_present_tegra_dram_types
 CONFTEST: is_export_symbol_present_get_dram_num_channels
 CONFTEST: is_export_symbol_present_pxm_to_node
 CONFTEST: is_export_symbol_present_screen_info
 CONFTEST: is_export_symbol_present_int_active_memcg
 CONFTEST: dma_ops
 CONFTEST: swiotlb_dma_ops
 CONFTEST: noncoherent_swiotlb_dma_ops
 CONFTEST: vm_fault_has_address
 CONFTEST: vm_insert_pfn_prot
 CONFTEST: vmf_insert_pfn_prot
 CONFTEST: vm_ops_fault_removed_vma_arg
 CONFTEST: vmbus_channel_has_ringbuffer_page
 CONFTEST: kmem_cache_has_kobj_remove_work
 CONFTEST: sysfs_slab_unlink
 CONFTEST: proc_ops
 CONFTEST: timespec64
 CONFTEST: vmalloc_has_pgprot_t_arg
 CONFTEST: mm_has_mmap_lock
 CONFTEST: pci_channel_state
 CONFTEST: pci_dev_has_ats_enabled
 CONFTEST: remove_memory_has_nid_arg
 CONFTEST: add_memory_driver_managed_has_mhp_flags_arg
 CONFTEST: num_registered_fb
 CONFTEST: pci_driver_has_driver_managed_dma
 CONFTEST: vm_area_struct_has_const_vm_flags
 CONFTEST: backing_dev_info
 CONFTEST: mm_context_t
 CONFTEST: vm_fault_t
 CONFTEST: mmu_notifier_ops_invalidate_range
 CONFTEST: migrate_vma_added_flags
 CONFTEST: make_device_exclusive_range
 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_helper_mode_fill_fb_struct
 CONFTEST: drm_master_drop_has_from_release_arg
 CONFTEST: drm_driver_unload_has_int_return_type
 CONFTEST: drm_atomic_helper_crtc_destroy_state_has_crtc_arg
 CONFTEST: drm_atomic_helper_plane_destroy_state_has_plane_arg
 CONFTEST: drm_mode_object_find_has_file_priv_arg
 CONFTEST: dma_buf_owner
 CONFTEST: drm_connector_list_iter
 CONFTEST: drm_atomic_helper_swap_state_has_stall_arg
 CONFTEST: drm_driver_prime_flag_present
 CONFTEST: drm_gem_object_has_resv
 CONFTEST: drm_crtc_state_has_async_flip
 CONFTEST: drm_crtc_state_has_pageflip_flags
 CONFTEST: drm_crtc_state_has_vrr_enabled
 CONFTEST: drm_format_modifiers_present
 CONFTEST: drm_vma_node_is_allowed_has_tag_arg
 CONFTEST: drm_vma_offset_node_has_readonly
 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: drm_crtc_state_has_no_vblank
 CONFTEST: drm_mode_config_has_allow_fb_modifiers
 CONFTEST: drm_has_hdr_output_metadata
 CONFTEST: dma_resv_add_fence
 CONFTEST: dma_resv_reserve_fences
 CONFTEST: reservation_object_reserve_shared_has_num_fences_arg
 CONFTEST: drm_connector_has_override_edid
 CONFTEST: drm_driver_has_dumb_destroy
 CONFTEST: dom0_kernel_present
 CONFTEST: nvidia_vgpu_kvm_build
 CONFTEST: nvidia_grid_build
 CONFTEST: nvidia_grid_csp_build
 CONFTEST: pm_runtime_available
 CONFTEST: pci_class_multimedia_hd_audio
 CONFTEST: drm_available
 CONFTEST: vfio_pci_core_available
 CONFTEST: drm_atomic_available
 CONFTEST: is_export_symbol_gpl_refcount_inc
 CONFTEST: is_export_symbol_gpl_refcount_dec_and_test
 CONFTEST: drm_alpha_blending_available
 CONFTEST: ib_peer_memory_symbols
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-pci.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-dmabuf.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-nano-timer.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-acpi.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-cray.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-dma.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-i2c.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-mmap.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-p2p.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-pat.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-procfs.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-usermap.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-vm.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-vtophys.o
/tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-mmap.c: In function 'nv_encode_caching':     
/tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-mmap.c:353:16: warning: this statement may fall through [-Wimplicit-fallthrough=]
  353 |             if (NV_ALLOW_CACHING(memory_type))
      |                ^
/tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-mmap.c:356:9: note: here
  356 |         default:
      |         ^~~~~~~
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/os-interface.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/os-mlock.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/os-pci.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/os-registry.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/os-usermap.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-modeset-interface.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-pci-table.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-kthread-q.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-memdbg.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-ibmnpu.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-report-err.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-rsync.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-msi.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-caps.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-frontend.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv_uvm_interface.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nvlink_linux.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nvlink_caps.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/linux_nvswitch.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/procfs_nvswitch.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/i2c_nvswitch.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_hopper.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_hopper_fault_buffer.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_hopper_ce.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_hopper_host.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_hopper_mmu.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_ada.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_common.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_linux.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/nvstatus.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/nvCpuUuid.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/nv-kthread-q.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/nv-kthread-q-selftest.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_tools.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_global.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_gpu.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_gpu_isr.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_procfs.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_va_space.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_va_space_mm.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_gpu_semaphore.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_mem.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_rm_mem.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_channel.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_lock.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_hal.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_range_tree.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_rb_tree.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_range_allocator.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_va_range.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_va_policy.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_va_block.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_range_group.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_gpu_replayable_faults.o       
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_gpu_non_replayable_faults.o   
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_gpu_access_counters.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_perf_events.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_perf_module.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_mmu.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_pte_batch.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_tlb_batch.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_push.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_pushbuffer.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_thread_context.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_tracker.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_maxwell.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_maxwell_host.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_maxwell_ce.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_maxwell_mmu.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_maxwell_fault_buffer.o        
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_maxwell_access_counter_buffer.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_pascal.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_pascal_ce.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_pascal_host.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_pascal_mmu.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_pascal_fault_buffer.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_volta_host.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_volta_mmu.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_volta.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_volta_fault_buffer.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_volta_access_counter_buffer.o 
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_turing.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_turing_access_counter_buffer.o  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_turing_fault_buffer.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_turing_mmu.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_turing_host.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_ampere.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_ampere_ce.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_ampere_host.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_ampere_mmu.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_policy.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_perf_utils.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_kvmalloc.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_pmm_sysmem.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_pmm_gpu.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_migrate.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_populate_pageable.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_migrate_pageable.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_map_external.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_user_channel.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_hmm.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_perf_heuristics.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_perf_thrashing.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_perf_prefetch.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_ats.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_ats_ibm.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_ats_faults.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_test_rng.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_range_tree_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_range_allocator_test.o        
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_gpu_semaphore_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_hmm_sanity_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_mem_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_rm_mem_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_page_tree_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_tracker_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_push_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_channel_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_ce_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_host_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_lock_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_perf_utils_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_kvmalloc_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_pmm_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_pmm_sysmem_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_perf_events_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_perf_module_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_get_rm_ptes_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_fault_buffer_flush_test.o     
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_peer_identity_mappings_test.o 
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_va_block_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_range_group_tree_test.o       
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_thread_context_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm/uvm_rb_tree_test.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-modeset/nvidia-modeset-linux.o        
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-modeset/nv-kthread-q.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-drv.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-utils.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-crtc.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-encoder.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-connector.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-gem.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-fb.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-modeset.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-prime-fence.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-linux.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-helper.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nv-pci-table.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-gem-nvkms-memory.o     
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-gem-user-memory.o      
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-gem-dma-buf.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm/nvidia-drm-format.o
  CC [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-peermem/nvidia-peermem.o
  LD [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia.o
ld -r -o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-interface.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-pci.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-dmabuf.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-nano-timer.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-acpi.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-cray.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-dma.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-i2c.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-mmap.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-p2p.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-pat.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-procfs.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-usermap.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-vm.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-vtophys.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/os-interface.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/os-mlock.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/os-pci.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/os-registry.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/os-usermap.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-modeset-interface.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-pci-table.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-kthread-q.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-memdbg.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-ibmnpu.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-report-err.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-rsync.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-msi.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-caps.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv-frontend.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nv_uvm_interface.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nvlink_linux.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/nvlink_caps.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/linux_nvswitch.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/procfs_nvswitch.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia/i2c_nvswitch.o
  LD [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-drm.o
  LD [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-uvm.o
ld -r -o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-modeset/nv-modeset-interface.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-modeset/nvidia-modeset-linux.o /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-modeset/nv-kthread-q.o
  LD [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-modeset.o
  LD [M]  /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/nvidia-peermem.o
  MODPOST /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/Module.symvers
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
make[3]: *** [/usr/src/linux-headers-6.1.0-18-common/scripts/Makefile.modpost:126: /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/Module.symvers] Error 1
make[3]: Target '__modpost' not remade because of errors.
make[2]: *** [/usr/src/linux-headers-6.1.0-18-common/Makefile:1991: modpost] Error 2
make[2]: Target 'modules' not remade because of errors.
make[2]: Leaving directory '/usr/src/linux-headers-6.1.0-18-cloud-amd64'
make[1]: *** [Makefile:250: __sub-make] Error 2
make[1]: Target 'modules' not remade because of errors.
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-18-common'
make: *** [Makefile:82: modules] Error 2
-> Checking to see whether the nvidia kernel module was successfully built
   executing: 'cd ./kernel; /usr/bin/make -k -j8  NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/6.1.0-18-cloud-amd64/source" SYSOUT="/lib/modules/6.1.0-18-cloud-amd64/build" NV_KERNEL_MODULES="nvidia"'...
   make[1]: Entering directory '/usr/src/linux-headers-6.1.0-18-common'
   make[2]: Entering directory '/usr/src/linux-headers-6.1.0-18-cloud-amd64'
     MODPOST /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/Module.symvers
   ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
   ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
   make[3]: *** [/usr/src/linux-headers-6.1.0-18-common/scripts/Makefile.modpost:126: /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/Module.symvers] Error 1
   make[3]: Target '__modpost' not remade because of errors.
   make[2]: *** [/usr/src/linux-headers-6.1.0-18-common/Makefile:1991: modpost] Error 2
   make[2]: Target 'modules' not remade because of errors.
   make[2]: Leaving directory '/usr/src/linux-headers-6.1.0-18-cloud-amd64'
   make[1]: *** [Makefile:250: __sub-make] Error 2
   make[1]: Target 'modules' not remade because of errors.
   make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-18-common'
   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 -j8  NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/6.1.0-18-cloud-amd64/source" SYSOUT="/lib/modules/6.1.0-18-cloud-amd64/build" NV_KERNEL_MODULES="nvidia"` failed with the following output:

make[1]: Entering directory '/usr/src/linux-headers-6.1.0-18-common'
make[2]: Entering directory '/usr/src/linux-headers-6.1.0-18-cloud-amd64'
  MODPOST /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/Module.symvers
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
make[3]: *** [/usr/src/linux-headers-6.1.0-18-common/scripts/Makefile.modpost:126: /tmp/selfgz121879/NVIDIA-Linux-x86_64-525.125.06/kernel/Module.symvers] Error 1
make[3]: Target '__modpost' not remade because of errors.
make[2]: *** [/usr/src/linux-headers-6.1.0-18-common/Makefile:1991: modpost] Error 2
make[2]: Target 'modules' not remade because of errors.
make[2]: Leaving directory '/usr/src/linux-headers-6.1.0-18-cloud-amd64'
make[1]: *** [Makefile:250: __sub-make] Error 2
make[1]: Target 'modules' not remade because of errors.
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-18-common'
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.

Output of dkms status:

nvidia/525.125.06: added

Output of lsmod | grep nvidia:

Output of sudo modprobe nvidia:

modprobe: FATAL: Module nvidia not found in directory /lib/modules/6.1.0-18-cloud-amd64

Environment

Please let me know if there's something I'm missing or should be doing differently. Thank you.

jminina commented 6 months ago

I had the same issue, turned out I had Debian 12, which theoretically is not supported by this script. If this is your case, just find a driver version compatible with your os and card, and put it in the script instead of 525.125.06

PavlyZaki commented 6 months ago

Thank you for your information @jminina. No, I am running Debian 11.

However, I did find a workaround:

  1. Remove the updated kernel (in my case, it was 6.1.0-18-cloud-amd64)
    apt remove linux-image-6.1.0-18-cloud-amd64

    Note: Needless to say, before running this command, make sure that you have other kernels installed and that the other kernels are bootable.

dpkg --list | grep linux-image
  1. Purge all Nvidia drivers

    apt purge "*nvidia*"
  2. Autoremove any broken packages

    apt autoremove
  3. Reboot

    systemctl reboot
  4. Re-install the GPU driver using the script

    python3 install_gpu_driver.py
  5. Verify that the driver is working properly now

    nvidia-smi

I know this is technically not a fix, but it's something to allow me to use the GPU till the main issue is fixed.

m-strzelczyk commented 4 months ago

Please use the new installer tool. We now use the releases page to manage versions.