[已解决]警告:Debian 12.5 更新中新内核 linux-image-6.1.0-18-amd64 将导致 nvidia-driver 的 dkms 模块构建失败

内容不全看不出来问题出在哪

Setting up libgles-nvidia2:amd64 (535.161.08-2~deb12u1) ...

Setting up nvidia-driver-bin (535.161.08-2~deb12u1) ...

Setting up nvidia-persistenced (535.171.04-1~deb12u1) ...

Created symlink /etc/systemd/system/multi-user.target.wants/nvidia-persistenced.service -> /lib/systemd/system/nvidia-persistenced.service.

Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 145.

Setting up libcuda1:amd64 (535.161.08-2~deb12u1) ...

Setting up nvidia-egl-icd:amd64 (535.161.08-2~deb12u1) ...

Setting up nvidia-driver-libs:amd64 (535.161.08-2~deb12u1) ...

Setting up libnvcuvid1:amd64 (535.161.08-2~deb12u1) ...

Setting up libnvidia-encode1:amd64 (535.161.08-2~deb12u1) ...

Processing triggers for nvidia-alternative (535.161.08-2~deb12u1) ...

update-alternatives: updating alternative /usr/lib/nvidia/current because link group nvidia has changed slave links

Setting up nvidia-kernel-dkms (535.161.08-2~deb12u1) ...

Loading new nvidia-current-535.161.08 DKMS files...

Building for 6.1.0-21-amd64

Building initial module for 6.1.0-21-amd64

Error! Bad return status for module build on kernel: 6.1.0-21-amd64 (x86_64)

Consult /var/lib/dkms/nvidia-current/535.161.08/build/make.log for more information.

dpkg: error processing package nvidia-kernel-dkms (--configure):

installed nvidia-kernel-dkms package post-installation script subprocess returned error exit status 10

dpkg: dependency problems prevent configuration of nvidia-driver:

nvidia-driver depends on nvidia-kernel-dkms (= 535.161.08-2~deb12u1) | nvidia-kernel-535.161.08 | nvidia-open-kernel-535.161.08; however:

Package nvidia-kernel-dkms is not configured yet.

Package nvidia-kernel-535.161.08 is not installed.

Package nvidia-kernel-dkms which provides nvidia-kernel-535.161.08 is not configured yet.

Package nvidia-open-kernel-535.161.08 is not installed.

dpkg: error processing package nvidia-driver (--configure):

dependency problems - leaving unconfigured

Processing triggers for libc-bin (2.36-9+deb12u7) ...

Processing triggers for initramfs-tools (0.142) ...

update-initramfs: Generating /boot/initrd.img-6.1.0-21-amd64

Processing triggers for update-glx (1.2.2) ...

Processing triggers for glx-alternative-nvidia (1.2.2) ...

update-alternatives: using /usr/lib/nvidia to provide /usr/lib/glx (glx) in auto mode

Processing triggers for glx-alternative-mesa (1.2.2) ...

Processing triggers for libc-bin (2.36-9+deb12u7) ...

Processing triggers for initramfs-tools (0.142) ...

update-initramfs: Generating /boot/initrd.img-6.1.0-21-amd64

Unpacking nvidia-installer-cleanup (20220217+3~deb12u1) …
Setting up nvidia-installer-cleanup (20220217+3~deb12u1) …

WARNING: The ‘–no-runlevel-check’ option is deprecated: nvidia-installer will ignore this option.

Welcome to the NVIDIA Software Installer for Unix/Linux

