Bug#881921: nvidia-legacy-340xx-driver: Compile error when building module for stretch-bpo kernel (currently 4.13.0-0-bpo.1-amd64)

Daniel Reichelt debian at nachtgeist.net
Thu Nov 16 14:29:20 UTC 2017


Package: nvidia-legacy-340xx-driver
Version: 340.102-1
Severity: important

Hi,

on a stretch system which has (only) the current bpo-kernel installed,
nvidia-legacy-340xx-driver fails to compile the nvidia module.

Please find attached the console log of

`apt-get -y install nvidia-legacy-340xx-driver 2>&1 | tee console.log`

and dkms'

/var/lib/dkms/nvidia-legacy-340xx/340.102/build/make.log .

Hauler if you need more info.


Thanks
Daniel



-- Package-specific info:
uname -a:
Linux host-151 4.13.0-0.bpo.1-amd64 #1 SMP Debian 4.13.4-2~bpo9+1 (2017-10-17) x86_64 GNU/Linux

/proc/version:
Linux version 4.13.0-0.bpo.1-amd64 (debian-kernel at lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18)) #1 SMP Debian 4.13.4-2~bpo9+1 (2017-10-17)
-------------- next part --------------
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libegl1-nvidia-legacy-340xx libegl1-nvidia-legacy-340xx:i386
  libgl1-nvidia-legacy-340xx-glx libgl1-nvidia-legacy-340xx-glx:i386
  libgles1-nvidia-legacy-340xx libgles1-nvidia-legacy-340xx:i386
  libgles2-nvidia-legacy-340xx libgles2-nvidia-legacy-340xx:i386
  libnvidia-legacy-340xx-cfg1 libnvidia-legacy-340xx-cfg1:i386
  libnvidia-legacy-340xx-eglcore libnvidia-legacy-340xx-eglcore:i386
  libnvidia-legacy-340xx-glcore libnvidia-legacy-340xx-glcore:i386
  libnvidia-legacy-340xx-ml1 nvidia-legacy-340xx-alternative
  nvidia-legacy-340xx-driver-bin nvidia-legacy-340xx-driver-libs
  nvidia-legacy-340xx-driver-libs:i386
  nvidia-legacy-340xx-driver-libs-i386:i386 nvidia-legacy-340xx-kernel-dkms
  nvidia-legacy-340xx-kernel-support nvidia-legacy-340xx-vdpau-driver
  nvidia-settings-legacy-340xx xserver-xorg-video-nvidia-legacy-340xx
The following NEW packages will be installed:
  libegl1-nvidia-legacy-340xx libegl1-nvidia-legacy-340xx:i386
  libgl1-nvidia-legacy-340xx-glx libgl1-nvidia-legacy-340xx-glx:i386
  libgles1-nvidia-legacy-340xx libgles1-nvidia-legacy-340xx:i386
  libgles2-nvidia-legacy-340xx libgles2-nvidia-legacy-340xx:i386
  libnvidia-legacy-340xx-cfg1 libnvidia-legacy-340xx-cfg1:i386
  libnvidia-legacy-340xx-eglcore libnvidia-legacy-340xx-eglcore:i386
  libnvidia-legacy-340xx-glcore libnvidia-legacy-340xx-glcore:i386
  libnvidia-legacy-340xx-ml1 nvidia-legacy-340xx-alternative
  nvidia-legacy-340xx-driver nvidia-legacy-340xx-driver-bin
  nvidia-legacy-340xx-driver-libs nvidia-legacy-340xx-driver-libs:i386
  nvidia-legacy-340xx-driver-libs-i386:i386 nvidia-legacy-340xx-kernel-dkms
  nvidia-legacy-340xx-kernel-support nvidia-legacy-340xx-vdpau-driver
  nvidia-settings-legacy-340xx xserver-xorg-video-nvidia-legacy-340xx
