Bug#1114234: nvidia-graphics-drivers-legacy-340xx: FTBFS: nv_stdarg.h:36:13: fatal error: stdarg.h: No such file or directory

Santiago Vila sanvila at debian.org
Fri Sep 5 19:21:29 BST 2025


Package: src:nvidia-graphics-drivers-legacy-340xx
Version: 340.108-25
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build.

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202509/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:nvidia-graphics-drivers-legacy-340xx, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
   debian/rules build
make[2]: Entering directory '/<<PKGBUILDDIR>>'
dh build --with dkms
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_configure
make[3]: Entering directory '/<<PKGBUILDDIR>>'
perl -p \
-e 's{#VERSION#}{340.108}g;' \
-e 's{#MAJOR#}{340}g;' \
-e 's{#NVIDIA#}{nvidia-legacy-340xx}g;' \
-e 's{#VARIANT#}{-legacy-340xx}g;' \
-e 's{#CURRENT#}{legacy-340xx}g;' \
-e 's{#NVIDIA-KERNEL#}{nvidia-legacy-340xx-kernel}g;' \

[... snipped ...]


Applying patch use-kbuild-flags.patch
patching file conftest.sh
patching file nvidia-modules-common.mk

Applying patch build-sanity-checks.patch
patching file nvidia-modules-common.mk

Applying patch conftest-verbose.patch
patching file nvidia-modules-common.mk
patching file conftest.sh

Applying patch conftest-via-kbuild.patch
patching file nvidia-modules-common.mk

Applying patch not-silent.patch
patching file nvidia-modules-common.mk

Applying patch disable-cc_version_check.patch
patching file nvidia-modules-common.mk

Applying patch use-nv-kernel-ARCH.o_binary.patch
patching file Makefile
patching file nvidia-modules-common.mk

Applying patch avoid-ld.gold.patch
patching file nvidia-modules-common.mk

Applying patch conftest-include-guard.patch
patching file conftest.sh

Applying patch ignore_xen_on_arm.patch
patching file nv-linux.h
patching file conftest.sh

Applying patch arm-outer-sync.patch
patching file nv-linux.h

Applying patch armhf-on-arm64-kernel.patch
patching file nvidia-modules-common.mk

Now at patch armhf-on-arm64-kernel.patch
cd kernel-source-tree && /usr/bin/make -j2 NV_VERBOSE=1 KERNEL_UNAME=6.16.3+deb14-amd64
make[4]: Entering directory '/<<PKGBUILDDIR>>/kernel-source-tree'
NVIDIA: calling KBUILD...
/usr/bin/make NV_MODULE_SUFFIX= KBUILD_OUTPUT=/lib/modules/6.16.3+deb14-amd64/build KERNEL_SOURCES=/lib/modules/6.16.3+deb14-amd64/source KERNEL_OUTPUT=/lib/modules/6.16.3+deb14-amd64/build KBUILD_VERBOSE=1 -C /lib/modules/6.16.3+deb14-amd64/source M=/<<PKGBUILDDIR>>/kernel-source-tree ARCH=x86_64 modules
make[5]: Entering directory '/usr/src/linux-headers-6.16.3+deb14-common'
/usr/bin/make  -C /<<PKGBUILDDIR>>/kernel-source-tree \
-f /usr/src/linux-headers-6.16.3+deb14-common/Makefile modules
make[6]: Entering directory '/<<PKGBUILDDIR>>/kernel-source-tree'
/usr/bin/make --no-print-directory -C /<<PKGBUILDDIR>>/kernel-source-tree \
-f /usr/src/linux-headers-6.16.3+deb14-common/Makefile modules
/usr/bin/make -f /usr/src/linux-headers-6.16.3+deb14-common/scripts/Makefile.build obj=. need-builtin=1 need-modorder=1 
nvidia-modules-common.mk:181: FORCE prerequisite is missing
# cmd_mod nvidia.mod
  printf '%s
'   nv-kernel.o nv.o nv-acpi.o nv-chrdev.o nv-cray.o nv-dma.o nv-drm.o nv-gvi.o nv-i2c.o nv-mempool.o nv-mmap.o nv-p2p.o nv-pat.o nv-procfs.o nv-usermap.o nv-vm.o nv-vtophys.o os-interface.o os-mlock.o os-pci.o os-registry.o os-smp.o os-usermap.o nv_uvm_interface.o nv-frontend.o | awk '!x[$0]++ { print("./"$0) }' > nvidia.mod
# SYMLINK nv-kernel.o
  ln -sf /<<PKGBUILDDIR>>/kernel-source-tree/nv-kernel-amd64.o_binary nv-kernel.o
