NVIDIA driver error: assignment of read-only member ‘vm_flags’ | pressku.com

Trending 1 month ago

I installed NVIDIA driver based connected this suggesiton utilizing nan pursuing command:

sudo ubuntu-drivers autoinstall

The supra bid installed nvidia-driver-535 (535.154.05-0ubuntu0.22.04.1) and different tools. Next, I tried installing CUDA but nan installer throws nan pursuing error:

Loading caller nvidia-520.61.05 DKMS files... Building for 6.2.0-39-generic 6.5.0-18-generic Building for architecture x86_64 Building first module for 6.2.0-39-generic ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-dkms-520.0.crash' Error! Bad return position for module build connected kernel: 6.2.0-39-generic (x86_64) Consult /var/lib/dkms/nvidia/520.61.05/build/make.log for much information.

I looked astatine nan clang record and recovered nan pursuing errors:

/var/lib/dkms/nvidia/520.61.05/build/nvidia/nv-mmap.c: In usability ‘nvidia_mmap_numa’: /var/lib/dkms/nvidia/520.61.05/build/nvidia/nv-mmap.c:446:19: error: duty of read-only personnel ‘vm_flags’ 446 | vma->vm_flags |= VM_MIXEDMAP; | ^~ /var/lib/dkms/nvidia/520.61.05/build/nvidia/nv-mmap.c: In usability ‘nvidia_mmap_helper’:

The crash and log files are uploaded to Pastebin.

Below is nan enviroment information:

$ lspci | grep -i nvidia 01:00.0 VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3090] (rev a1) 01:00.1 Audio device: NVIDIA Corporation GA102 High Definition Audio Controller (rev a1) $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy $ ldd --version ldd (Ubuntu GLIBC 2.35-0ubuntu3.6) 2.35 Copyright (C) 2022 Free Software Foundation, Inc. This is free software; spot nan root for copying conditions. There is NO warranty; not moreover for MERCHANTABILITY aliases FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper. $ gcc --version gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 Copyright (C) 2021 Free Software Foundation, Inc. This is free software; spot nan root for copying conditions. There is NO warranty; not moreover for MERCHANTABILITY aliases FITNESS FOR A PARTICULAR PURPOSE. $ uname -a Linux asus 6.2.0-39-generic #40~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 16 10:53:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux $ nvidia-detector nvidia-driver-545 $ echo $XDG_SESSION_TYPE wayland

I recovered that this rumor has been reported astatine here, here, and here. but they reported it pinch kernel 6.3, nevertheless I americium utilizing 6.2.

What is nan workaround?

More
close