Bug#1135405: glibc: FTBFS: ../sysdeps/unix/sysv/linux/sys/mount.h:268:9: error: 'OPEN_TREE_CLONE' redefined [-Werror]
Santiago Vila <[email protected]> Fri, 01 May 2026 23:12:40 +0000
| Newsgroups | gmane.linux.debian.devel.glibc |
|---|---|
| Message-ID | <E1wIx2G-0005IB-10__46124.8301131249$1777677279$gmane$org@paradis.debian.org> |
Package: src:glibc
Version: 2.42-15
Severity: serious
Tags: ftbfs forky sid
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:glibc, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
x86_64-linux-gnu-gcc-15 -Wl,--hash-style=both -U_FILE_OFFSET [too-long-redacted] d64-libc/misc/timerfd_settime.o
x86_64-linux-gnu-gcc-15 -Wl,--hash-style=both -U_FILE_OFFSET [too-long-redacted] d-tree/amd64-libc/misc/umount.o
x86_64-linux-gnu-gcc-15 -Wl,--hash-style=both -U_FILE_OFFSET [too-long-redacted] -tree/amd64-libc/misc/umount2.o
In file included from ../sysdeps/unix/sysv/linux/include/sys/mount.h:22,
from ../sysdeps/unix/sysv/linux/umount.c:18:
../sysdeps/unix/sysv/linux/sys/mount.h:268:9: error: ‘OPEN_TREE_CLONE’ redefined [-Werror]
268 | #define OPEN_TREE_CLONE 1 /* Clone the target tree and attach the clone */
| ^~~~~~~~~~~~~~~
In file included from ../sysdeps/unix/sysv/linux/sys/mount.h:32:
/usr/include/linux/mount.h:64:9: note: this is the location of the previous definition
64 | #define OPEN_TREE_CLONE (1 << 0) /* Clone the target tree and attach the clone */
| ^~~~~~~~~~~~~~~
In file included from ../sysdeps/unix/sysv/linux/include/sys/mount.h:22,
from ../sysdeps/unix/sysv/linux/umount2.c:19:
../sysdeps/unix/sysv/linux/sys/mount.h:268:9: error: ‘OPEN_TREE_CLONE’ redefined [-Werror]
268 | #define OPEN_TREE_CLONE 1 /* Clone the target tree and attach the clone */
| ^~~~~~~~~~~~~~~
In file included from ../sysdeps/unix/sysv/linux/sys/mount.h:32:
/usr/include/linux/mount.h:64:9: note: this is the location of the previous definition
64 | #define OPEN_TREE_CLONE (1 << 0) /* Clone the target tree and attach the clone */
| ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[3]: *** [/<<PKGBUILDDIR>>/build-tree/amd64-libc/sysd-rules:213: /<<PKGBUILDDIR>>/build-tree/amd64-libc/misc/umount.o] Error 1
make[3]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make[3]: *** [/<<PKGBUILDDIR>>/build-tree/amd64-libc/sysd-rules:213: /<<PKGBUILDDIR>>/build-tree/amd64-libc/misc/umount2.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/misc'
make[2]: *** [Makefile:501: misc/subdir_lib] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:20: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/build-tree/amd64-libc'
make: *** [debian/rules.d/build.mk:143: /<<PKGBUILDDIR>>/stamp-dir/build_libc] Error 2
rm /<<PKGBUILDDIR>>/stamp-dir/configure_libc /<<PKGBUILDDIR>>/stamp-dir/mkbuilddir_libc
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------