Cannot build dkms driver 470.63.01 for kernel 5.14

here is error log:

cc -Wp,-MMD,/var/lib/dkms/nvidia/470.63.01/build/nvidia/.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -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 -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -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=gnu89 -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 -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/470.63.01/build/common/inc -I/var/lib/dkms/nvidia/470.63.01/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=“470.63.01” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/470.63.01/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize-undefined-trap-on-error -DMODULE -DKBUILD_BASENAME=’“nv”’ -DKBUILD_MODNAME=’“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv.o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv.c
cc -Wp,-MMD,/var/lib/dkms/nvidia/470.63.01/build/nvidia/.nv-pci.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -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 -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -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=gnu89 -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 -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/470.63.01/build/common/inc -I/var/lib/dkms/nvidia/470.63.01/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=“470.63.01” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/470.63.01/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize-undefined-trap-on-error -DMODULE -DKBUILD_BASENAME=’“nv_pci”’ -DKBUILD_MODNAME=’“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-pci.o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-pci.c
cc -Wp,-MMD,/var/lib/dkms/nvidia/470.63.01/build/nvidia/.nv-acpi.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -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 -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -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=gnu89 -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 -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/470.63.01/build/common/inc -I/var/lib/dkms/nvidia/470.63.01/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=“470.63.01” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/470.63.01/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize-undefined-trap-on-error -DMODULE -DKBUILD_BASENAME=’“nv_acpi”’ -DKBUILD_MODNAME=’“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-acpi.o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-acpi.c
cc -Wp,-MMD,/var/lib/dkms/nvidia/470.63.01/build/nvidia/.nv-cray.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -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 -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -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=gnu89 -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 -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/470.63.01/build/common/inc -I/var/lib/dkms/nvidia/470.63.01/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=“470.63.01” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/470.63.01/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize-undefined-trap-on-error -DMODULE -DKBUILD_BASENAME=’“nv_cray”’ -DKBUILD_MODNAME=’“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-cray.o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-cray.c
cc -Wp,-MMD,/var/lib/dkms/nvidia/470.63.01/build/nvidia/.nv-dma.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -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 -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -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=gnu89 -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 -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/470.63.01/build/common/inc -I/var/lib/dkms/nvidia/470.63.01/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=“470.63.01” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/470.63.01/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize-undefined-trap-on-error -DMODULE -DKBUILD_BASENAME=’“nv_dma”’ -DKBUILD_MODNAME=’“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-dma.o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-dma.c
cc -Wp,-MMD,/var/lib/dkms/nvidia/470.63.01/build/nvidia/.nv-i2c.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -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 -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -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=gnu89 -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 -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/470.63.01/build/common/inc -I/var/lib/dkms/nvidia/470.63.01/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=“470.63.01” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/470.63.01/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize-undefined-trap-on-error -DMODULE -DKBUILD_BASENAME=’“nv_i2c”’ -DKBUILD_MODNAME=’“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-i2c.o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-i2c.c
cc -Wp,-MMD,/var/lib/dkms/nvidia/470.63.01/build/nvidia/.nv-mmap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -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 -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -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=gnu89 -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 -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/470.63.01/build/common/inc -I/var/lib/dkms/nvidia/470.63.01/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=“470.63.01” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/470.63.01/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize-undefined-trap-on-error -DMODULE -DKBUILD_BASENAME=’“nv_mmap”’ -DKBUILD_MODNAME=’“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-mmap.o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-mmap.c
cc -Wp,-MMD,/var/lib/dkms/nvidia/470.63.01/build/nvidia/.nv-p2p.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -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 -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -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=gnu89 -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 -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/470.63.01/build/common/inc -I/var/lib/dkms/nvidia/470.63.01/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=“470.63.01” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/470.63.01/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize-undefined-trap-on-error -DMODULE -DKBUILD_BASENAME=’“nv_p2p”’ -DKBUILD_MODNAME=’“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-p2p.o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-p2p.c
cc -Wp,-MMD,/var/lib/dkms/nvidia/470.63.01/build/nvidia/.nv-pat.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -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 -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -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=gnu89 -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 -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/470.63.01/build/common/inc -I/var/lib/dkms/nvidia/470.63.01/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=“470.63.01” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/470.63.01/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize-undefined-trap-on-error -DMODULE -DKBUILD_BASENAME=’“nv_pat”’ -DKBUILD_MODNAME=’“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-pat.o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-pat.c
cc -Wp,-MMD,/var/lib/dkms/nvidia/470.63.01/build/nvidia/.nv-procfs.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -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 -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -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=gnu89 -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 -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/470.63.01/build/common/inc -I/var/lib/dkms/nvidia/470.63.01/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=“470.63.01” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/470.63.01/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize-undefined-trap-on-error -DMODULE -DKBUILD_BASENAME=’“nv_procfs”’ -DKBUILD_MODNAME=’“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-procfs.o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-procfs.c
cc -Wp,-MMD,/var/lib/dkms/nvidia/470.63.01/build/nvidia/.nv-procfs-utils.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -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 -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -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=gnu89 -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 -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/470.63.01/build/common/inc -I/var/lib/dkms/nvidia/470.63.01/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=“470.63.01” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/470.63.01/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize-undefined-trap-on-error -DMODULE -DKBUILD_BASENAME=’“nv_procfs_utils”’ -DKBUILD_MODNAME=’“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-procfs-utils.o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-procfs-utils.c
cc -Wp,-MMD,/var/lib/dkms/nvidia/470.63.01/build/nvidia/.nv-usermap.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/10/include -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 -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -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=gnu89 -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 -DCONFIG_X86_X32_ABI -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wimplicit-fallthrough=5 -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -g -gdwarf-4 -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -Wno-zero-length-bounds -Wno-array-bounds -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -I/var/lib/dkms/nvidia/470.63.01/build/common/inc -I/var/lib/dkms/nvidia/470.63.01/build -Wall -MD -Wno-cast-qual -Wno-error -Wno-format-extra-args -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=“470.63.01” -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -fno-stack-clash-protection -fcf-protection=none -I/var/lib/dkms/nvidia/470.63.01/build/nvidia -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds -fsanitize-undefined-trap-on-error -DMODULE -DKBUILD_BASENAME=’“nv_usermap”’ -DKBUILD_MODNAME=’“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-usermap.o /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-usermap.c
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by scripts/basic/fixdep) make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-procfs-utils.o] Error 1 make[2]: *** Deleting file '/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-procfs-utils.o' make[2]: *** Waiting for unfinished jobs.... scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34’ not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-i2c.o] Error 1
make[2]: *** Deleting file ‘/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-i2c.o’
/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-dma.c:963: warning: “IMPORT_SGT_STUBS_NEEDED” redefined
963 | #define IMPORT_SGT_STUBS_NEEDED 0
|
/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-dma.c:957: note: this is the location of the previous definition
957 | #define IMPORT_SGT_STUBS_NEEDED 1
|
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by scripts/basic/fixdep) make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-cray.o] Error 1 make[2]: *** Deleting file '/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-cray.o' /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-mmap.c: In function ‘nv_encode_caching’: /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-mmap.c:321:16: warning: this statement may fall through [-Wimplicit-fallthrough=] 321 | if (NV_ALLOW_CACHING(memory_type)) | ^ /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-mmap.c:324:9: note: here 324 | default: | ^~~~~~~ scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34’ not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-pat.o] Error 1
make[2]: *** Deleting file ‘/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-pat.o’
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by scripts/basic/fixdep) make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-usermap.o] Error 1 make[2]: *** Deleting file '/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-usermap.o' scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34’ not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-mmap.o] Error 1
make[2]: *** Deleting file ‘/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-mmap.o’
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by scripts/basic/fixdep) make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-pci.o] Error 1 make[2]: *** Deleting file '/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-pci.o' scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34’ not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-dma.o] Error 1
make[2]: *** Deleting file ‘/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-dma.o’
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by scripts/basic/fixdep) make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-p2p.o] Error 1 make[2]: *** Deleting file '/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-p2p.o' scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34’ not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-procfs.o] Error 1
make[2]: *** Deleting file ‘/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-procfs.o’
scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34' not found (required by scripts/basic/fixdep) make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-acpi.o] Error 1 make[2]: *** Deleting file '/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv-acpi.o' scripts/basic/fixdep: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34’ not found (required by scripts/basic/fixdep)
make[2]: *** [scripts/Makefile.build:271: /var/lib/dkms/nvidia/470.63.01/build/nvidia/nv.o] Error 1
make[2]: *** Deleting file ‘/var/lib/dkms/nvidia/470.63.01/build/nvidia/nv.o’
make[1]: *** [Makefile:1857: /var/lib/dkms/nvidia/470.63.01/build] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-5.14.3-051403-generic’
make: *** [Makefile:80: modules] Error 2

something is wrong at your end or your package, its building just fine here on archlinux. im using 470.63.01 dkms with linux 5.14.1

Thanks, @gulafaran for your input
I forgot to mention that with kernel 5.13.12 it builds just fine