Bug#1143715: xerces-c: FTBFS: src/Char16Test/Char16Test.cpp:47:39: error: use of deleted function 'std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char16_t*) [with _Traits = char_traits<char>]'

Santiago Vila <[email protected]> Wed, 05 Aug 2026 11:25:50 +0000
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <E1wrZks-00GxpU-0j__43012.112965674$1785929446$gmane$org@paradis.debian.org>
Package: src:xerces-c
Version: 3.2.4+debian-1.3
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/202608/

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

Thanks.

--------------------------------------------------------------------------------
[...]
x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../src/xercesc/util  -I../src -I../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection  -c -o src/XSValueTest/XSValueTest.o src/XSValueTest/XSValueTest.cpp
src/XSValueTest/XSValueTest.cpp:1354:83: warning: integer constant is so large that it is unsigned
 1354 |     XSValue::XSValue_Data act_v_ran64_v_2; act_v_ran64_v_2.fValue.f_long = (long)-9223372036854775808;
      |                                                                                   ^~~~~~~~~~~~~~~~~~~
src/XSValueTest/XSValueTest.cpp:1510:85: warning: integer constant is so large that it is unsigned
 1510 |     XSValue::XSValue_Data act_v_ran64_v_2;   act_v_ran64_v_2.fValue.f_long = (long)-9223372036854775808;
      |                                                                                     ^~~~~~~~~~~~~~~~~~~
src/XSValueTest/XSValueTest.cpp:1658:85: warning: integer constant is so large that it is unsigned
 1658 |     XSValue::XSValue_Data act_v_ran64_v_2;   act_v_ran64_v_2.fValue.f_long = (long)-9223372036854775808;
      |                                                                                     ^~~~~~~~~~~~~~~~~~~
src/XSValueTest/XSValueTest.cpp:1805:85: warning: integer constant is so large that it is unsigned
 1805 |     XSValue::XSValue_Data act_v_ran64_v_2;   act_v_ran64_v_2.fValue.f_long = (long)-9223372036854775808;
      |                                                                                     ^~~~~~~~~~~~~~~~~~~
src/XSValueTest/XSValueTest.cpp:2427:94: warning: integer constant is so large that it is unsigned
 2427 |     XSValue::XSValue_Data act_v_ran64_v_2;  act_v_ran64_v_2.fValue.f_ulong = (unsigned long)+18446744073709551615;
      |                                                                                              ^~~~~~~~~~~~~~~~~~~~
src/XSValueTest/XSValueTest.cpp:2579:94: warning: integer constant is so large that it is unsigned
 2579 |     XSValue::XSValue_Data act_v_ran64_v_1;  act_v_ran64_v_1.fValue.f_ulong = (unsigned long)+18446744073709551615;
      |                                                                                              ^~~~~~~~~~~~~~~~~~~~
src/XSValueTest/XSValueTest.cpp:3194:94: warning: integer constant is so large that it is unsigned
 3194 |     XSValue::XSValue_Data act_v_ran64_v_2;  act_v_ran64_v_2.fValue.f_ulong = (unsigned long)+18446744073709551615;
      |                                                                                              ^~~~~~~~~~~~~~~~~~~~
x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I.. -I../src/xercesc/util  -I../src -I../src -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection  -c -o src/Char16Test/Char16Test.o src/Char16Test/Char16Test.cpp
src/Char16Test/Char16Test.cpp: In function ‘int main()’:
src/Char16Test/Char16Test.cpp:47:39: error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char16_t*) [with _Traits = char_traits<char>]’
   47 |                 << toCatch.getMessage()
      |                                       ^
In file included from /usr/include/c++/16/ostream:42,
                 from /usr/include/c++/16/iostream:43,
                 from src/Char16Test/Char16Test.cpp:36:
/usr/include/c++/16/bits/ostream.h:772:5: note: declared here
  772 |     operator<<(basic_ostream<char, _Traits>&, const char16_t*) = delete;
      |     ^~~~~~~~
src/Char16Test/Char16Test.cpp:47:39: note: use ‘-fdiagnostics-all-candidates’ to display considered candidates
   47 |                 << toCatch.getMessage()
      |                                       ^
make[3]: *** [Makefile:1106: src/Char16Test/Char16Test.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/tests'
make[2]: *** [Makefile:1649: check-am] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/tests'
make[1]: *** [Makefile:559: check-recursive] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_test: error: make -j2 check TESTSUITEFLAGS="-j2 --verbose" VERBOSE=1 returned exit code 2
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------