#1141037 subtitlecomposer: FTBFS: /usr/include/c++/15/sstream:465:7: error: 'struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs' redeclared with different access [-Wtemplate-body]

#1141037#5
Date:
2026-06-28 20:53:02 UTC
From:
To:
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/202606/

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:subtitlecomposer, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
[ 96%] Building CXX object src/tests/CMakeFiles/test-core-subtitle.dir/test-core-subtitle_autogen/mocs_compilation.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/tests && /usr/b [too-long-redacted] le_autogen/mocs_compilation.cpp
In file included from /usr/include/c++/15/chrono:51,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/qobject.h:24,
                 from /usr/include/x86_64-linux-gnu/qt6/QtCore/QObject:1,
                 from /<<PKGBUILDDIR>>/src/core/richtext/richcss.h:12,
                 from /<<PKGBUILDDIR>>/src/tests/richcsstest.h:10,
                 from /<<PKGBUILDDIR>>/src/tests/richcsstest.cpp:8:
/usr/include/c++/15/sstream:465:7: error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::__xfer_bufptrs’ redeclared with different access [-Wtemplate-body]
  465 |       struct __xfer_bufptrs
      |       ^~~~~~
make[3]: *** [src/tests/CMakeFiles/test-core-richcss.dir/build.make:102: src/tests/CMakeFiles/test-core-richcss.dir/richcsstest.cpp.o] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:852: src/tests/CMakeFiles/test-core-richcss.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
[ 96%] Building CXX object src/tests/CMakeFiles/test-core-subtitle.dir/subtitletest.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/tests && /usr/b [too-long-redacted] IR>>/src/tests/subtitletest.cpp
[ 97%] Linking CXX executable test-core-subtitle
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/tests && /usr/bin/cmake -E cmake_link_script CMakeFiles/test-core-subtitle.dir/link.txt --verbose=1
/usr/bin/x86_64-linux-gnu-g++ -g -O2 -ffile-prefix-map=/<<PK [too-long-redacted] -linux-gnu/libQt6Core.so.6.10.2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 97%] Built target test-core-subtitle
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j2 INSTALL="install --strip-program=true" VERBOSE=1 returned exit code 2
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------