uname -a
echo \#define NV_COMPILER \"` x86_64-linux-gnu-gcc-14 -v 2>&1 | tail -n 1`\" > nv_compiler.h
Linux sbuild 6.12.41+deb13-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.41-1 (2025-08-12) x86_64 GNU/Linux
CONFTEST=/bin/sh ././conftest.sh "x86_64-linux-gnu-gcc-14 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=return-type -Wno-error=strict-prototypes" "x86_64-linux-gnu-gcc-14" x86_64 /lib/modules/6.16.3+deb14-amd64/source /lib/modules/6.16.3+deb14-amd64/build
CONFTEST_CFLAGS=
KBUILD_CFLAGS=-std=gnu11 -fshort-wchar -funsigned-char -fno- [too-long-redacted] mpare -Wno-unused-parameter -g 
LINUXINCLUDE=-I/usr/src/linux-headers-6.16.3+deb14-common/arch/x86/include -I/usr/src/linux-headers-6.16.3+deb14-amd64/arch/x86/include/generated -I/usr/src/linux-headers-6.16.3+deb14-common/include -I/usr/src/linux-headers-6.16.3+deb14-amd64/include -I/usr/src/linux-headers-6.16.3+deb14-common/arch/x86/include/uapi -I/usr/src/linux-headers-6.16.3+deb14-amd64/arch/x86/include/generated/uapi -I/usr/src/linux-headers-6.16.3+deb14-common/include/uapi -I/usr/src/linux-headers-6.16.3+deb14-amd64/include/generated/uapi -include /usr/src/linux-headers-6.16.3+deb14-common/include/linux/compiler-version.h -include /usr/src/linux-headers-6.16.3+deb14-common/include/linux/kconfig.h
LDFLAGS=-Wl,-z,relro
ARCH=x86_64
for SANITY_CHECK in rivafb_sanity_check nvidiafb_sanity_check dom0_sanity_check xen_sanity_check preempt_rt_sanity_check; do \
 echo " CONFTEST: $SANITY_CHECK"; \
 if ! /bin/sh ././conftest.sh "x86_64-linux-gnu-gcc-14 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=return-type -Wno-error=strict-prototypes" "x86_64-linux-gnu-gcc-14" x86_64 /lib/modules/6.16.3+deb14-amd64/source /lib/modules/6.16.3+deb14-amd64/build $SANITY_CHECK full_output; then \
 exit 1; \
 fi; \
done
 CONFTEST: rivafb_sanity_check
 CONFTEST: compile_tests
if ! /bin/sh ././conftest.sh "x86_64-linux-gnu-gcc-14 -Wno-e [too-long-redacted] iver_has_date ; then exit 1; fi
conftest.sh: CC=x86_64-linux-gnu-gcc-14 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=return-type -Wno-error=strict-prototypes
conftest.sh: CFLAGS=-O2 -D__KERNEL__ -DKBUILD_BASENAME="#con [too-long-redacted] ompare -Wno-unused-parameter -g
conftest.sh: KBUILD_CFLAGS=-std=gnu11 -fshort-wchar -funsign [too-long-redacted] mpare -Wno-unused-parameter -g 
conftest.sh: ARCH=x86_64
 CONFTEST: nvidiafb_sanity_check
 CONFTEST: dom0_sanity_check
 CONFTEST: xen_sanity_check
 CONFTEST: preempt_rt_sanity_check
 CONFTEST: patch_check
if ! /bin/sh ././conftest.sh "x86_64-linux-gnu-gcc-14 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=return-type -Wno-error=strict-prototypes" "x86_64-linux-gnu-gcc-14" x86_64 /lib/modules/6.16.3+deb14-amd64/source /lib/modules/6.16.3+deb14-amd64/build patch_check; then exit 1; fi
 CONFTEST patches.h:
static struct {
const char *short_description;
const char *description;
} __nv_patches[] = {
{ NULL, NULL } };
 CONFTEST conftest.h:
 CONFTEST macros.h:
