Bug#1037753: lime: ftbfs with GCC-13

Matthias Klose doko at debian.org
Wed Jun 14 10:27:41 BST 2023


Package: src:lime
Version: 5.1.64+dfsg-2
Severity: normal
Tags: sid trixie
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-13

[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-13/g++-13, but succeeds to build with gcc-12/g++-12. 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/2023/05/22/logs/lime_5.1.64+dfsg-2_unstable_gccexp.log
The last lines of the build log are at the end of this report.

To build with GCC 13, either set CC=gcc-13 CXX=g++-13 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-13/porting_to.html

[...]
/usr/bin/cmake -S/<<PKGBUILDDIR>> -B/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0
make  -f CMakeFiles/Makefile2 lime
make[3]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
/usr/bin/cmake -S/<<PKGBUILDDIR>> -B/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/CMakeFiles 11
make  -f CMakeFiles/Makefile2 src/CMakeFiles/lime.dir/all
make[4]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f src/CMakeFiles/lime.dir/build.make src/CMakeFiles/lime.dir/depend
make[5]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /<<PKGBUILDDIR>> /<<PKGBUILDDIR>>/src /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/CMakeFiles/lime.dir/DependInfo.cmake --color=
make[5]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make  -f src/CMakeFiles/lime.dir/build.make src/CMakeFiles/lime.dir/build
make[5]: Entering directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
[ 27%] Building CXX object src/CMakeFiles/lime.dir/lime_x3dh_protocol.cpp.o
[ 27%] Building CXX object src/CMakeFiles/lime.dir/lime_x3dh.cpp.o
[ 27%] Building CXX object src/CMakeFiles/lime.dir/lime.cpp.o
[ 36%] Building CXX object src/CMakeFiles/lime.dir/lime_localStorage.cpp.o
[ 45%] Building CXX object src/CMakeFiles/lime.dir/lime_double_ratchet_protocol.cpp.o
[ 54%] Building CXX object src/CMakeFiles/lime.dir/lime_manager.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_STATIC -DEC25519_ENABLED -DEC448_ENABLED -DFFI_ENABLED -DLIME_EXPORTS -Dlime_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/usr/include/soci -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=gnu++14  -Wall -Wuninitialized -Wno-deprecated-declarations -Wno-missing-field-initializers -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -MD -MT src/CMakeFiles/lime.dir/lime_x3dh.cpp.o -MF CMakeFiles/lime.dir/lime_x3dh.cpp.o.d -o CMakeFiles/lime.dir/lime_x3dh.cpp.o -c /<<PKGBUILDDIR>>/src/lime_x3dh.cpp
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_STATIC -DEC25519_ENABLED -DEC448_ENABLED -DFFI_ENABLED -DLIME_EXPORTS -Dlime_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/usr/include/soci -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=gnu++14  -Wall -Wuninitialized -Wno-deprecated-declarations -Wno-missing-field-initializers -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -MD -MT src/CMakeFiles/lime.dir/lime.cpp.o -MF CMakeFiles/lime.dir/lime.cpp.o.d -o CMakeFiles/lime.dir/lime.cpp.o -c /<<PKGBUILDDIR>>/src/lime.cpp
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_STATIC -DEC25519_ENABLED -DEC448_ENABLED -DFFI_ENABLED -DLIME_EXPORTS -Dlime_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/usr/include/soci -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=gnu++14  -Wall -Wuninitialized -Wno-deprecated-declarations -Wno-missing-field-initializers -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -MD -MT src/CMakeFiles/lime.dir/lime_x3dh_protocol.cpp.o -MF CMakeFiles/lime.dir/lime_x3dh_protocol.cpp.o.d -o CMakeFiles/lime.dir/lime_x3dh_protocol.cpp.o -c /<<PKGBUILDDIR>>/src/lime_x3dh_protocol.cpp
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_STATIC -DEC25519_ENABLED -DEC448_ENABLED -DFFI_ENABLED -DLIME_EXPORTS -Dlime_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/usr/include/soci -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=gnu++14  -Wall -Wuninitialized -Wno-deprecated-declarations -Wno-missing-field-initializers -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -MD -MT src/CMakeFiles/lime.dir/lime_localStorage.cpp.o -MF CMakeFiles/lime.dir/lime_localStorage.cpp.o.d -o CMakeFiles/lime.dir/lime_localStorage.cpp.o -c /<<PKGBUILDDIR>>/src/lime_localStorage.cpp
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_STATIC -DEC25519_ENABLED -DEC448_ENABLED -DFFI_ENABLED -DLIME_EXPORTS -Dlime_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/usr/include/soci -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=gnu++14  -Wall -Wuninitialized -Wno-deprecated-declarations -Wno-missing-field-initializers -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -MD -MT src/CMakeFiles/lime.dir/lime_double_ratchet_protocol.cpp.o -MF CMakeFiles/lime.dir/lime_double_ratchet_protocol.cpp.o.d -o CMakeFiles/lime.dir/lime_double_ratchet_protocol.cpp.o -c /<<PKGBUILDDIR>>/src/lime_double_ratchet_protocol.cpp
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_STATIC -DEC25519_ENABLED -DEC448_ENABLED -DFFI_ENABLED -DLIME_EXPORTS -Dlime_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/usr/include/soci -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=gnu++14  -Wall -Wuninitialized -Wno-deprecated-declarations -Wno-missing-field-initializers -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -MD -MT src/CMakeFiles/lime.dir/lime_manager.cpp.o -MF CMakeFiles/lime.dir/lime_manager.cpp.o.d -o CMakeFiles/lime.dir/lime_manager.cpp.o -c /<<PKGBUILDDIR>>/src/lime_manager.cpp
[ 63%] Building CXX object src/CMakeFiles/lime.dir/lime_crypto_primitives.cpp.o
[ 72%] Building CXX object src/CMakeFiles/lime.dir/lime_double_ratchet.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_STATIC -DEC25519_ENABLED -DEC448_ENABLED -DFFI_ENABLED -DLIME_EXPORTS -Dlime_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/usr/include/soci -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=gnu++14  -Wall -Wuninitialized -Wno-deprecated-declarations -Wno-missing-field-initializers -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -MD -MT src/CMakeFiles/lime.dir/lime_crypto_primitives.cpp.o -MF CMakeFiles/lime.dir/lime_crypto_primitives.cpp.o.d -o CMakeFiles/lime.dir/lime_crypto_primitives.cpp.o -c /<<PKGBUILDDIR>>/src/lime_crypto_primitives.cpp
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_STATIC -DEC25519_ENABLED -DEC448_ENABLED -DFFI_ENABLED -DLIME_EXPORTS -Dlime_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/usr/include/soci -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=gnu++14  -Wall -Wuninitialized -Wno-deprecated-declarations -Wno-missing-field-initializers -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -MD -MT src/CMakeFiles/lime.dir/lime_double_ratchet.cpp.o -MF CMakeFiles/lime.dir/lime_double_ratchet.cpp.o.d -o CMakeFiles/lime.dir/lime_double_ratchet.cpp.o -c /<<PKGBUILDDIR>>/src/lime_double_ratchet.cpp
In file included from /<<PKGBUILDDIR>>/src/lime_double_ratchet.hpp:28,
                 from /<<PKGBUILDDIR>>/src/lime_double_ratchet.cpp:21:
/<<PKGBUILDDIR>>/src/lime_settings.hpp:49:24: error: ‘uint16_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
   49 |         constexpr std::uint16_t maxMessageSkip=1024;
      |                        ^~~~~~~~
      |                        wint_t
/<<PKGBUILDDIR>>/src/lime_settings.hpp:54:24: error: ‘uint16_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
   54 |         constexpr std::uint16_t maxMessagesReceivedAfterSkip = 128;
      |                        ^~~~~~~~
      |                        wint_t
/<<PKGBUILDDIR>>/src/lime_settings.hpp:62:24: error: ‘uint16_t’ in namespace ‘std’ does not name a type; did you mean ‘wint_t’?
   62 |         constexpr std::uint16_t maxSendingChain=1000;
      |                        ^~~~~~~~
      |                        wint_t
/<<PKGBUILDDIR>>/src/lime_double_ratchet.cpp: In member function ‘void lime::DR<Curve>::ratchetEncrypt(const inputContainer&, std::vector<unsigned char>&&, std::vector<unsigned char>&, bool)’:
/<<PKGBUILDDIR>>/src/lime_double_ratchet.cpp:345:45: error: ‘maxSendingChain’ is not a member of ‘lime::settings’
  345 |                 if (m_Ns >= lime::settings::maxSendingChain) { // if we reached maximum encryption wuthout DH ratchet step, session becomes inactive
      |                                             ^~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/lime_double_ratchet.cpp: In member function ‘bool lime::DR<Curve>::ratchetDecrypt(const std::vector<unsigned char>&, const std::vector<unsigned char>&, outputContainer&, bool)’:
/<<PKGBUILDDIR>>/src/lime_double_ratchet.cpp:389:60: error: ‘maxMessageSkip’ is not a member of ‘lime::settings’
  389 |                 int maxAllowedDerivation = lime::settings::maxMessageSkip;
      |                                                            ^~~~~~~~~~~~~~
[ 81%] Building CXX object src/CMakeFiles/lime.dir/lime_ffi.cpp.o
/<<PKGBUILDDIR>>/src/lime_double_ratchet.cpp:413:78: error: ‘maxMessageSkip’ is not a member of ‘lime::settings’
  413 |                                 skipMessageKeys(header.PN(), lime::settings::maxMessageSkip-header.Ns()); // we must keep header.Ns derivations available for the next chain
      |                                                                              ^~~~~~~~~~~~~~
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src && /usr/bin/c++ -DBCTBX_STATIC -DEC25519_ENABLED -DEC448_ENABLED -DFFI_ENABLED -DLIME_EXPORTS -Dlime_EXPORTS -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -I/usr/include/soci -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -std=gnu++14  -Wall -Wuninitialized -Wno-deprecated-declarations -Wno-missing-field-initializers -Werror -Wextra -Wno-unused-parameter -fno-strict-aliasing -MD -MT src/CMakeFiles/lime.dir/lime_ffi.cpp.o -MF CMakeFiles/lime.dir/lime_ffi.cpp.o.d -o CMakeFiles/lime.dir/lime_ffi.cpp.o -c /<<PKGBUILDDIR>>/src/lime_ffi.cpp
make[5]: *** [src/CMakeFiles/lime.dir/build.make:149: src/CMakeFiles/lime.dir/lime_double_ratchet.cpp.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[4]: *** [CMakeFiles/Makefile2:191: src/CMakeFiles/lime.dir/all] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[3]: *** [CMakeFiles/Makefile2:198: src/CMakeFiles/lime.dir/rule] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [Makefile:198: lime] 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" lime VERBOSE=1 returned exit code 2
make[1]: *** [debian/rules:50: override_dh_auto_build-arch] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:25: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Pkg-voip-maintainers mailing list