[Debian-med-packaging] Bug#1075156: libcereal: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:32:53 BST 2024


Package: src:libcereal
Version: 1.3.2+dfsg-5
Severity: important
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/libcereal_1.3.2+dfsg-5_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 14, either set CC=gcc-14 CXX=g++-14 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-14/porting_to.html

[...]
                 from /<<PKGBUILDDIR>>/unittests/defer.cpp:28:
/usr/include/rapidjson/document.h: In member function ‘rapidjson::GenericStringRef<CharType>& rapidjson::GenericStringRef<CharType>::operator=(const rapidjson::GenericStringRef<CharType>&)’:
/usr/include/rapidjson/document.h:319:82: error: assignment of read-only member ‘rapidjson::GenericStringRef<CharType>::length’
  319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
      |                                                                           ~~~~~~~^~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/include/cereal/archives/json.hpp:67,
                 from /<<PKGBUILDDIR>>/unittests/common.hpp:55,
                 from /<<PKGBUILDDIR>>/unittests/atomic.hpp:28,
                 from /<<PKGBUILDDIR>>/unittests/atomic.cpp:28:
/usr/include/rapidjson/document.h: In member function ‘rapidjson::GenericStringRef<CharType>& rapidjson::GenericStringRef<CharType>::operator=(const rapidjson::GenericStringRef<CharType>&)’:
/usr/include/rapidjson/document.h:319:82: error: assignment of read-only member ‘rapidjson::GenericStringRef<CharType>::length’
  319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
      |                                                                           ~~~~~~~^~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/include/cereal/archives/json.hpp:67,
                 from /<<PKGBUILDDIR>>/unittests/common.hpp:55,
                 from /<<PKGBUILDDIR>>/unittests/bitset.hpp:29,
                 from /<<PKGBUILDDIR>>/unittests/bitset.cpp:28:
/usr/include/rapidjson/document.h: In member function ‘rapidjson::GenericStringRef<CharType>& rapidjson::GenericStringRef<CharType>::operator=(const rapidjson::GenericStringRef<CharType>&)’:
/usr/include/rapidjson/document.h:319:82: error: assignment of read-only member ‘rapidjson::GenericStringRef<CharType>::length’
  319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
      |                                                                           ~~~~~~~^~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/include/cereal/archives/json.hpp:67,
                 from /<<PKGBUILDDIR>>/unittests/common.hpp:55,
                 from /<<PKGBUILDDIR>>/unittests/basic_string.hpp:29,
                 from /<<PKGBUILDDIR>>/unittests/basic_string.cpp:28:
/usr/include/rapidjson/document.h: In member function ‘rapidjson::GenericStringRef<CharType>& rapidjson::GenericStringRef<CharType>::operator=(const rapidjson::GenericStringRef<CharType>&)’:
/usr/include/rapidjson/document.h:319:82: error: assignment of read-only member ‘rapidjson::GenericStringRef<CharType>::length’
  319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
      |                                                                           ~~~~~~~^~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/include/cereal/archives/json.hpp:67,
                 from /<<PKGBUILDDIR>>/unittests/common.hpp:55,
                 from /<<PKGBUILDDIR>>/unittests/chrono.hpp:30,
                 from /<<PKGBUILDDIR>>/unittests/chrono.cpp:28:
/usr/include/rapidjson/document.h: In member function ‘rapidjson::GenericStringRef<CharType>& rapidjson::GenericStringRef<CharType>::operator=(const rapidjson::GenericStringRef<CharType>&)’:
/usr/include/rapidjson/document.h:319:82: error: assignment of read-only member ‘rapidjson::GenericStringRef<CharType>::length’
  319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
      |                                                                           ~~~~~~~^~~~~~~~~~~~
make[4]: *** [unittests/CMakeFiles/test_chrono.dir/build.make:79: unittests/CMakeFiles/test_chrono.dir/chrono.cpp.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:396: unittests/CMakeFiles/test_chrono.dir/all] Error 2
make[3]: *** Waiting for unfinished jobs....
make[4]: *** [unittests/CMakeFiles/test_complex.dir/build.make:79: unittests/CMakeFiles/test_complex.dir/complex.cpp.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:422: unittests/CMakeFiles/test_complex.dir/all] Error 2
make[4]: *** [unittests/CMakeFiles/test_deque.dir/build.make:79: unittests/CMakeFiles/test_deque.dir/deque.cpp.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:474: unittests/CMakeFiles/test_deque.dir/all] Error 2
make[4]: *** [unittests/CMakeFiles/test_array.dir/build.make:79: unittests/CMakeFiles/test_array.dir/array.cpp.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:292: unittests/CMakeFiles/test_array.dir/all] Error 2
make[4]: *** [unittests/CMakeFiles/test_basic_string.dir/build.make:79: unittests/CMakeFiles/test_basic_string.dir/basic_string.cpp.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:344: unittests/CMakeFiles/test_basic_string.dir/all] Error 2
make[4]: *** [unittests/CMakeFiles/test_bitset.dir/build.make:79: unittests/CMakeFiles/test_bitset.dir/bitset.cpp.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:370: unittests/CMakeFiles/test_bitset.dir/all] Error 2
make[4]: *** [unittests/CMakeFiles/test_defer.dir/build.make:79: unittests/CMakeFiles/test_defer.dir/defer.cpp.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:448: unittests/CMakeFiles/test_defer.dir/all] Error 2
make[4]: *** [unittests/CMakeFiles/test_atomic.dir/build.make:79: unittests/CMakeFiles/test_atomic.dir/atomic.cpp.o] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:318: unittests/CMakeFiles/test_atomic.dir/all] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [Makefile:149: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
dh_auto_build: error: cd obj-x86_64-linux-gnu && make -j8 "INSTALL=install --strip-program=true" all doc VERBOSE=1 returned exit code 2
make[1]: *** [debian/rules:14: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:8: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list