#1136779 nvidia-graphics-drivers-tesla: FTBFS: nvidia/nv-mmap.c:802:24: error: 'VMA_LOCK_OFFSET' undeclared (first use in this function); did you mean 'VGA_CRTC_OFFSET'? #1136779
- Package:
- src:nvidia-graphics-drivers-tesla
- Submitter:
- Santiago Vila
- Date:
- 2026-10-11 13:53:09 UTC
- Severity:
- normal
- Tags:
Dear maintainer: During a rebuild of all packages in unstable, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202605/ 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 cannot 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-tesla, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] # CC [M] nvidia/nv-p2p.o x86_64-linux-gnu-gcc-15 -Wp,-MMD,nvidia/.nv-p2p.o.d -nost [too-long-redacted] idia/nv-p2p.o nvidia/nv-p2p.c nvidia/nv-mmap.c: In function ‘nv_vma_enter_locked’: nvidia/nv-mmap.c:802:24: error: ‘VMA_LOCK_OFFSET’ undeclared (first use in this function); did you mean ‘VGA_CRTC_OFFSET’? 802 | NvU32 tgt_refcnt = VMA_LOCK_OFFSET; | ^~~~~~~~~~~~~~~ | VGA_CRTC_OFFSET nvidia/nv-mmap.c:802:24: note: each undeclared identifier is reported only once for each function it appears in nvidia/nv-mmap.c: In function ‘nv_vma_start_write’: nvidia/nv-mmap.c:854:9: error: too many arguments to function ‘__is_vma_write_locked’; expected 1, have 2 854 | if (__is_vma_write_locked(vma, &mm_lock_seq)) | ^~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ In file included from /usr/src/linux-headers-7.0.4+deb14-common/arch/x86/include/asm/uaccess.h:12, from /usr/src/linux-headers-7.0.4+deb14-common/include/linux/uaccess.h:13, from /usr/src/linux-headers-7.0.4+deb14-common/include/linux/sched/task.h:13, from /usr/src/linux-headers-7.0.4+deb14-common/include/linux/sched/signal.h:9, from ././common/inc/nv-lock.h:34, from ././common/inc/nv-linux.h:32, from nvidia/nv-mmap.c:27: /usr/src/linux-headers-7.0.4+deb14-common/include/linux/mmap_lock.h:282:20: note: declared here 282 | static inline bool __is_vma_write_locked(struct vm_area_struct *vma) | ^~~~~~~~~~~~~~~~~~~~~ nvidia/nv-mmap.c:863:42: error: ‘VMA_LOCK_OFFSET’ undeclared (first use in this function); did you mean ‘VGA_CRTC_OFFSET’? 863 | detached = refcount_sub_and_test(VMA_LOCK_OFFSET, &vma->vm_refcnt); | ^~~~~~~~~~~~~~~ | VGA_CRTC_OFFSET make[8]: *** [/usr/src/linux-headers-7.0.4+deb14-common/scripts/Makefile.build:294: nvidia/nv-mmap.o] Error 1 make[8]: *** Waiting for unfinished jobs.... make[7]: *** [/usr/src/linux-headers-7.0.4+deb14-common/Makefile:2130: .] Error 2 make[6]: *** [/usr/src/linux-headers-7.0.4+deb14-common/Makefile:260: __sub-make] Error 2 make[6]: Leaving directory '/<<PKGBUILDDIR>>/test-module-build' make[5]: *** [Makefile:260: __sub-make] Error 2 make[5]: Leaving directory '/usr/src/linux-headers-7.0.4+deb14-common' make[4]: *** [Makefile:92: modules] Error 2 make[4]: Leaving directory '/<<PKGBUILDDIR>>/test-module-build' make[3]: *** [debian/rules:330: override_dh_auto_test] Error 2 make[3]: Leaving directory '/<<PKGBUILDDIR>>' make[2]: *** [debian/rules:232: build] Error 2 make[2]: Leaving directory '/<<PKGBUILDDIR>>' make[1]: *** [debian/rules:232: install] Error 2 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:232: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------
We believe that the bug you reported is fixed in the latest version of
nvidia-graphics-drivers-tesla, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1136779@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Andreas Beckmann <anbe@debian.org> (supplier of updated nvidia-graphics-drivers-tesla package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 11 Oct 2026 14:52:21 +0200
Source: nvidia-graphics-drivers-tesla
Architecture: source
Version: 525.147.05-19
Distribution: unstable
Urgency: medium
Maintainer: Debian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org>
Changed-By: Andreas Beckmann <anbe@debian.org>
Closes: 1136779 1148494 1148495
Changes:
nvidia-graphics-drivers-tesla (525.147.05-19) unstable; urgency=medium
.
* Backport drm_atomic_commit_struct_present changes from 580.173.02 and
strncpy changes from 580.178.04 to fix kernel module build for Linux 7.2.
* Backport is_vma_write_locked_has_mm_lock_seq_arg changes from 580.142 and
dma_fence_signal changes from 535.309.01 to fix kernel module build for
Linux 7.0. (Closes: #1136779, #1148494, #1148495)
Checksums-Sha1:
2a8990da30a543aad99a052b20f7179dc12b5e27 7669 nvidia-graphics-drivers-tesla_525.147.05-19.dsc
1f8abd4a3bc17b12ef9fa57334bb89605e04235e 257748 nvidia-graphics-drivers-tesla_525.147.05-19.debian.tar.xz
ecc0a80713d3ad69c8f46a0197f50104b830b632 5381 nvidia-graphics-drivers-tesla_525.147.05-19_source.buildinfo
Checksums-Sha256:
9bd4871c8f09903342906781d75b718c10b77421a1aa4e9d2e3d698ef0b01f5e 7669 nvidia-graphics-drivers-tesla_525.147.05-19.dsc
a83310a1e5cea73cd5453461b98934adf45acb3671fed886948f997a22287409 257748 nvidia-graphics-drivers-tesla_525.147.05-19.debian.tar.xz
d951870d0fb63b7a63fd9098be5c35202a5594ae0f407af9350e05a23b962a5e 5381 nvidia-graphics-drivers-tesla_525.147.05-19_source.buildinfo
Files:
e13d056e7939fb9a21a9c3fce4b300e3 7669 non-free/libs optional nvidia-graphics-drivers-tesla_525.147.05-19.dsc
85c9693d9d4c656ad26615cc415da12b 257748 non-free/libs optional nvidia-graphics-drivers-tesla_525.147.05-19.debian.tar.xz
c200e9e8192993294bb89f379a38e4d2 5381 non-free/libs optional nvidia-graphics-drivers-tesla_525.147.05-19_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCgAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmrLjokQHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCMcCD/48VzpeipN/hQwehaGd8kYacccjg2tzBq5t
yQew1Q4QQxG3Pjcni5OlYWt5vJZm8pKReIgztPzkuDoAdBJnVD/RtZaNitnFKQ3y
+TNntdjEKjAlKBQK7kcIB6mYX6izTE8jh4T44aGC8UQ0BrA9NpbYl8/HohZ/3ZyL
syrXf1BhWwDdEcbhYvVsiKpgwsyMxkUlyzdVVGKgYwnKeaY9yVlGcT5CqXlQndKn
0qTMvMDRmKRZM4ScnxvH+90RKk+ajeOshdztkMmwyJ96J+77bpi1zFjy9hEkmmBA
eKxiVMmVUMGxm0JpCPsLvU6YmwqBfP/9SNaZD6XEtXv6V2RCMMPvZmVahKiamgGW
wC+eiSivIH9mVx73Vk9AG2dPs0FPpr82jJjRHxQSsSLXSKrReSQ7HP1kYXM+SOpd
u5hKhd5ziHl48t96Yg0mFfwyvbmdVXBbR8SsqUH3U8d91INZsiDlcTYe6z8qyl1N
X0L116nauW74u6J3U1agjjEWgigREfDB/5/0gZmOUVyr2R8mntsS9/X0ifZ2ZDDy
n/DQVFGtMcUET4n32f1vjUqiGPF/Rw/Fwwtu+HuAo/+e8TdMlDPyVtQ1OtzPv7FP
qPaMLweJsLBEbX8V/Ub8n2k+Db6bYcD7qbDFH3DyO7/x159dGAGsnxoMK4sqUkl2
aK4kXZMmHg==
=l2dj
-----END PGP SIGNATURE-----