0 upgraded, 26 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/39.4 MB of archives.
After this operation, 216 MB of additional disk space will be used.
Selecting previously unselected package nvidia-legacy-340xx-alternative.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 446332 files and directories currently installed.)
Preparing to unpack .../00-nvidia-legacy-340xx-alternative_340.102-1_amd64.deb ...
Unpacking nvidia-legacy-340xx-alternative (340.102-1) ...
Selecting previously unselected package libnvidia-legacy-340xx-glcore:i386.
Preparing to unpack .../01-libnvidia-legacy-340xx-glcore_340.102-1_i386.deb ...
Unpacking libnvidia-legacy-340xx-glcore:i386 (340.102-1) ...
Selecting previously unselected package libgl1-nvidia-legacy-340xx-glx:i386.
Preparing to unpack .../02-libgl1-nvidia-legacy-340xx-glx_340.102-1_i386.deb ...
Unpacking libgl1-nvidia-legacy-340xx-glx:i386 (340.102-1) ...
Selecting previously unselected package libnvidia-legacy-340xx-glcore:amd64.
Preparing to unpack .../03-libnvidia-legacy-340xx-glcore_340.102-1_amd64.deb ...
Unpacking libnvidia-legacy-340xx-glcore:amd64 (340.102-1) ...
Selecting previously unselected package libgl1-nvidia-legacy-340xx-glx:amd64.
Preparing to unpack .../04-libgl1-nvidia-legacy-340xx-glx_340.102-1_amd64.deb ...
Unpacking libgl1-nvidia-legacy-340xx-glx:amd64 (340.102-1) ...
Selecting previously unselected package libnvidia-legacy-340xx-eglcore:amd64.
Preparing to unpack .../05-libnvidia-legacy-340xx-eglcore_340.102-1_amd64.deb ...
Unpacking libnvidia-legacy-340xx-eglcore:amd64 (340.102-1) ...
Selecting previously unselected package libegl1-nvidia-legacy-340xx:amd64.
Preparing to unpack .../06-libegl1-nvidia-legacy-340xx_340.102-1_amd64.deb ...
Unpacking libegl1-nvidia-legacy-340xx:amd64 (340.102-1) ...
Selecting previously unselected package nvidia-legacy-340xx-driver-libs:amd64.
Preparing to unpack .../07-nvidia-legacy-340xx-driver-libs_340.102-1_amd64.deb ...
Unpacking nvidia-legacy-340xx-driver-libs:amd64 (340.102-1) ...
Selecting previously unselected package libnvidia-legacy-340xx-ml1:amd64.
Preparing to unpack .../08-libnvidia-legacy-340xx-ml1_340.102-1_amd64.deb ...
Unpacking libnvidia-legacy-340xx-ml1:amd64 (340.102-1) ...
Selecting previously unselected package nvidia-legacy-340xx-driver-bin.
Preparing to unpack .../09-nvidia-legacy-340xx-driver-bin_340.102-1_amd64.deb ...
Unpacking nvidia-legacy-340xx-driver-bin (340.102-1) ...
Selecting previously unselected package xserver-xorg-video-nvidia-legacy-340xx.
Preparing to unpack .../10-xserver-xorg-video-nvidia-legacy-340xx_340.102-1_amd64.deb ...
Unpacking xserver-xorg-video-nvidia-legacy-340xx (340.102-1) ...
Selecting previously unselected package nvidia-legacy-340xx-vdpau-driver:amd64.
Preparing to unpack .../11-nvidia-legacy-340xx-vdpau-driver_340.102-1_amd64.deb ...
Unpacking nvidia-legacy-340xx-vdpau-driver:amd64 (340.102-1) ...
Selecting previously unselected package nvidia-legacy-340xx-kernel-support.
Preparing to unpack .../12-nvidia-legacy-340xx-kernel-support_340.102-1_amd64.deb ...
Unpacking nvidia-legacy-340xx-kernel-support (340.102-1) ...
Selecting previously unselected package nvidia-legacy-340xx-kernel-dkms.
Preparing to unpack .../13-nvidia-legacy-340xx-kernel-dkms_340.102-1_amd64.deb ...
Unpacking nvidia-legacy-340xx-kernel-dkms (340.102-1) ...
Selecting previously unselected package nvidia-legacy-340xx-driver.
Preparing to unpack .../14-nvidia-legacy-340xx-driver_340.102-1_amd64.deb ...
Unpacking nvidia-legacy-340xx-driver (340.102-1) ...
Selecting previously unselected package nvidia-settings-legacy-340xx.
Preparing to unpack .../15-nvidia-settings-legacy-340xx_340.101-1_amd64.deb ...
Unpacking nvidia-settings-legacy-340xx (340.101-1) ...
Selecting previously unselected package libnvidia-legacy-340xx-eglcore:i386.
Preparing to unpack .../16-libnvidia-legacy-340xx-eglcore_340.102-1_i386.deb ...
Unpacking libnvidia-legacy-340xx-eglcore:i386 (340.102-1) ...
Selecting previously unselected package libegl1-nvidia-legacy-340xx:i386.
Preparing to unpack .../17-libegl1-nvidia-legacy-340xx_340.102-1_i386.deb ...
Unpacking libegl1-nvidia-legacy-340xx:i386 (340.102-1) ...
Selecting previously unselected package libgles1-nvidia-legacy-340xx:i386.
Preparing to unpack .../18-libgles1-nvidia-legacy-340xx_340.102-1_i386.deb ...
Unpacking libgles1-nvidia-legacy-340xx:i386 (340.102-1) ...
Selecting previously unselected package libgles1-nvidia-legacy-340xx:amd64.
Preparing to unpack .../19-libgles1-nvidia-legacy-340xx_340.102-1_amd64.deb ...
Unpacking libgles1-nvidia-legacy-340xx:amd64 (340.102-1) ...
Selecting previously unselected package libgles2-nvidia-legacy-340xx:i386.
Preparing to unpack .../20-libgles2-nvidia-legacy-340xx_340.102-1_i386.deb ...
Unpacking libgles2-nvidia-legacy-340xx:i386 (340.102-1) ...
Selecting previously unselected package libgles2-nvidia-legacy-340xx:amd64.
Preparing to unpack .../21-libgles2-nvidia-legacy-340xx_340.102-1_amd64.deb ...
Unpacking libgles2-nvidia-legacy-340xx:amd64 (340.102-1) ...
Selecting previously unselected package libnvidia-legacy-340xx-cfg1:i386.
Preparing to unpack .../22-libnvidia-legacy-340xx-cfg1_340.102-1_i386.deb ...
Unpacking libnvidia-legacy-340xx-cfg1:i386 (340.102-1) ...
Selecting previously unselected package libnvidia-legacy-340xx-cfg1:amd64.
Preparing to unpack .../23-libnvidia-legacy-340xx-cfg1_340.102-1_amd64.deb ...
Unpacking libnvidia-legacy-340xx-cfg1:amd64 (340.102-1) ...
Selecting previously unselected package nvidia-legacy-340xx-driver-libs:i386.
Preparing to unpack .../24-nvidia-legacy-340xx-driver-libs_340.102-1_i386.deb ...
Unpacking nvidia-legacy-340xx-driver-libs:i386 (340.102-1) ...
Selecting previously unselected package nvidia-legacy-340xx-driver-libs-i386:i386.
Preparing to unpack .../25-nvidia-legacy-340xx-driver-libs-i386_340.102-1_i386.deb ...
Unpacking nvidia-legacy-340xx-driver-libs-i386:i386 (340.102-1) ...
Setting up libnvidia-legacy-340xx-glcore:i386 (340.102-1) ...
Setting up libnvidia-legacy-340xx-glcore:amd64 (340.102-1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for menu (2.1.47+b1) ...
Setting up nvidia-legacy-340xx-alternative (340.102-1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Setting up libnvidia-legacy-340xx-eglcore:amd64 (340.102-1) ...
Setting up libnvidia-legacy-340xx-eglcore:i386 (340.102-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for nvidia-legacy-340xx-alternative (340.102-1) ...
Setting up libgles2-nvidia-legacy-340xx:i386 (340.102-1) ...
Setting up libgles2-nvidia-legacy-340xx:amd64 (340.102-1) ...
Setting up xserver-xorg-video-nvidia-legacy-340xx (340.102-1) ...
Setting up nvidia-settings-legacy-340xx (340.101-1) ...
Setting up nvidia-legacy-340xx-vdpau-driver:amd64 (340.102-1) ...
Setting up libegl1-nvidia-legacy-340xx:amd64 (340.102-1) ...
Setting up libegl1-nvidia-legacy-340xx:i386 (340.102-1) ...
Setting up libnvidia-legacy-340xx-cfg1:i386 (340.102-1) ...
Setting up libnvidia-legacy-340xx-cfg1:amd64 (340.102-1) ...
Setting up nvidia-legacy-340xx-kernel-support (340.102-1) ...
Setting up libnvidia-legacy-340xx-ml1:amd64 (340.102-1) ...
Setting up nvidia-legacy-340xx-driver-bin (340.102-1) ...
Setting up libgl1-nvidia-legacy-340xx-glx:i386 (340.102-1) ...
Setting up libgl1-nvidia-legacy-340xx-glx:amd64 (340.102-1) ...
Setting up libgles1-nvidia-legacy-340xx:i386 (340.102-1) ...
Setting up libgles1-nvidia-legacy-340xx:amd64 (340.102-1) ...
Setting up nvidia-legacy-340xx-driver-libs:amd64 (340.102-1) ...
Setting up nvidia-legacy-340xx-driver-libs:i386 (340.102-1) ...
Setting up nvidia-legacy-340xx-driver-libs-i386:i386 (340.102-1) ...
Processing triggers for nvidia-legacy-340xx-alternative (340.102-1) ...
Setting up nvidia-legacy-340xx-kernel-dkms (340.102-1) ...
Loading new nvidia-legacy-340xx-340.102 DKMS files...
Building for 4.13.0-0.bpo.1-amd64
Building initial module for 4.13.0-0.bpo.1-amd64
Error! Bad return status for module build on kernel: 4.13.0-0.bpo.1-amd64 (x86_64)
Consult /var/lib/dkms/nvidia-legacy-340xx/340.102/build/make.log for more information.
dpkg: error processing package nvidia-legacy-340xx-kernel-dkms (--configure):
 subprocess installed post-installation script returned error exit status 10
dpkg: dependency problems prevent configuration of nvidia-legacy-340xx-driver:
 nvidia-legacy-340xx-driver depends on nvidia-legacy-340xx-kernel-dkms (= 340.102-1) | nvidia-legacy-340xx-kernel-340.102; however:
  Package nvidia-legacy-340xx-kernel-dkms is not configured yet.
  Package nvidia-legacy-340xx-kernel-340.102 is not installed.
  Package nvidia-legacy-340xx-kernel-dkms which provides nvidia-legacy-340xx-kernel-340.102 is not configured yet.

dpkg: error processing package nvidia-legacy-340xx-driver (--configure):
 dependency problems - leaving unconfigured
-------------- next part --------------
DKMS make.log for nvidia-legacy-340xx-340.102 for kernel 4.13.0-0.bpo.1-amd64 (x86_64)
Thu Nov 16 15:23:35 CET 2017
NVIDIA: calling KBUILD...
make NV_MODULE_SUFFIX= KBUILD_OUTPUT=/lib/modules/4.13.0-0.bpo.1-amd64/build KERNEL_SOURCES=/lib/modules/4.13.0-0.bpo.1-amd64/source KERNEL_OUTPUT=/lib/modules/4.13.0-0.bpo.1-amd64/build KBUILD_VERBOSE=1 -C /lib/modules/4.13.0-0.bpo.1-amd64/source SUBDIRS=/var/lib/dkms/nvidia-legacy-340xx/340.102/build ARCH=x86_64 modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-0.bpo.1-common'
make -C /lib/modules/4.13.0-0.bpo.1-amd64/build KBUILD_SRC=/usr/src/linux-headers-4.13.0-0.bpo.1-common \
-f /usr/src/linux-headers-4.13.0-0.bpo.1-common/Makefile modules
make[2]: Entering directory '/usr/src/linux-headers-4.13.0-0.bpo.1-amd64'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)
mkdir -p /var/lib/dkms/nvidia-legacy-340xx/340.102/build/.tmp_versions ; rm -f /var/lib/dkms/nvidia-legacy-340xx/340.102/build/.tmp_versions/*
make -f /usr/src/linux-headers-4.13.0-0.bpo.1-common/scripts/Makefile.build obj=/var/lib/dkms/nvidia-legacy-340xx/340.102/build
CONFTEST=/bin/sh /var/lib/dkms/nvidia-legacy-340xx/340.102/build/conftest.sh " gcc-6" " gcc-6" x86_64 /lib/modules/4.13.0-0.bpo.1-amd64/source /lib/modules/4.13.0-0.bpo.1-amd64/build
CONFTEST_CFLAGS=
KBUILD_CFLAGS=-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -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 -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables  -fno-delete-null-pointer-checks -Wno-frame-address    -O2  --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable  -fno-var-tracking-assignments -g -pg  -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init    
LINUXINCLUDE=-I/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include -I./arch/x86/include/generated  -I/usr/src/linux-headers-4.13.0-0.bpo.1-common/include -I./include -I/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/kconfig.h
LDFLAGS=-m elf_x86_64
ARCH=x86_64
for SANITY_CHECK in rivafb_sanity_check nvidiafb_sanity_check dom0_sanity_check xen_sanity_check; do \
 echo " CONFTEST: $SANITY_CHECK"; \
 if ! /bin/sh /var/lib/dkms/nvidia-legacy-340xx/340.102/build/conftest.sh " gcc-6" " gcc-6" x86_64 /lib/modules/4.13.0-0.bpo.1-amd64/source /lib/modules/4.13.0-0.bpo.1-amd64/build $SANITY_CHECK full_output; then \
 exit 1; \
 fi; \
done
 CONFTEST: rivafb_sanity_check
 CONFTEST: nvidiafb_sanity_check
 CONFTEST: dom0_sanity_check
 CONFTEST: xen_sanity_check
 CONFTEST: compile_tests
if ! /bin/sh /var/lib/dkms/nvidia-legacy-340xx/340.102/build/conftest.sh " gcc-6" " gcc-6" x86_64 /lib/modules/4.13.0-0.bpo.1-amd64/source /lib/modules/4.13.0-0.bpo.1-amd64/build compile_tests remap_pfn_range vmap set_pages_uc set_memory_uc set_memory_array_uc change_page_attr i2c_adapter pci_get_class pm_message_t irq_handler_t pci_choose_state vm_insert_page acpi_device_ops acpi_op_remove acpi_device_id acquire_console_sem console_lock kmem_cache_create outer_flush_all on_each_cpu smp_call_function nvmap_support acpi_evaluate_integer ioremap_cache ioremap_wc proc_dir_entry INIT_WORK acpi_walk_namespace scatterlist pci_domain_nr pci_dma_mapping_error file_operations sg_alloc_table sg_init_table pci_get_domain_bus_and_slot get_num_physpages efi_enabled dom0_kernel_present drm_available proc_create_data pde_data proc_remove sg_table pm_vt_switch_required pci_save_state file_inode drm_pci_set_busid write_cr4 for_each_online_node node_end_pfn get_user_pages_remote; then exit 1; fi
conftest.sh: CC= gcc-6
conftest.sh: CFLAGS=-O2 -D__KERNEL__ -DKBUILD_BASENAME="#conftest29623" -DKBUILD_MODNAME="#conftest29623" -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/6/include -I/lib/modules/4.13.0-0.bpo.1-amd64/source/include/asm-x86_64/mach-default -I/lib/modules/4.13.0-0.bpo.1-amd64/source/include/asm-x86/mach-default -I/lib/modules/4.13.0-0.bpo.1-amd64/source/arch/x86/include/asm/mach-default -I/lib/modules/4.13.0-0.bpo.1-amd64/source/include/arch/x86/include/uapi -I/lib/modules/4.13.0-0.bpo.1-amd64/build/include2 -I/lib/modules/4.13.0-0.bpo.1-amd64/build/include -include /lib/modules/4.13.0-0.bpo.1-amd64/build/include/generated/autoconf.h -I/lib/modules/4.13.0-0.bpo.1-amd64/source/include -I/lib/modules/4.13.0-0.bpo.1-amd64/source/include/uapi -I/lib/modules/4.13.0-0.bpo.1-amd64/build/include/generated/uapi -I/lib/modules/4.13.0-0.bpo.1-amd64/source/arch/x86/include -I/lib/modules/4.13.0-0.bpo.1-amd64/source/arch/x86/include/uapi -I/lib/modules/4.13.0-0.bpo.1-amd64/build/arch/x86/include/generated -I/lib/modules/4.13.0-0.bpo.1-amd64/build/arch/x86/include/generated/uapi -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -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 -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack
conftest.sh: KBUILD_CFLAGS=-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -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 -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables  -fno-delete-null-pointer-checks -Wno-frame-address    -O2  --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable  -fno-var-tracking-assignments -g -pg  -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init    
conftest.sh: ARCH=x86_64
 CONFTEST conftest.h:
#include "conftest/macros.h"
#include "conftest/functions.h"
#include "conftest/symbols.h"
#include "conftest/types.h"
#include "conftest/generic.h"
#include "conftest/headers.h"
 CONFTEST macros.h:
#define NV_INIT_WORK_PRESENT
#define NV_INIT_WORK_ARGUMENT_COUNT 2
 CONFTEST functions.h:
#define NV_REMAP_PFN_RANGE_PRESENT
#define NV_VMAP_PRESENT
#define NV_VMAP_ARGUMENT_COUNT 4
#undef NV_SET_PAGES_UC_PRESENT
#undef NV_SET_MEMORY_UC_PRESENT
#undef NV_SET_MEMORY_ARRAY_UC_PRESENT
#undef NV_CHANGE_PAGE_ATTR_PRESENT
#define NV_PCI_GET_CLASS_PRESENT
#define NV_PCI_CHOOSE_STATE_PRESENT
#define NV_VM_INSERT_PAGE_PRESENT
#undef NV_ACQUIRE_CONSOLE_SEM_PRESENT
#define NV_CONSOLE_LOCK_PRESENT
#define NV_KMEM_CACHE_CREATE_PRESENT
#define NV_KMEM_CACHE_CREATE_ARGUMENT_COUNT 5
#define NV_ON_EACH_CPU_PRESENT
#define NV_ON_EACH_CPU_ARGUMENT_COUNT 3
#define NV_SMP_CALL_FUNCTION_PRESENT
#define NV_SMP_CALL_FUNCTION_ARGUMENT_COUNT 3
#define NV_ACPI_EVALUATE_INTEGER_PRESENT
typedef unsigned long long nv_acpi_integer_t;
#define NV_IOREMAP_CACHE_PRESENT
#define NV_IOREMAP_WC_PRESENT
#define NV_ACPI_WALK_NAMESPACE_PRESENT
#define NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT 7
#define NV_PCI_DOMAIN_NR_PRESENT
#define NV_PCI_DMA_MAPPING_ERROR_PRESENT
#define NV_PCI_DMA_MAPPING_ERROR_ARGUMENT_COUNT 2
#define NV_SG_ALLOC_TABLE_PRESENT
#define NV_SG_ALLOC_TABLE_FROM_PAGES_PRESENT
#define NV_SG_INIT_TABLE_PRESENT
#define NV_PCI_GET_DOMAIN_BUS_AND_SLOT_PRESENT
#define NV_GET_NUM_PHYSPAGES_PRESENT
#define NV_EFI_ENABLED_PRESENT
#define NV_EFI_ENABLED_ARGUMENT_COUNT 1
#define NV_PROC_CREATE_DATA_PRESENT
#define NV_PDE_DATA_PRESENT
#define NV_PROC_REMOVE_PRESENT
#define NV_PM_VT_SWITCH_REQUIRED_PRESENT
#define NV_PCI_SAVE_STATE_ARGUMENT_COUNT 1
#define NV_DRM_PCI_SET_BUSID_PRESENT
#undef NV_WRITE_CR4_PRESENT
#define NV_FOR_EACH_ONLINE_NODE_PRESENT
#define NV_NODE_END_PFN_PRESENT
#define NV_GET_USER_PAGES_REMOTE_PRESENT
#undef NV_GET_USER_PAGES_HAS_WRITE_AND_FORCE_ARGS
#define NV_GET_USER_PAGES_REMOTE_HAS_LOCKED_ARG
 CONFTEST symbols.h:
 CONFTEST types.h:
#undef NV_I2C_ADAPTER_HAS_CLIENT_REGISTER
#define NV_PM_MESSAGE_T_PRESENT
#define NV_PM_MESSAGE_T_HAS_EVENT
#define NV_IRQ_HANDLER_T_PRESENT
#define NV_IRQ_HANDLER_T_ARGUMENT_COUNT 2
#undef NV_ACPI_DEVICE_OPS_HAS_MATCH
#define NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT 1
#define NV_ACPI_DEVICE_ID_HAS_DRIVER_DATA
#undef NV_OUTER_FLUSH_ALL_PRESENT
#undef NV_PROC_DIR_ENTRY_HAS_OWNER
#define NV_SCATTERLIST_HAS_PAGE_LINK
#undef NV_FILE_OPERATIONS_HAS_IOCTL
#define NV_FILE_OPERATIONS_HAS_UNLOCKED_IOCTL
#define NV_FILE_OPERATIONS_HAS_COMPAT_IOCTL
#define NV_SG_TABLE_PRESENT
#define NV_FILE_HAS_INODE
 CONFTEST generic.h:
#undef HAVE_NV_ANDROID
#undef NV_DOM0_KERNEL_PRESENT
#define NV_DRM_AVAILABLE
 CONFTEST: patch_check
if ! /bin/sh /var/lib/dkms/nvidia-legacy-340xx/340.102/build/conftest.sh " gcc-6" " gcc-6" x86_64 /lib/modules/4.13.0-0.bpo.1-amd64/source /lib/modules/4.13.0-0.bpo.1-amd64/build patch_check; then exit 1; fi
 CONFTEST patches.h:
static struct {
const char *short_description;
const char *description;
} __nv_patches[] = {
{ NULL, NULL } };
echo \#define NV_COMPILER \"` gcc-6 -v 2>&1 | tail -n 1`\" > /var/lib/dkms/nvidia-legacy-340xx/340.102/build/nv_compiler.h
   gcc-6 -Wp,-MD,/var/lib/dkms/nvidia-legacy-340xx/340.102/build/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/6/include -I/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include -I./arch/x86/include/generated  -I/usr/src/linux-headers-4.13.0-0.bpo.1-common/include -I./include -I/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/uapi -I./include/generated/uapi -include /usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/kconfig.h  -I/var/lib/dkms/nvidia-legacy-340xx/340.102/build -I/var/lib/dkms/nvidia-legacy-340xx/340.102/build -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -Werror-implicit-function-declaration -Wno-format-security -std=gnu89 -fno-PIE -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -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 -funit-at-a-time -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -O2 --param=allow-store-data-races=0 -DCC_HAVE_ASM_GOTO -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mfentry -DCC_USING_FENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG  -I/var/lib/dkms/nvidia-legacy-340xx/340.102/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.102\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -DNV_DEV_NAME=\"nvidia\"  -DMODULE  -DKBUILD_BASENAME='"nv"'  -DKBUILD_MODNAME='"nvidia"' -c -o /var/lib/dkms/nvidia-legacy-340xx/340.102/build/.tmp_nv.o /var/lib/dkms/nvidia-legacy-340xx/340.102/build/nv.c
In file included from /usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/current.h:4:0,
                 from /usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/sched.h:11,
                 from /usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/utsname.h:5,
                 from /var/lib/dkms/nvidia-legacy-340xx/340.102/build/nv-linux.h:44,
                 from /var/lib/dkms/nvidia-legacy-340xx/340.102/build/nv.c:13:
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/thread_info.h: In function ?check_copy_size?:
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/thread_info.h:130:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if (unlikely(sz >= 0 && sz < bytes)) {
                             ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/compiler.h:175:42: note: in definition of macro ?unlikely?
 # define unlikely(x) __builtin_expect(!!(x), 0)
                                          ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/asm-generic/qrwlock.h: In function ?queued_write_trylock?:
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/asm-generic/qrwlock.h:106:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
           cnts, cnts | _QW_LOCKED) == cnts);
                                    ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/compiler.h:174:40: note: in definition of macro ?likely?
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/mmzone.h: In function ?next_zones_zonelist?:
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/mmzone.h:985:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
                                            ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/compiler.h:174:40: note: in definition of macro ?likely?
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
In file included from /usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/current.h:5:0,
                 from /usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/sched.h:11,
                 from /usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/utsname.h:5,
                 from /var/lib/dkms/nvidia-legacy-340xx/340.102/build/nv-linux.h:44,
                 from /var/lib/dkms/nvidia-legacy-340xx/340.102/build/nv.c:13:
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-refcount.h: In function ?percpu_ref_get_many?:
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ?percpu_add_op?
 #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                  ^~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:364:11: note: in expansion of macro ?this_cpu_add_1?
   case 1: stem##1(variable, __VA_ARGS__);break;  \
           ^~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:496:33: note: in expansion of macro ?__pcpu_size_call?
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-refcount.h:176:3: note: in expansion of macro ?this_cpu_add?
   this_cpu_add(*percpu_count, nr);
   ^~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ?percpu_add_op?
 #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                  ^~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:365:11: note: in expansion of macro ?this_cpu_add_2?
   case 2: stem##2(variable, __VA_ARGS__);break;  \
           ^~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:496:33: note: in expansion of macro ?__pcpu_size_call?
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-refcount.h:176:3: note: in expansion of macro ?this_cpu_add?
   this_cpu_add(*percpu_count, nr);
   ^~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ?percpu_add_op?
 #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                  ^~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:366:11: note: in expansion of macro ?this_cpu_add_4?
   case 4: stem##4(variable, __VA_ARGS__);break;  \
           ^~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:496:33: note: in expansion of macro ?__pcpu_size_call?
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-refcount.h:176:3: note: in expansion of macro ?this_cpu_add?
   this_cpu_add(*percpu_count, nr);
   ^~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ?percpu_add_op?
 #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                   ^~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:367:11: note: in expansion of macro ?this_cpu_add_8?
   case 8: stem##8(variable, __VA_ARGS__);break;  \
           ^~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:496:33: note: in expansion of macro ?__pcpu_size_call?
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-refcount.h:176:3: note: in expansion of macro ?this_cpu_add?
   this_cpu_add(*percpu_count, nr);
   ^~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-refcount.h: In function ?percpu_ref_put_many?:
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ?percpu_add_op?
 #define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
                                  ^~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:364:11: note: in expansion of macro ?this_cpu_add_1?
   case 1: stem##1(variable, __VA_ARGS__);break;  \
           ^~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:496:33: note: in expansion of macro ?__pcpu_size_call?
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:506:33: note: in expansion of macro ?this_cpu_add?
 #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                 ^~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-refcount.h:275:3: note: in expansion of macro ?this_cpu_sub?
   this_cpu_sub(*percpu_count, nr);
   ^~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ?percpu_add_op?
 #define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
                                  ^~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:365:11: note: in expansion of macro ?this_cpu_add_2?
   case 2: stem##2(variable, __VA_ARGS__);break;  \
           ^~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:496:33: note: in expansion of macro ?__pcpu_size_call?
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:506:33: note: in expansion of macro ?this_cpu_add?
 #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                 ^~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-refcount.h:275:3: note: in expansion of macro ?this_cpu_sub?
   this_cpu_sub(*percpu_count, nr);
   ^~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ?percpu_add_op?
 #define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
                                  ^~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:366:11: note: in expansion of macro ?this_cpu_add_4?
   case 4: stem##4(variable, __VA_ARGS__);break;  \
           ^~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:496:33: note: in expansion of macro ?__pcpu_size_call?
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:506:33: note: in expansion of macro ?this_cpu_add?
 #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                 ^~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-refcount.h:275:3: note: in expansion of macro ?this_cpu_sub?
   this_cpu_sub(*percpu_count, nr);
   ^~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ?percpu_add_op?
 #define this_cpu_add_8(pcp, val)  percpu_add_op((pcp), val)
                                   ^~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:367:11: note: in expansion of macro ?this_cpu_add_8?
   case 8: stem##8(variable, __VA_ARGS__);break;  \
           ^~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:496:33: note: in expansion of macro ?__pcpu_size_call?
 #define this_cpu_add(pcp, val)  __pcpu_size_call(this_cpu_add_, pcp, val)
                                 ^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:506:33: note: in expansion of macro ?this_cpu_add?
 #define this_cpu_sub(pcp, val)  this_cpu_add(pcp, -(typeof(pcp))(val))
                                 ^~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-refcount.h:275:3: note: in expansion of macro ?this_cpu_sub?
   this_cpu_sub(*percpu_count, nr);
   ^~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-rwsem.h: In function ?percpu_up_read_preempt_enable?:
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:400:34: note: in expansion of macro ?percpu_add_op?
 #define raw_cpu_add_1(pcp, val)  percpu_add_op((pcp), val)
                                  ^~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:364:11: note: in expansion of macro ?raw_cpu_add_1?
   case 1: stem##1(variable, __VA_ARGS__);break;  \
           ^~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:409:32: note: in expansion of macro ?__pcpu_size_call?
 #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                ^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:445:2: note: in expansion of macro ?raw_cpu_add?
  raw_cpu_add(pcp, val);      \
  ^~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:483:34: note: in expansion of macro ?__this_cpu_add?
 #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                  ^~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:485:30: note: in expansion of macro ?__this_cpu_sub?
 #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                              ^~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ?__this_cpu_dec?
   __this_cpu_dec(*sem->read_count);
   ^~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:401:34: note: in expansion of macro ?percpu_add_op?
 #define raw_cpu_add_2(pcp, val)  percpu_add_op((pcp), val)
                                  ^~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:365:11: note: in expansion of macro ?raw_cpu_add_2?
   case 2: stem##2(variable, __VA_ARGS__);break;  \
           ^~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:409:32: note: in expansion of macro ?__pcpu_size_call?
 #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                ^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:445:2: note: in expansion of macro ?raw_cpu_add?
  raw_cpu_add(pcp, val);      \
  ^~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:483:34: note: in expansion of macro ?__this_cpu_add?
 #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                  ^~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:485:30: note: in expansion of macro ?__this_cpu_sub?
 #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                              ^~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ?__this_cpu_dec?
   __this_cpu_dec(*sem->read_count);
   ^~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:402:34: note: in expansion of macro ?percpu_add_op?
 #define raw_cpu_add_4(pcp, val)  percpu_add_op((pcp), val)
                                  ^~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:366:11: note: in expansion of macro ?raw_cpu_add_4?
   case 4: stem##4(variable, __VA_ARGS__);break;  \
           ^~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:409:32: note: in expansion of macro ?__pcpu_size_call?
 #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                ^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:445:2: note: in expansion of macro ?raw_cpu_add?
  raw_cpu_add(pcp, val);      \
  ^~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:483:34: note: in expansion of macro ?__this_cpu_add?
 #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                  ^~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:485:30: note: in expansion of macro ?__this_cpu_sub?
 #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                              ^~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ?__this_cpu_dec?
   __this_cpu_dec(*sem->read_count);
   ^~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
          ((val) == 1 || (val) == -1)) ?  \
                               ^
/usr/src/linux-headers-4.13.0-0.bpo.1-common/arch/x86/include/asm/percpu.h:469:35: note: in expansion of macro ?percpu_add_op?
 #define raw_cpu_add_8(pcp, val)   percpu_add_op((pcp), val)
                                   ^~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:367:11: note: in expansion of macro ?raw_cpu_add_8?
   case 8: stem##8(variable, __VA_ARGS__);break;  \
           ^~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:409:32: note: in expansion of macro ?__pcpu_size_call?
 #define raw_cpu_add(pcp, val)  __pcpu_size_call(raw_cpu_add_, pcp, val)
                                ^~~~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:445:2: note: in expansion of macro ?raw_cpu_add?
  raw_cpu_add(pcp, val);      \
  ^~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:483:34: note: in expansion of macro ?__this_cpu_add?
 #define __this_cpu_sub(pcp, val) __this_cpu_add(pcp, -(typeof(pcp))(val))
                                  ^~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-defs.h:485:30: note: in expansion of macro ?__this_cpu_sub?
 #define __this_cpu_dec(pcp)  __this_cpu_sub(pcp, 1)
                              ^~~~~~~~~~~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/include/linux/percpu-rwsem.h:96:3: note: in expansion of macro ?__this_cpu_dec?
   __this_cpu_dec(*sem->read_count);
   ^~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia-legacy-340xx/340.102/build/nv.c:13:0:
/var/lib/dkms/nvidia-legacy-340xx/340.102/build/nv-linux.h: At top level:
/var/lib/dkms/nvidia-legacy-340xx/340.102/build/nv-linux.h:204:2: error: #error "This driver requires the ability to change memory types!"
 #error "This driver requires the ability to change memory types!"
  ^~~~~
/usr/src/linux-headers-4.13.0-0.bpo.1-common/scripts/Makefile.build:307: recipe for target '/var/lib/dkms/nvidia-legacy-340xx/340.102/build/nv.o' failed
make[3]: *** [/var/lib/dkms/nvidia-legacy-340xx/340.102/build/nv.o] Error 1
/usr/src/linux-headers-4.13.0-0.bpo.1-common/Makefile:1529: recipe for target '_module_/var/lib/dkms/nvidia-legacy-340xx/340.102/build' failed
make[2]: *** [_module_/var/lib/dkms/nvidia-legacy-340xx/340.102/build] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.13.0-0.bpo.1-amd64'
Makefile:145: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-0.bpo.1-common'
Makefile:193: recipe for target 'nvidia.ko' failed
make: *** [nvidia.ko] Error 2
make: Entering directory '/var/lib/dkms/nvidia-legacy-340xx/340.102/build/uvm'
cd ./..; make module SYSSRC=/lib/modules/4.13.0-0.bpo.1-amd64/source SYSOUT=/lib/modules/4.13.0-0.bpo.1-amd64/build KBUILD_EXTMOD=./..
make[1]: Entering directory '/var/lib/dkms/nvidia-legacy-340xx/340.102/build'
NVIDIA: calling KBUILD...
make NV_MODULE_SUFFIX= KBUILD_OUTPUT=/lib/modules/4.13.0-0.bpo.1-amd64/build KERNEL_SOURCES=/lib/modules/4.13.0-0.bpo.1-amd64/source KERNEL_OUTPUT=/lib/modules/4.13.0-0.bpo.1-amd64/build KBUILD_VERBOSE=1 -C /lib/modules/4.13.0-0.bpo.1-amd64/source SUBDIRS=/var/lib/dkms/nvidia-legacy-340xx/340.102/build ARCH=x86_64 modules
make[2]: Entering directory '/usr/src/linux-headers-4.13.0-0.bpo.1-common'
make -C /lib/modules/4.13.0-0.bpo.1-amd64/build KBUILD_SRC=/usr/src/linux-headers-4.13.0-0.bpo.1-common \
-f /usr/src/linux-headers-4.13.0-0.bpo.1-common/Makefile modules
make[3]: Entering directory '/usr/src/linux-headers-4.13.0-0.bpo.1-amd64'
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (		\
echo >&2;							\
echo >&2 "  ERROR: Kernel configuration is invalid.";		\
echo >&2 "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
echo >&2 "         Run 'make oldconfig && make prepare' on kernel src to fix it.";	\
echo >&2 ;							\
/bin/false)
mkdir -p ./../.tmp_versions ; rm -f ./../.tmp_versions/*
make -f /usr/src/linux-headers-4.13.0-0.bpo.1-common/scripts/Makefile.build obj=./..
/usr/src/linux-headers-4.13.0-0.bpo.1-common/scripts/Makefile.build:44: /usr/src/linux-headers-4.13.0-0.bpo.1-common/./../Makefile: No such file or directory
make[4]: *** No rule to make target '/usr/src/linux-headers-4.13.0-0.bpo.1-common/./../Makefile'.  Stop.
/usr/src/linux-headers-4.13.0-0.bpo.1-common/Makefile:1529: recipe for target '_module_./..' failed
make[3]: *** [_module_./..] Error 2
make[3]: Leaving directory '/usr/src/linux-headers-4.13.0-0.bpo.1-amd64'
Makefile:145: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.13.0-0.bpo.1-common'
Makefile:193: recipe for target 'nvidia.ko' failed
make[1]: *** [nvidia.ko] Error 2
make[1]: Leaving directory '/var/lib/dkms/nvidia-legacy-340xx/340.102/build'
Makefile:219: recipe for target '../Module.symvers' failed
make: *** [../Module.symvers] Error 2
make: Leaving directory '/var/lib/dkms/nvidia-legacy-340xx/340.102/build/uvm'


More information about the pkg-nvidia-devel mailing list