Detected 16 CPUs online; setting concurrency level to 16.
If you plan to no longer use the NVIDIA driver, you should make sure that no X screens are configured to use the NVIDIA X driver in your X configuration file. If you used nvidia-xconfig to configure
X, it may have created a backup of your original configuration. Would you like to run nvidia-xconfig --restore-original-backup to attempt restoration of the original X configuration file? (Answer:
No)
Parsing log file:
Parsing: [##############################] 100%
Validating previous installation:
Validating: [##############################] 100%
Uninstalling NVIDIA Accelerated Graphics Driver for Linux-x86_64 (1.0-47018203 (470.182.03)):
Uninstalling: [################ ] 50%
WARNING: Failed to delete some directories. See /var/log/nvidia-uninstall.log for details.

Uninstalling: [##############################] 100%
Running depmod and ldconfig:
done.
Running /usr/bin/systemctl daemon-reload:
done.

Uninstallation of existing driver: NVIDIA Accelerated Graphics Driver for Linux-x86_64 (470.182.03) is complete.

Selecting previously unselected package glx-diversions.
(Reading database … 218752 files and directories currently installed.)
Preparing to unpack …/glx-diversions_1.2.2_amd64.deb …
Unpacking glx-diversions (1.2.2) …
Selecting previously unselected package glx-alternative-nvidia.
Preparing to unpack …/glx-alternative-nvidia_1.2.2_amd64.deb …
Unpacking glx-alternative-nvidia (1.2.2) …
Selecting previously unselected package nvidia-legacy-check.
Preparing to unpack …/nvidia-legacy-check_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-legacy-check (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-support.
Preparing to unpack …/nvidia-support_20220217+3~deb12u1_amd64.deb …
Unpacking nvidia-support (20220217+3~deb12u1) …
Setting up nvidia-legacy-check (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-alternative.
(Reading database … 218795 files and directories currently installed.)
Preparing to unpack …/00-nvidia-alternative_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-alternative (535.161.08-2~deb12u1) …
Selecting previously unselected package libnvidia-ptxjitcompiler1:amd64.
Preparing to unpack …/01-libnvidia-ptxjitcompiler1_535.161.08-2~deb12u1_amd64.deb …
Unpacking libnvidia-ptxjitcompiler1:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package libnvidia-pkcs11-openssl3:amd64.
Preparing to unpack …/02-libnvidia-pkcs11-openssl3_535.161.08-2~deb12u1_amd64.deb …
Unpacking libnvidia-pkcs11-openssl3:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package libcuda1:amd64.
Preparing to unpack …/03-libcuda1_535.161.08-2~deb12u1_amd64.deb …
Unpacking libcuda1:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package libnvidia-glvkspirv:amd64.
Preparing to unpack …/04-libnvidia-glvkspirv_535.161.08-2~deb12u1_amd64.deb …
Unpacking libnvidia-glvkspirv:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package libnvidia-eglcore:amd64.
Preparing to unpack …/05-libnvidia-eglcore_535.161.08-2~deb12u1_amd64.deb …
Unpacking libnvidia-eglcore:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package libnvidia-glcore:amd64.
Preparing to unpack …/06-libnvidia-glcore_535.161.08-2~deb12u1_amd64.deb …
Unpacking libnvidia-glcore:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package libglx-nvidia0:amd64.
Preparing to unpack …/07-libglx-nvidia0_535.161.08-2~deb12u1_amd64.deb …
Unpacking libglx-nvidia0:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package libgl1-nvidia-glvnd-glx:amd64.
Preparing to unpack …/08-libgl1-nvidia-glvnd-glx_535.161.08-2~deb12u1_amd64.deb …
Unpacking libgl1-nvidia-glvnd-glx:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-egl-common.
Preparing to unpack …/09-nvidia-egl-common_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-egl-common (535.161.08-2~deb12u1) …
Selecting previously unselected package libegl-nvidia0:amd64.
Preparing to unpack …/10-libegl-nvidia0_535.161.08-2~deb12u1_amd64.deb …
Unpacking libegl-nvidia0:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-egl-icd:amd64.
Preparing to unpack …/11-nvidia-egl-icd_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-egl-icd:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-driver-libs:amd64.
Preparing to unpack …/12-nvidia-driver-libs_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-driver-libs:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package libnvidia-ml1:amd64.
Preparing to unpack …/13-libnvidia-ml1_535.161.08-2~deb12u1_amd64.deb …
Unpacking libnvidia-ml1:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-driver-bin.
Preparing to unpack …/14-nvidia-driver-bin_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-driver-bin (535.161.08-2~deb12u1) …
Selecting previously unselected package xserver-common.
Preparing to unpack …/15-xserver-common_2%3a21.1.7-3+deb12u7_all.deb …
Unpacking xserver-common (2:21.1.7-3+deb12u7) …
Selecting previously unselected package libxcvt0:amd64.
Preparing to unpack …/16-libxcvt0_0.1.2-1_amd64.deb …
Unpacking libxcvt0:amd64 (0.1.2-1) …
Selecting previously unselected package libxfont2:amd64.
Preparing to unpack …/17-libxfont2_1%3a2.0.6-1_amd64.deb …
Unpacking libxfont2:amd64 (1:2.0.6-1) …
Selecting previously unselected package xserver-xorg-core.
Preparing to unpack …/18-xserver-xorg-core_2%3a21.1.7-3+deb12u7_amd64.deb …
Unpacking xserver-xorg-core (2:21.1.7-3+deb12u7) …
Selecting previously unselected package xserver-xorg-video-nvidia.
Preparing to unpack …/19-xserver-xorg-video-nvidia_535.161.08-2~deb12u1_amd64.deb …
Unpacking xserver-xorg-video-nvidia (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-vdpau-driver:amd64.
Preparing to unpack …/20-nvidia-vdpau-driver_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-vdpau-driver:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package firmware-nvidia-gsp.
Preparing to unpack …/21-firmware-nvidia-gsp_535.161.08-2~deb12u1_amd64.deb …
Unpacking firmware-nvidia-gsp (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-kernel-common.
Preparing to unpack …/22-nvidia-kernel-common_20220217+3~deb12u1_amd64.deb …
Unpacking nvidia-kernel-common (20220217+3~deb12u1) …
Selecting previously unselected package nvidia-modprobe.
Preparing to unpack …/23-nvidia-modprobe_535.161.07-1~deb12u1_amd64.deb …
Unpacking nvidia-modprobe (535.161.07-1~deb12u1) …
Selecting previously unselected package nvidia-kernel-support.
Preparing to unpack …/24-nvidia-kernel-support_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-kernel-support (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-kernel-dkms.
Preparing to unpack …/25-nvidia-kernel-dkms_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-kernel-dkms (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-driver.
Preparing to unpack …/26-nvidia-driver_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-driver (535.161.08-2~deb12u1) …
Selecting previously unselected package libnvidia-cfg1:amd64.
Preparing to unpack …/27-libnvidia-cfg1_535.161.08-2~deb12u1_amd64.deb …
Unpacking libnvidia-cfg1:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-persistenced.
Preparing to unpack …/28-nvidia-persistenced_535.171.04-1~deb12u1_amd64.deb …
Unpacking nvidia-persistenced (535.171.04-1~deb12u1) …
Selecting previously unselected package nvidia-settings.
Preparing to unpack …/29-nvidia-settings_535.171.04-1~deb12u1_amd64.deb …
Unpacking nvidia-settings (535.171.04-1~deb12u1) …
Selecting previously unselected package libgles1:amd64.
Preparing to unpack …/30-libgles1_1.6.0-1_amd64.deb …
Unpacking libgles1:amd64 (1.6.0-1) …
Selecting previously unselected package libgles-nvidia1:amd64.
Preparing to unpack …/31-libgles-nvidia1_535.161.08-2~deb12u1_amd64.deb …
Unpacking libgles-nvidia1:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package libgles-nvidia2:amd64.
Preparing to unpack …/32-libgles-nvidia2_535.161.08-2~deb12u1_amd64.deb …
Unpacking libgles-nvidia2:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package libnvcuvid1:amd64.
Preparing to unpack …/33-libnvcuvid1_535.161.08-2~deb12u1_amd64.deb …
Unpacking libnvcuvid1:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package libnvidia-allocator1:amd64.
Preparing to unpack …/34-libnvidia-allocator1_535.161.08-2~deb12u1_amd64.deb …
Unpacking libnvidia-allocator1:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package libnvidia-egl-gbm1:amd64.
Preparing to unpack …/35-libnvidia-egl-gbm1_1.1.0-2_amd64.deb …
Unpacking libnvidia-egl-gbm1:amd64 (1.1.0-2) …
Selecting previously unselected package libnvidia-encode1:amd64.
Preparing to unpack …/36-libnvidia-encode1_535.161.08-2~deb12u1_amd64.deb …
Unpacking libnvidia-encode1:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package libnvidia-rtcore:amd64.
Preparing to unpack …/37-libnvidia-rtcore_535.161.08-2~deb12u1_amd64.deb …
Unpacking libnvidia-rtcore:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-smi.
Preparing to unpack …/38-nvidia-smi_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-smi (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-suspend-common.
Preparing to unpack …/39-nvidia-suspend-common_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-suspend-common (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-vulkan-common.
Preparing to unpack …/40-nvidia-vulkan-common_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-vulkan-common (535.161.08-2~deb12u1) …
Selecting previously unselected package nvidia-vulkan-icd:amd64.
Preparing to unpack …/41-nvidia-vulkan-icd_535.161.08-2~deb12u1_amd64.deb …
Unpacking nvidia-vulkan-icd:amd64 (535.161.08-2~deb12u1) …
Selecting previously unselected package xcvt.
Preparing to unpack …/42-xcvt_0.1.2-1_amd64.deb …
Unpacking xcvt (0.1.2-1) …
Selecting previously unselected package xfonts-base.
Preparing to unpack …/43-xfonts-base_1%3a1.0.5+nmu1_all.deb …
Unpacking xfonts-base (1:1.0.5+nmu1) …
Setting up nvidia-support (20220217+3~deb12u1) …
Setting up libnvidia-glvkspirv:amd64 (535.161.08-2~deb12u1) …
Setting up libnvidia-eglcore:amd64 (535.161.08-2~deb12u1) …
Setting up nvidia-egl-common (535.161.08-2~deb12u1) …
Setting up nvidia-kernel-common (20220217+3~deb12u1) …
Setting up libnvidia-allocator1:amd64 (535.161.08-2~deb12u1) …
Setting up update-glx (1.2.2) …
Setting up nvidia-modprobe (535.161.07-1~deb12u1) …
Setting up xfonts-base (1:1.0.5+nmu1) …
Setting up libgles1:amd64 (1.6.0-1) …
Setting up libnvidia-glcore:amd64 (535.161.08-2~deb12u1) …
Setting up libnvidia-ptxjitcompiler1:amd64 (535.161.08-2~deb12u1) …
Setting up nvidia-vulkan-common (535.161.08-2~deb12u1) …
Setting up firmware-nvidia-gsp (535.161.08-2~deb12u1) …
Setting up libxcvt0:amd64 (0.1.2-1) …
Setting up xserver-common (2:21.1.7-3+deb12u7) …
Setting up libxfont2:amd64 (1:2.0.6-1) …
Setting up libnvidia-egl-gbm1:amd64 (1.1.0-2) …
Setting up libnvidia-rtcore:amd64 (535.161.08-2~deb12u1) …
Setting up nvidia-suspend-common (535.161.08-2~deb12u1) …
Setting up xserver-xorg-core (2:21.1.7-3+deb12u7) …
Setting up glx-alternative-mesa (1.2.2) …
Setting up xcvt (0.1.2-1) …
Setting up glx-diversions (1.2.2) …
update-alternatives: using /usr/lib/mesa-diverted to provide /usr/lib/glx (glx) in auto mode
Processing triggers for fontconfig (2.14.1-4) …
Processing triggers for desktop-file-utils (0.26-1) …
Processing triggers for initramfs-tools (0.142) …
update-initramfs: Generating /boot/initrd.img-6.1.0-21-amd64
Processing triggers for hicolor-icon-theme (0.17-2) …
Processing triggers for gnome-menus (3.36.0-1.1) …
Processing triggers for libc-bin (2.36-9+deb12u7) …
Processing triggers for man-db (2.11.2-2) …
Processing triggers for mailcap (3.70+nmu1) …
Processing triggers for glx-alternative-mesa (1.2.2) …
update-alternatives: updating alternative /usr/lib/mesa-diverted because link group glx has changed slave links
Setting up glx-alternative-nvidia (1.2.2) …
Processing triggers for glx-alternative-nvidia (1.2.2) …
Setting up nvidia-alternative (535.161.08-2~deb12u1) …
Processing triggers for nvidia-alternative (535.161.08-2~deb12u1) …
update-alternatives: using /usr/lib/nvidia/current to provide /usr/lib/nvidia/nvidia (nvidia) in auto mode
Setting up libnvidia-ml1:amd64 (535.161.08-2~deb12u1) …
Setting up libnvidia-cfg1:amd64 (535.161.08-2~deb12u1) …
Setting up libglx-nvidia0:amd64 (535.161.08-2~deb12u1) …
Setting up nvidia-kernel-support (535.161.08-2~deb12u1) …
Setting up xserver-xorg-video-nvidia (535.161.08-2~deb12u1) …
Setting up nvidia-vulkan-icd:amd64 (535.161.08-2~deb12u1) …
Setting up libnvidia-pkcs11-openssl3:amd64 (535.161.08-2~deb12u1) …
Setting up nvidia-vdpau-driver:amd64 (535.161.08-2~deb12u1) …
Setting up libgl1-nvidia-glvnd-glx:amd64 (535.161.08-2~deb12u1) …
Setting up libgles-nvidia1:amd64 (535.161.08-2~deb12u1) …
Setting up libegl-nvidia0:amd64 (535.161.08-2~deb12u1) …
Setting up nvidia-settings (535.171.04-1~deb12u1) …
Setting up nvidia-smi (535.161.08-2~deb12u1) …
Setting up libgles-nvidia2:amd64 (535.161.08-2~deb12u1) …
Setting up nvidia-driver-bin (535.161.08-2~deb12u1) …
Setting up nvidia-persistenced (535.171.04-1~deb12u1) …
Created symlink /etc/systemd/system/multi-user.target.wants/nvidia-persistenced.service → /lib/systemd/system/nvidia-persistenced.service.
Could not execute systemctl: at /usr/bin/deb-systemd-invoke line 145.
Setting up libcuda1:amd64 (535.161.08-2~deb12u1) …
Setting up nvidia-egl-icd:amd64 (535.161.08-2~deb12u1) …
Setting up nvidia-driver-libs:amd64 (535.161.08-2~deb12u1) …
Setting up libnvcuvid1:amd64 (535.161.08-2~deb12u1) …
Setting up libnvidia-encode1:amd64 (535.161.08-2~deb12u1) …
Processing triggers for nvidia-alternative (535.161.08-2~deb12u1) …
update-alternatives: updating alternative /usr/lib/nvidia/current because link group nvidia has changed slave links
Setting up nvidia-kernel-dkms (535.161.08-2~deb12u1) …
Loading new nvidia-current-535.161.08 DKMS files…
Building for 6.1.0-21-amd64
Building initial module for 6.1.0-21-amd64
Error! Bad return status for module build on kernel: 6.1.0-21-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-current/535.161.08/build/make.log for more information.
dpkg: error processing package nvidia-kernel-dkms (–configure):
installed nvidia-kernel-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver:
nvidia-driver depends on nvidia-kernel-dkms (= 535.161.08-2~deb12u1) | nvidia-kernel-535.161.08 | nvidia-open-kernel-535.161.08; however:
Package nvidia-kernel-dkms is not configured yet.
Package nvidia-kernel-535.161.08 is not installed.
Package nvidia-kernel-dkms which provides nvidia-kernel-535.161.08 is not configured yet.
Package nvidia-open-kernel-535.161.08 is not installed.

dpkg: error processing package nvidia-driver (–configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.36-9+deb12u7) …
Processing triggers for initramfs-tools (0.142) …
update-initramfs: Generating /boot/initrd.img-6.1.0-21-amd64
Processing triggers for update-glx (1.2.2) …
Processing triggers for glx-alternative-nvidia (1.2.2) …
update-alternatives: using /usr/lib/nvidia to provide /usr/lib/glx (glx) in auto mode
Processing triggers for glx-alternative-mesa (1.2.2) …
Processing triggers for libc-bin (2.36-9+deb12u7) …
Processing triggers for initramfs-tools (0.142) …
update-initramfs: Generating /boot/initrd.img-6.1.0-21-amd64
Errors were encountered while processing:
nvidia-kernel-dkms
nvidia-driver
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@chaoqunxie-debian:~# cat /var/lib/dkms/nvidia-current/535.161.08/build/make.log
DKMS make.log for nvidia-current-535.161.08 for kernel 6.1.0-21-amd64 (x86_64)
Sun Jun 9 12:58:18 CST 2024
make KBUILD_OUTPUT=/lib/modules/6.1.0-21-amd64/build V=1 -C /lib/modules/6.1.0-21-amd64/source M=/var/lib/dkms/nvidia-current/535.161.08/build ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modules/6.1.0-21-amd64/source NV_KERNEL_OUTPUT=/lib/modules/6.1.0-21-amd64/build NV_KERNEL_MODULES=“nvidia nvidia-uvm nvidia-modeset nvidia-drm nvidia-peermem” INSTALL_MOD_DIR=kernel/drivers/video NV_SPECTRE_V2=0 modules
make[1]: Entering directory ‘/usr/src/linux-headers-6.1.0-21-common’
make -C /usr/src/linux-headers-6.1.0-21-amd64 -f /usr/src/linux-headers-6.1.0-21-common/Makefile modules
make[2]: Entering directory ‘/usr/src/linux-headers-6.1.0-21-amd64’
make -f /usr/src/linux-headers-6.1.0-21-common/scripts/Makefile.build obj=/var/lib/dkms/nvidia-current/535.161.08/build need-builtin=1 need-modorder=1
NV_CONFTEST_CMD=/bin/sh /var/lib/dkms/nvidia-current/535.161.08/build/conftest.sh “gcc-12” x86_64 /lib/modules/6.1.0-21-amd64/source /lib/modules/6.1.0-21-amd64/build
NV_CONFTEST_CFLAGS=-O2 -D__KERNEL__ -DKBUILD_BASENAME=“#conftest71907” -DKBUILD_MODNAME=“#conftest71907” -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/12/include -Wno-implicit-function-declaration -Wno-strict-prototypes -I/lib/modules/6.1.0-21-amd64/source/arch/x86/include/asm/mach-default -I/lib/modules/6.1.0-21-amd64/source/include/asm-x86/mach-default -I/lib/modules/6.1.0-21-amd64/build/include2 -I/lib/modules/6.1.0-21-amd64/build/include -include /lib/modules/6.1.0-21-amd64/build/include/generated/autoconf.h -I/lib/modules/6.1.0-21-amd64/source/arch/x86/include -I/lib/modules/6.1.0-21-amd64/source/arch/x86/include/uapi -I/lib/modules/6.1.0-21-amd64/build/arch/x86/include/generated -I/lib/modules/6.1.0-21-amd64/build/arch/x86/include/generated/uapi -I/lib/modules/6.1.0-21-amd64/source/include -I/lib/modules/6.1.0-21-amd64/source/include/uapi -I/lib/modules/6.1.0-21-amd64/source/include/xen -I/lib/modules/6.1.0-21-amd64/build/include/generated/uapi -mfentry -DCC_USING_FENTRY -I/var/lib/dkms/nvidia-current/535.161.08/build/common/inc -I/var/lib/dkms/nvidia-current/535.161.08/build -Wall -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING="535.161.08" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -ffreestanding -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-pie -Wall -Wundef -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Wno-format-security -std=gnu11 -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 -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=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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 -Wno-packed-not-aligned -g
printf ‘%s\n’ nvidia/nv.o nvidia/nv-pci.o nvidia/nv-dmabuf.o nvidia/nv-nano-timer.o nvidia/nv-acpi.o nvidia/nv-cray.o nvidia/nv-dma.o nvidia/nv-i2c.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-memdbg.o nvidia/nv-ibmnpu.o nvidia/nv-report-err.o nvidia/nv-rsync.o nvidia/nv-msi.o nvidia/nv-caps.o nvidia/nv-frontend.o nvidia/nv_uvm_interface.o nvidia/libspdm_aead.o nvidia/libspdm_ecc.o nvidia/libspdm_hkdf.o nvidia/libspdm_rand.o nvidia/libspdm_shash.o nvidia/libspdm_aead_aes_gcm.o nvidia/libspdm_sha.o nvidia/libspdm_hmac_sha.o nvidia/libspdm_hkdf_sha.o nvidia/libspdm_ec.o nvidia/libspdm_x509.o nvidia/nvlink_linux.o nvidia/nvlink_caps.o nvidia/linux_nvswitch.o nvidia/procfs_nvswitch.o nvidia/i2c_nvswitch.o nvidia/nv-kernel.o | awk ‘!x[$0]++ { print(“/var/lib/dkms/nvidia-current/535.161.08/build/”$0) }’ > /var/lib/dkms/nvidia-current/535.161.08/build/nvidia.mod
KBUILD_CFLAGS=-Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu11 -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 -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=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -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
LINUXINCLUDE=-I/usr/src/linux-headers-6.1.0-21-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.1.0-21-common/include -I./include -I/usr/src/linux-headers-6.1.0-21-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.1.0-21-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.1.0-21-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.1.0-21-common/include/linux/kconfig.h
ln -sf /var/lib/dkms/nvidia-current/535.161.08/build/nvidia/nv-kernel.o_binary /var/lib/dkms/nvidia-current/535.161.08/build/nvidia/nv-kernel.o
LDFLAGS=
printf ‘%s\n’ nvidia-uvm/uvm_ats_sva.o nvidia-uvm/uvm_conf_computing.o nvidia-uvm/uvm_sec2_test.o nvidia-uvm/uvm_maxwell_sec2.o nvidia-uvm/uvm_hopper_sec2.o nvidia-uvm/uvm_common.o nvidia-uvm/uvm_linux.o nvidia-uvm/nvstatus.o nvidia-uvm/nvCpuUuid.o nvidia-uvm/nv-kthread-q.o nvidia-uvm/nv-kthread-q-selftest.o nvidia-uvm/uvm.o nvidia-uvm/uvm_tools.o nvidia-uvm/uvm_global.o nvidia-uvm/uvm_gpu.o nvidia-uvm/uvm_gpu_isr.o nvidia-uvm/uvm_procfs.o nvidia-uvm/uvm_va_space.o nvidia-uvm/uvm_va_space_mm.o nvidia-uvm/uvm_gpu_semaphore.o nvidia-uvm/uvm_mem.o nvidia-uvm/uvm_rm_mem.o nvidia-uvm/uvm_channel.o nvidia-uvm/uvm_lock.o nvidia-uvm/uvm_hal.o nvidia-uvm/uvm_range_tree.o nvidia-uvm/uvm_rb_tree.o nvidia-uvm/uvm_range_allocator.o nvidia-uvm/uvm_va_range.o nvidia-uvm/uvm_va_policy.o nvidia-uvm/uvm_va_block.o nvidia-uvm/uvm_range_group.o nvidia-uvm/uvm_gpu_replayable_faults.o nvidia-uvm/uvm_gpu_non_replayable_faults.o nvidia-uvm/uvm_gpu_access_counters.o nvidia-uvm/uvm_perf_events.o nvidia-uvm/uvm_perf_module.o nvidia-uvm/uvm_mmu.o nvidia-uvm/uvm_pte_batch.o nvidia-uvm/uvm_tlb_batch.o nvidia-uvm/uvm_push.o nvidia-uvm/uvm_pushbuffer.o nvidia-uvm/uvm_thread_context.o nvidia-uvm/uvm_tracker.o nvidia-uvm/uvm_maxwell.o nvidia-uvm/uvm_maxwell_host.o nvidia-uvm/uvm_maxwell_ce.o nvidia-uvm/uvm_maxwell_mmu.o nvidia-uvm/uvm_maxwell_fault_buffer.o nvidia-uvm/uvm_maxwell_access_counter_buffer.o nvidia-uvm/uvm_pascal.o nvidia-uvm/uvm_pascal_ce.o nvidia-uvm/uvm_pascal_host.o nvidia-uvm/uvm_pascal_mmu.o nvidia-uvm/uvm_pascal_fault_buffer.o nvidia-uvm/uvm_volta_ce.o nvidia-uvm/uvm_volta_host.o nvidia-uvm/uvm_volta_mmu.o nvidia-uvm/uvm_volta.o nvidia-uvm/uvm_volta_fault_buffer.o nvidia-uvm/uvm_volta_access_counter_buffer.o nvidia-uvm/uvm_turing.o nvidia-uvm/uvm_turing_access_counter_buffer.o nvidia-uvm/uvm_turing_fault_buffer.o nvidia-uvm/uvm_turing_mmu.o nvidia-uvm/uvm_turing_host.o nvidia-uvm/uvm_ampere.o nvidia-uvm/uvm_ampere_ce.o nvidia-uvm/uvm_ampere_host.o nvidia-uvm/uvm_ampere_mmu.o nvidia-uvm/uvm_hopper.o nvidia-uvm/uvm_hopper_fault_buffer.o nvidia-uvm/uvm_hopper_ce.o nvidia-uvm/uvm_hopper_host.o nvidia-uvm/uvm_hopper_mmu.o nvidia-uvm/uvm_ada.o nvidia-uvm/uvm_policy.o nvidia-uvm/uvm_perf_utils.o nvidia-uvm/uvm_kvmalloc.o nvidia-uvm/uvm_pmm_sysmem.o nvidia-uvm/uvm_pmm_gpu.o nvidia-uvm/uvm_migrate.o nvidia-uvm/uvm_populate_pageable.o nvidia-uvm/uvm_migrate_pageable.o nvidia-uvm/uvm_map_external.o nvidia-uvm/uvm_user_channel.o nvidia-uvm/uvm_hmm.o nvidia-uvm/uvm_perf_heuristics.o nvidia-uvm/uvm_perf_thrashing.o nvidia-uvm/uvm_perf_prefetch.o nvidia-uvm/uvm_ats.o nvidia-uvm/uvm_ats_ibm.o nvidia-uvm/uvm_ats_faults.o nvidia-uvm/uvm_test.o nvidia-uvm/uvm_test_rng.o nvidia-uvm/uvm_range_tree_test.o nvidia-uvm/uvm_range_allocator_test.o nvidia-uvm/uvm_gpu_semaphore_test.o nvidia-uvm/uvm_mem_test.o nvidia-uvm/uvm_rm_mem_test.o nvidia-uvm/uvm_page_tree_test.o nvidia-uvm/uvm_tracker_test.o nvidia-uvm/uvm_push_test.o nvidia-uvm/uvm_channel_test.o nvidia-uvm/uvm_ce_test.o nvidia-uvm/uvm_host_test.o nvidia-uvm/uvm_lock_test.o nvidia-uvm/uvm_perf_utils_test.o nvidia-uvm/uvm_kvmalloc_test.o nvidia-uvm/uvm_pmm_test.o nvidia-uvm/uvm_pmm_sysmem_test.o nvidia-uvm/uvm_perf_events_test.o nvidia-uvm/uvm_perf_module_test.o nvidia-uvm/uvm_get_rm_ptes_test.o nvidia-uvm/uvm_fault_buffer_flush_test.o nvidia-uvm/uvm_peer_identity_mappings_test.o nvidia-uvm/uvm_va_block_test.o nvidia-uvm/uvm_range_group_tree_test.o nvidia-uvm/uvm_thread_context_test.o nvidia-uvm/uvm_rb_tree_test.o | awk ‘!x[$0]++ { print(“/var/lib/dkms/nvidia-current/535.161.08/build/”$0) }’ > /var/lib/dkms/nvidia-current/535.161.08/build/nvidia-uvm.mod
KBUILD_LDFLAGS=-m elf_x86_64 -z noexecstack --no-warn-rwx-segments
printf ‘%s\n’ nvidia-modeset/nvidia-modeset-linux.o nvidia-modeset/nv-kthread-q.o nvidia-modeset/nv-modeset-kernel.o | awk ‘!x[$0]++ { print(“/var/lib/dkms/nvidia-current/535.161.08/build/”$0) }’ > /var/lib/dkms/nvidia-current/535.161.08/build/nvidia-modeset.mod
ARCH=x86_64
ln -sf /var/lib/dkms/nvidia-current/535.161.08/build/nvidia-modeset/nv-modeset-kernel.o_binary /var/lib/dkms/nvidia-current/535.161.08/build/nvidia-modeset/nv-modeset-kernel.o
printf ‘%s\n’ 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-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 nvidia-drm/nvidia-drm-gem-dma-buf.o nvidia-drm/nvidia-drm-format.o | awk ‘!x[$0]++ { print(“/var/lib/dkms/nvidia-current/535.161.08/build/”$0) }’ > /var/lib/dkms/nvidia-current/535.161.08/build/nvidia-drm.mod
CONFTEST: cc_sanity_check
CONFTEST: cc_version_check
CONFTEST: dom0_sanity_check
CONFTEST: xen_sanity_check
CONFTEST: preempt_rt_sanity_check
CONFTEST: vgpu_kvm_sanity_check
CONFTEST: module_symvers_sanity_check
printf ‘%s\n’ nvidia-peermem/nvidia-peermem.o | awk ‘!x[$0]++ { print(“/var/lib/dkms/nvidia-current/535.161.08/build/”$0) }’ > /var/lib/dkms/nvidia-current/535.161.08/build/nvidia-peermem.mod
CONFTEST uts_release:
// Kernel version:
CONFTEST: asm/system.h
CONFTEST: drm/drmP.h
CONFTEST: drm/drm_auth.h
CONFTEST: drm/drm_gem.h
CONFTEST: drm/drm_crtc.h
make[3]: *** [/var/lib/dkms/nvidia-current/535.161.08/build/Kbuild:346: /var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/asm/system.h.part] Error 139
make[3]: *** Deleting file ‘/var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/asm/system.h.part’
make[3]: *** Waiting for unfinished jobs…
make[3]: *** [/var/lib/dkms/nvidia-current/535.161.08/build/Kbuild:346: /var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drmP.h.part] Error 139
make[3]: *** Deleting file ‘/var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drmP.h.part’
make[3]: *** [/var/lib/dkms/nvidia-current/535.161.08/build/Kbuild:346: /var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_auth.h.part] Error 139
make[3]: *** Deleting file ‘/var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_auth.h.part’
CONFTEST: drm/drm_color_mgmt.h
make[3]: *** [/var/lib/dkms/nvidia-current/535.161.08/build/Kbuild:346: /var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_gem.h.part] Error 139
make[3]: *** Deleting file ‘/var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_gem.h.part’
make[3]: *** [/var/lib/dkms/nvidia-current/535.161.08/build/Kbuild:346: /var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_crtc.h.part] Error 139
make[3]: *** Deleting file ‘/var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_crtc.h.part’
make[3]: *** [/var/lib/dkms/nvidia-current/535.161.08/build/Kbuild:346: /var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_color_mgmt.h.part] Error 139
make[3]: *** Deleting file ‘/var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_color_mgmt.h.part’
CONFTEST patches.h:
static struct {
const char *short_description;
const char *description;
} __nv_patches = {
{ NULL, NULL } };
make[2]: *** [/usr/src/linux-headers-6.1.0-21-common/Makefile:2035: /var/lib/dkms/nvidia-current/535.161.08/build] Error 2
make[2]: Leaving directory ‘/usr/src/linux-headers-6.1.0-21-amd64’
make[1]: *** [Makefile:250: __sub-make] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-6.1.0-21-common’
make: *** [Makefile:82: modules] Error 2

cat /var/lib/dkms/nvidia-current/535.161.08/build/make.log

DKMS make.log for nvidia-current-535.161.08 for kernel 6.1.0-21-amd64 (x86_64)

Sun Jun 9 13:08:39 CST 2024

make KBUILD_OUTPUT=/lib/modules/6.1.0-21-amd64/build V=1 -C /lib/modules/6.1.0-21-amd64/source M=/var/lib/dkms/nvidia-current/535.161.08/build ARCH=x86_64 NV_KERNEL_SOURCES=/lib/modules/6.1.0-21-amd64/

source NV_KERNEL_OUTPUT=/lib/modules/6.1.0-21-amd64/build NV_KERNEL_MODULES=“nvidia nvidia-uvm nvidia-modeset nvidia-drm nvidia-peermem” INSTALL_MOD_DIR=kernel/drivers/video NV_SPECTRE_V2=0 modules

make[1]: Entering directory ‘/usr/src/linux-headers-6.1.0-21-common’

make -C /usr/src/linux-headers-6.1.0-21-amd64 -f /usr/src/linux-headers-6.1.0-21-common/Makefile modules

make[2]: Entering directory ‘/usr/src/linux-headers-6.1.0-21-amd64’

make -f /usr/src/linux-headers-6.1.0-21-common/scripts/Makefile.build obj=/var/lib/dkms/nvidia-current/535.161.08/build need-builtin=1 need-modorder=1

NV_CONFTEST_CMD=/bin/sh /var/lib/dkms/nvidia-current/535.161.08/build/conftest.sh “gcc-12” x86_64 /lib/modules/6.1.0-21-amd64/source /lib/modules/6.1.0-21-amd64/build

NV_CONFTEST_CFLAGS=-O2 -D__KERNEL__ -DKBUILD_BASENAME=“#conftest109534” -DKBUILD_MODNAME=“#conftest109534” -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/12/include -Wno-implicit-function-declaration

-Wno-strict-prototypes -I/lib/modules/6.1.0-21-amd64/source/arch/x86/include/asm/mach-default -I/lib/modules/6.1.0-21-amd64/source/include/asm-x86/mach-default -I/lib/modules/6.1.0-21-amd64/build/incl

ude2 -I/lib/modules/6.1.0-21-amd64/build/include -include /lib/modules/6.1.0-21-amd64/build/include/generated/autoconf.h -I/lib/modules/6.1.0-21-amd64/source/arch/x86/include -I/lib/modules/6.1.0-21-am

d64/source/arch/x86/include/uapi -I/lib/modules/6.1.0-21-amd64/build/arch/x86/include/generated -I/lib/modules/6.1.0-21-amd64/build/arch/x86/include/generated/uapi -I/lib/modules/6.1.0-21-amd64/source/

include -I/lib/modules/6.1.0-21-amd64/source/include/uapi -I/lib/modules/6.1.0-21-amd64/source/include/xen -I/lib/modules/6.1.0-21-amd64/build/include/generated/uapi -mfentry -DCC_USING_FENTRY -I/var/l

ib/dkms/nvidia-current/535.161.08/build/common/inc -I/var/lib/dkms/nvidia-current/535.161.08/build -Wall -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STR

ING="535.161.08" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -ffreestanding -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fn

o-pie -Wall -Wundef -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Wno-format-security -std=gnu11 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -fal

ign-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 -m

indirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -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=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-un

used-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-strin

gop-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-stac

k -Wno-packed-not-aligned -g

printf ‘%s\n’ nvidia/nv.o nvidia/nv-pci.o nvidia/nv-dmabuf.o nvidia/nv-nano-timer.o nvidia/nv-acpi.o nvidia/nv-cray.o nvidia/nv-dma.o nvidia/nv-i2c.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-memdbg.o nvidia/nv-ibmnpu.o nvidia/nv-report-err.o nvidia/nv-rsync.o nvidia/nv-msi.o nvidia/nv-caps.o nvidia/nv-frontend.o nvidia/nv_uvm_interfac

e.o nvidia/libspdm_aead.o nvidia/libspdm_ecc.o nvidia/libspdm_hkdf.o nvidia/libspdm_rand.o nvidia/libspdm_shash.o nvidia/libspdm_aead_aes_gcm.o nvidia/libspdm_sha.o nvidia/libspdm_hmac_sha.o nvidia/lib

spdm_hkdf_sha.o nvidia/libspdm_ec.o nvidia/libspdm_x509.o nvidia/nvlink_linux.o nvidia/nvlink_caps.o nvidia/linux_nvswitch.o nvidia/procfs_nvswitch.o nvidia/i2c_nvswitch.o nvidia/nv-kernel.o | awk '!x[

$0]++ { print(“/var/lib/dkms/nvidia-current/535.161.08/build/”$0) }’ > /var/lib/dkms/nvidia-current/535.161.08/build/nvidia.mod

KBUILD_CFLAGS=-Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-ty

pe -Wno-format-security -std=gnu11 -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 -mfu

nction-return=thunk-extern -fno-jump-tables -mharden-sls=all -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=2048 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -ftrivial-auto-var-init=zero -fno-stack-clash

-protection -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-arra

y-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-pa

cked-not-aligned -g

LINUXINCLUDE=-I/usr/src/linux-headers-6.1.0-21-common/arch/x86/include -I./arch/x86/include/generated -I/usr/src/linux-headers-6.1.0-21-common/include -I./include -I/usr/src/linux-headers-6.1.0-21-comm

on/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.1.0-21-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-6.1.0-21-common/include/lin

ux/compiler-version.h -include /usr/src/linux-headers-6.1.0-21-common/include/linux/kconfig.h

ln -sf /var/lib/dkms/nvidia-current/535.161.08/build/nvidia/nv-kernel.o_binary /var/lib/dkms/nvidia-current/535.161.08/build/nvidia/nv-kernel.o

LDFLAGS=

printf ‘%s\n’ nvidia-uvm/uvm_ats_sva.o nvidia-uvm/uvm_conf_computing.o nvidia-uvm/uvm_sec2_test.o nvidia-uvm/uvm_maxwell_sec2.o nvidia-uvm/uvm_hopper_sec2.o nvidia-uvm/uvm_common.o nvidia-uvm/uvm_l

inux.o nvidia-uvm/nvstatus.o nvidia-uvm/nvCpuUuid.o nvidia-uvm/nv-kthread-q.o nvidia-uvm/nv-kthread-q-selftest.o nvidia-uvm/uvm.o nvidia-uvm/uvm_tools.o nvidia-uvm/uvm_global.o nvidia-uvm/uvm_gpu.o nvi

dia-uvm/uvm_gpu_isr.o nvidia-uvm/uvm_procfs.o nvidia-uvm/uvm_va_space.o nvidia-uvm/uvm_va_space_mm.o nvidia-uvm/uvm_gpu_semaphore.o nvidia-uvm/uvm_mem.o nvidia-uvm/uvm_rm_mem.o nvidia-uvm/uvm_channel.o

nvidia-uvm/uvm_lock.o nvidia-uvm/uvm_hal.o nvidia-uvm/uvm_range_tree.o nvidia-uvm/uvm_rb_tree.o nvidia-uvm/uvm_range_allocator.o nvidia-uvm/uvm_va_range.o nvidia-uvm/uvm_va_policy.o nvidia-uvm/uvm_va_

block.o nvidia-uvm/uvm_range_group.o nvidia-uvm/uvm_gpu_replayable_faults.o nvidia-uvm/uvm_gpu_non_replayable_faults.o nvidia-uvm/uvm_gpu_access_counters.o nvidia-uvm/uvm_perf_events.o nvidia-uvm/uvm_p

erf_module.o nvidia-uvm/uvm_mmu.o nvidia-uvm/uvm_pte_batch.o nvidia-uvm/uvm_tlb_batch.o nvidia-uvm/uvm_push.o nvidia-uvm/uvm_pushbuffer.o nvidia-uvm/uvm_thread_context.o nvidia-uvm/uvm_tracker.o nvidia

-uvm/uvm_maxwell.o nvidia-uvm/uvm_maxwell_host.o nvidia-uvm/uvm_maxwell_ce.o nvidia-uvm/uvm_maxwell_mmu.o nvidia-uvm/uvm_maxwell_fault_buffer.o nvidia-uvm/uvm_maxwell_access_counter_buffer.o nvidia-uvm

/uvm_pascal.o nvidia-uvm/uvm_pascal_ce.o nvidia-uvm/uvm_pascal_host.o nvidia-uvm/uvm_pascal_mmu.o nvidia-uvm/uvm_pascal_fault_buffer.o nvidia-uvm/uvm_volta_ce.o nvidia-uvm/uvm_volta_host.o nvidia-uvm/u

vm_volta_mmu.o nvidia-uvm/uvm_volta.o nvidia-uvm/uvm_volta_fault_buffer.o nvidia-uvm/uvm_volta_access_counter_buffer.o nvidia-uvm/uvm_turing.o nvidia-uvm/uvm_turing_access_counter_buffer.o nvidia-uvm/u

vm_turing_fault_buffer.o nvidia-uvm/uvm_turing_mmu.o nvidia-uvm/uvm_turing_host.o nvidia-uvm/uvm_ampere.o nvidia-uvm/uvm_ampere_ce.o nvidia-uvm/uvm_ampere_host.o nvidia-uvm/uvm_ampere_mmu.o nvidia-uvm/

uvm_hopper.o nvidia-uvm/uvm_hopper_fault_buffer.o nvidia-uvm/uvm_hopper_ce.o nvidia-uvm/uvm_hopper_host.o nvidia-uvm/uvm_hopper_mmu.o nvidia-uvm/uvm_ada.o nvidia-uvm/uvm_policy.o nvidia-uvm/uvm_perf_ut

ils.o nvidia-uvm/uvm_kvmalloc.o nvidia-uvm/uvm_pmm_sysmem.o nvidia-uvm/uvm_pmm_gpu.o nvidia-uvm/uvm_migrate.o nvidia-uvm/uvm_populate_pageable.o nvidia-uvm/uvm_migrate_pageable.o nvidia-uvm/uvm_map_ext

ernal.o nvidia-uvm/uvm_user_channel.o nvidia-uvm/uvm_hmm.o nvidia-uvm/uvm_perf_heuristics.o nvidia-uvm/uvm_perf_thrashing.o nvidia-uvm/uvm_perf_prefetch.o nvidia-uvm/uvm_ats.o nvidia-uvm/uvm_ats_ibm.o

nvidia-uvm/uvm_ats_faults.o nvidia-uvm/uvm_test.o nvidia-uvm/uvm_test_rng.o nvidia-uvm/uvm_range_tree_test.o nvidia-uvm/uvm_range_allocator_test.o nvidia-uvm/uvm_gpu_semaphore_test.o nvidia-uvm/uvm_mem

test.o nvidia-uvm/uvm_rm_mem_test.o nvidia-uvm/uvm_page_tree_test.o nvidia-uvm/uvm_tracker_test.o nvidia-uvm/uvm_push_test.o nvidia-uvm/uvm_channel_test.o nvidia-uvm/uvm_ce_test.o nvidia-uvm/uvm_host

test.o nvidia-uvm/uvm_lock_test.o nvidia-uvm/uvm_perf_utils_test.o nvidia-uvm/uvm_kvmalloc_test.o nvidia-uvm/uvm_pmm_test.o nvidia-uvm/uvm_pmm_sysmem_test.o nvidia-uvm/uvm_perf_events_test.o nvidia-uvm

/uvm_perf_module_test.o nvidia-uvm/uvm_get_rm_ptes_test.o nvidia-uvm/uvm_fault_buffer_flush_test.o nvidia-uvm/uvm_peer_identity_mappings_test.o nvidia-uvm/uvm_va_block_test.o nvidia-uvm/uvm_range_group

_tree_test.o nvidia-uvm/uvm_thread_context_test.o nvidia-uvm/uvm_rb_tree_test.o | awk ‘!x[$0]++ { print(“/var/lib/dkms/nvidia-current/535.161.08/build/”$0) }’ > /var/lib/dkms/nvidia-current/535.161.08/

build/nvidia-uvm.mod

KBUILD_LDFLAGS=-m elf_x86_64 -z noexecstack --no-warn-rwx-segments

printf ‘%s\n’ nvidia-modeset/nvidia-modeset-linux.o nvidia-modeset/nv-kthread-q.o nvidia-modeset/nv-modeset-kernel.o | awk ‘!x[$0]++ { print(“/var/lib/dkms/nvidia-current/535.161.08/build/”$0) }’ >

/var/lib/dkms/nvidia-current/535.161.08/build/nvidia-modeset.mod

ARCH=x86_64

ln -sf /var/lib/dkms/nvidia-current/535.161.08/build/nvidia-modeset/nv-modeset-kernel.o_binary /var/lib/dkms/nvidia-current/535.161.08/build/nvidia-modeset/nv-modeset-kernel.o

printf ‘%s\n’ 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-fence.o nvidia-drm/nvidia-drm-linux.o nvidia-drm/nvidia-drm-helper.o nvidia-drm/nv-pci-table.o nvi

dia-drm/nvidia-drm-gem-nvkms-memory.o nvidia-drm/nvidia-drm-gem-user-memory.o nvidia-drm/nvidia-drm-gem-dma-buf.o nvidia-drm/nvidia-drm-format.o | awk '!x[$0]++ { print("/var/lib/dkms/nvidia-current/53

5.161.08/build/"$0) }’ > /var/lib/dkms/nvidia-current/535.161.08/build/nvidia-drm.mod

CONFTEST: cc_sanity_check

CONFTEST: cc_version_check

CONFTEST: dom0_sanity_check

CONFTEST: xen_sanity_check

CONFTEST: preempt_rt_sanity_check

CONFTEST: vgpu_kvm_sanity_check

CONFTEST: module_symvers_sanity_check

printf ‘%s\n’ nvidia-peermem/nvidia-peermem.o | awk ‘!x[$0]++ { print(“/var/lib/dkms/nvidia-current/535.161.08/build/”$0) }’ > /var/lib/dkms/nvidia-current/535.161.08/build/nvidia-peermem.mod

CONFTEST uts_release:

// Kernel version:

CONFTEST: asm/system.h

CONFTEST: drm/drmP.h

CONFTEST: drm/drm_auth.h

make[3]: *** [/var/lib/dkms/nvidia-current/535.161.08/build/Kbuild:346: /var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/asm/system.h.part] Error 139

make[3]: *** Deleting file ‘/var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/asm/system.h.part’

CONFTEST: drm/drm_gem.h

make[3]: *** Waiting for unfinished jobs…

make[3]: *** [/var/lib/dkms/nvidia-current/535.161.08/build/Kbuild:346: /var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drmP.h.part] Error 139

make[3]: *** Deleting file ‘/var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drmP.h.part’

CONFTEST: drm/drm_crtc.h

make[3]: *** [/var/lib/dkms/nvidia-current/535.161.08/build/Kbuild:346: /var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_auth.h.part] Error 139

make[3]: *** Deleting file ‘/var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_auth.h.part’

make[3]: *** [/var/lib/dkms/nvidia-current/535.161.08/build/Kbuild:346: /var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_gem.h.part] Error 139

make[3]: *** Deleting file ‘/var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_gem.h.part’

make[3]: *** [/var/lib/dkms/nvidia-current/535.161.08/build/Kbuild:346: /var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_crtc.h.part] Error 139

make[3]: *** Deleting file ‘/var/lib/dkms/nvidia-current/535.161.08/build/conftest/header_presence/drm/drm_crtc.h.part’

CONFTEST patches.h:

static struct {

const char *short_description;

const char *description;

} __nv_patches = {

{ NULL, NULL } };

make[2]: *** [/usr/src/linux-headers-6.1.0-21-common/Makefile:2035: /var/lib/dkms/nvidia-current/535.161.08/build] Error 2

make[2]: Leaving directory ‘/usr/src/linux-headers-6.1.0-21-amd64’

make[1]: *** [Makefile:250: __sub-make] Error 2

make[1]: Leaving directory ‘/usr/src/linux-headers-6.1.0-21-common’

make: *** [Makefile:82: modules] Error 2