#ifndef NV_CONFTEST_H_
#define NV_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"
#endif
 CONFTEST functions.h:
#define NV_INIT_WORK_PRESENT
#define NV_INIT_WORK_ARGUMENT_COUNT 2
#define NV_REMAP_PFN_RANGE_PRESENT
#define NV_VMAP_PRESENT
#define NV_VMAP_ARGUMENT_COUNT 4
#define NV_SET_PAGES_UC_PRESENT
#define 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
#undef NV_PDE_DATA_UPPER_CASE_PRESENT
#define NV_PROC_REMOVE_PRESENT
#define NV_PM_VT_SWITCH_REQUIRED_PRESENT
#define NV_PCI_SAVE_STATE_ARGUMENT_COUNT 1
#undef NV_DRM_PCI_SET_BUSID_PRESENT
#undef NV_WRITE_CR4_PRESENT
#define NV_FOR_EACH_ONLINE_NODE_PRESENT
#define NV_NODE_END_PFN_PRESENT
#undef NV_GET_USER_PAGES_HAS_ARGS_WRITE_FORCE_VMAS
#undef NV_GET_USER_PAGES_HAS_ARGS_TSK_WRITE_FORCE_VMAS
#undef NV_GET_USER_PAGES_HAS_ARGS_TSK_FLAGS_VMAS
#undef NV_GET_USER_PAGES_HAS_ARGS_FLAGS_VMAS
#define NV_GET_USER_PAGES_HAS_ARGS_FLAGS
#define NV_GET_USER_PAGES_REMOTE_PRESENT
#undef NV_GET_USER_PAGES_REMOTE_HAS_ARGS_TSK_WRITE_FORCE_VMAS
#undef NV_GET_USER_PAGES_REMOTE_HAS_ARGS_TSK_FLAGS_VMAS
#undef NV_GET_USER_PAGES_REMOTE_HAS_ARGS_TSK_FLAGS_LOCKED_VMAS
#undef NV_GET_USER_PAGES_REMOTE_HAS_ARGS_FLAGS_LOCKED_VMAS
#define NV_GET_USER_PAGES_REMOTE_HAS_ARGS_FLAGS_LOCKED
#undef NV_REGISTER_CPU_NOTIFIER_PRESENT
#define NV_CPUHP_SETUP_STATE_PRESENT
#undef NV_DRM_PCI_INIT_PRESENT
#undef NV_DRM_LEGACY_PCI_INIT_PRESENT
#define NV_TIMER_SETUP_PRESENT
#undef NV_DO_GETTIMEOFDAY_PRESENT
#undef NV_DRM_GEM_OBJECT_PUT_UNLOCKED_PRESENT
#define NV_DRM_GEM_OBJECT_GET_PRESENT
#undef NV_VGA_TRYGET_PRESENT
#undef NV_ACPI_BUS_GET_DEVICE_PRESENT
 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
#undef NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT
#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
#define NV_VM_FAULT_PRESENT
#define NV_VM_FAULT_HAS_ADDRESS
#undef NV_DRM_DRIVER_UNLOAD_HAS_INT_RETURN_TYPE
#define NV_DRM_DRIVER_LEGACY_FEATURE_BIT_PRESENT
#undef NV_DRM_DRIVER_PRIME_FLAG_PRESENT
#undef NV_DRM_DRIVER_HAS_LEGACY_DEV_LIST
#define NV_PROC_OPS_PRESENT
#undef NV_TIMEVAL_PRESENT
#undef NV_VMALLOC_HAS_PGPROT_T_ARG
#define NV_MM_HAS_MMAP_LOCK
#undef NV_DRM_DRIVER_HAS_GEM_FREE_OBJECT
#define NV_DRM_PRIME_PAGES_TO_SG_HAS_DRM_DEVICE_ARG
#undef NV_DRM_DRIVER_HAS_GEM_PRIME_CALLBACKS
#undef NV_DRM_DEVICE_HAS_PDEV
#define NV_VM_AREA_STRUCT_HAS_CONST_VM_FLAGS
#undef NV_DRM_DRIVER_HAS_DATE
 CONFTEST generic.h:
 CONFTEST headers.h:
#undef HAVE_NV_ANDROID
#undef NV_DOM0_KERNEL_PRESENT
#define NV_DRM_AVAILABLE
#undef NV_ASM_SYSTEM_H_PRESENT
#undef NV_DRM_DRMP_H_PRESENT
#define NV_DRM_DRM_GEM_H_PRESENT
#define NV_DRM_DRM_DRV_H_PRESENT
#define NV_DRM_DRM_PRIME_H_PRESENT
#define NV_DRM_DRM_FILE_H_PRESENT
#define NV_DRM_DRM_IOCTL_H_PRESENT
#undef NV_DRM_DRM_PCI_H_PRESENT
#undef NV_DRM_DRM_LEGACY_H_PRESENT
#undef NV_DRM_DRM_AGPSUPPORT_H_PRESENT
#define NV_DRM_DRM_DEVICE_H_PRESENT
#define NV_GENERATED_AUTOCONF_H_PRESENT
#define NV_GENERATED_COMPILE_H_PRESENT
#define NV_GENERATED_UTSRELEASE_H_PRESENT
#define NV_LINUX_EFI_H_PRESENT
#define NV_LINUX_KCONFIG_H_PRESENT
#define NV_LINUX_SCREEN_INFO_H_PRESENT
#define NV_LINUX_SEMAPHORE_H_PRESENT
#undef NV_LINUX_NVMAP_H_PRESENT
#define NV_LINUX_PRINTK_H_PRESENT
#define NV_LINUX_RATELIMIT_H_PRESENT
#undef NV_LINUX_PRIO_TREE_H_PRESENT
#define NV_LINUX_LOG2_H_PRESENT
#define NV_LINUX_OF_H_PRESENT
#define NV_LINUX_BUG_H_PRESENT
#define NV_LINUX_SCHED_SIGNAL_H_PRESENT
#define NV_LINUX_SCHED_TASK_H_PRESENT
#undef NV_XEN_IOEMU_H_PRESENT
#undef NV_LINUX_FENCE_H_PRESENT
#define NV_LINUX_KTIME_H_PRESENT
#define NV_LINUX_FILE_H_PRESENT
#define NV_LINUX_STDARG_H_PRESENT
#define NV_ASM_SET_MEMORY_H_PRESENT
#define NV_ASM_PGTABLE_TYPES_H_PRESENT
#define NV_ASM_PAGE_H_PRESENT
# CC [M]  nv.o
   x86_64-linux-gnu-gcc-14 -Wp,-MMD,./.nv.o.d -nostdinc -I/u [too-long-redacted] E=kmod_nvidia -c -o nv.o nv.c  
# CC [M]  nv-acpi.o
   x86_64-linux-gnu-gcc-14 -Wp,-MMD,./.nv-acpi.o.d -nostdinc [too-long-redacted] dia -c -o nv-acpi.o nv-acpi.c  
In file included from os-interface.h:27,
                 from nv.c:12:
nv_stdarg.h:36:13: fatal error: stdarg.h: No such file or directory
   36 |    #include <stdarg.h>
      |             ^~~~~~~~~~
compilation terminated.
make[8]: *** [/usr/src/linux-headers-6.16.3+deb14-common/scripts/Makefile.build:292: nv.o] Error 1
make[8]: *** Waiting for unfinished jobs....
In file included from os-interface.h:27,
                 from nv-acpi.c:14:
nv_stdarg.h:36:13: fatal error: stdarg.h: No such file or directory
   36 |    #include <stdarg.h>
      |             ^~~~~~~~~~
compilation terminated.
make[8]: *** [/usr/src/linux-headers-6.16.3+deb14-common/scripts/Makefile.build:292: nv-acpi.o] Error 1
make[7]: *** [/usr/src/linux-headers-6.16.3+deb14-common/Makefile:2027: .] Error 2
make[6]: *** [/usr/src/linux-headers-6.16.3+deb14-common/Makefile:260: __sub-make] Error 2
make[6]: Leaving directory '/<<PKGBUILDDIR>>/kernel-source-tree'
make[5]: *** [Makefile:260: __sub-make] Error 2
make[5]: Leaving directory '/usr/src/linux-headers-6.16.3+deb14-common'
make[4]: *** [Makefile:218: nvidia.ko] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/kernel-source-tree'
make[3]: *** [debian/rules:261: override_dh_auto_test] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [debian/rules:173: build] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:173: install] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:173: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------



More information about the pkg-nvidia-devel mailing list