Bug#1012900: bctoolbox: ftbfs with GCC-12

Matthias Klose doko at debian.org
Thu Jun 16 13:07:48 BST 2022


Package: src:bctoolbox
Version: 4.4.13-3
Severity: normal
Tags: sid bookworm
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-12

[This bug is targeted to the upcoming bookworm 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-12/g++-12, but succeeds to build with gcc-11/g++-11. The
severity of this report will be raised before the bookworm release.

The full build log can be found at:
http://qa-logs.debian.net/2022/06/09/gcc12/bctoolbox_4.4.13-3_unstable_gcc12.log
The last lines of the build log are at the end of this report.

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

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
/usr/include/mbedtls/sha256.h:276:25: note: declared here
  276 | MBEDTLS_DEPRECATED void mbedtls_sha256( const unsigned char *input,
      |                         ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:470:25: warning: ‘mbedtls_sha512’ is deprecated [-Wdeprecated-declarations]
  470 |                         mbedtls_sha512(crt->raw.p, crt->raw.len, buffer, 1); /* last argument is a boolean, indicate to output sha-384 and not sha-512 */
      |                         ^~~~~~~~~~~~~~
In file included from /usr/include/mbedtls/entropy.h:34,
                 from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:34:
/usr/include/mbedtls/sha512.h:293:25: note: declared here
  293 | MBEDTLS_DEPRECATED void mbedtls_sha512( const unsigned char *input,
      |                         ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:476:25: warning: ‘mbedtls_sha512’ is deprecated [-Wdeprecated-declarations]
  476 |                         mbedtls_sha512(crt->raw.p, crt->raw.len, buffer, 0); /* last argument is a boolean, indicate to output sha-384 and not sha-512 */
      |                         ^~~~~~~~~~~~~~
/usr/include/mbedtls/sha512.h:293:25: note: declared here
  293 | MBEDTLS_DEPRECATED void mbedtls_sha512( const unsigned char *input,
      |                         ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c: In function ‘bctbx_CreateDHMContext’:
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:736:25: warning: ‘mbedtls_deprecated_string_constant_t’ is deprecated [-Wdeprecated-declarations]
  736 |                         if ((mbedtls_mpi_read_string(&(mbedtlsDhmContext->P), 16, MBEDTLS_DHM_RFC3526_MODP_2048_P) != 0) ||
      |                         ^~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:737:25: warning: ‘mbedtls_deprecated_string_constant_t’ is deprecated [-Wdeprecated-declarations]
  737 |                         (mbedtls_mpi_read_string(&(mbedtlsDhmContext->G), 16, MBEDTLS_DHM_RFC3526_MODP_2048_G) != 0)) {
      |                         ^
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:745:25: warning: ‘mbedtls_deprecated_string_constant_t’ is deprecated [-Wdeprecated-declarations]
  745 |                         if ((mbedtls_mpi_read_string(&(mbedtlsDhmContext->P), 16, MBEDTLS_DHM_RFC3526_MODP_3072_P) != 0) ||
      |                         ^~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:746:25: warning: ‘mbedtls_deprecated_string_constant_t’ is deprecated [-Wdeprecated-declarations]
  746 |                         (mbedtls_mpi_read_string(&(mbedtlsDhmContext->G), 16, MBEDTLS_DHM_RFC3526_MODP_3072_G) != 0)) {
      |                         ^
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c: In function ‘bctbx_sha512’:
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:1489:9: warning: ‘mbedtls_sha512’ is deprecated [-Wdeprecated-declarations]
 1489 |         mbedtls_sha512(input, inputLength, hashOutput, 0); /* last param to zero to select SHA512 and not SHA384 */
      |         ^~~~~~~~~~~~~~
/usr/include/mbedtls/sha512.h:293:25: note: declared here
  293 | MBEDTLS_DEPRECATED void mbedtls_sha512( const unsigned char *input,
      |                         ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c: In function ‘bctbx_sha384’:
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:1513:9: warning: ‘mbedtls_sha512’ is deprecated [-Wdeprecated-declarations]
 1513 |         mbedtls_sha512(input, inputLength, hashOutput, 1); /* last param to one to select SHA384 and not SHA512 */
      |         ^~~~~~~~~~~~~~
/usr/include/mbedtls/sha512.h:293:25: note: declared here
  293 | MBEDTLS_DEPRECATED void mbedtls_sha512( const unsigned char *input,
      |                         ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c: In function ‘bctbx_sha256’:
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:1537:9: warning: ‘mbedtls_sha256’ is deprecated [-Wdeprecated-declarations]
 1537 |         mbedtls_sha256(input, inputLength, hashOutput, 0); /* last param to zero to select SHA256 and not SHA224 */
      |         ^~~~~~~~~~~~~~
/usr/include/mbedtls/sha256.h:276:25: note: declared here
  276 | MBEDTLS_DEPRECATED void mbedtls_sha256( const unsigned char *input,
      |                         ^~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c: In function ‘bctbx_md5’:
/<<PKGBUILDDIR>>/src/crypto/mbedtls.c:1588:9: warning: ‘mbedtls_md5’ is deprecated [-Wdeprecated-declarations]
 1588 |         mbedtls_md5(input, inputLength, output);
      |         ^~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/src/crypto/mbedtls.c:36:
/usr/include/mbedtls/md5.h:283:25: note: declared here
  283 | MBEDTLS_DEPRECATED void mbedtls_md5( const unsigned char *input,
      |                         ^~~~~~~~~~~
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:121: src/CMakeFiles/bctoolbox-static.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:147: src/CMakeFiles/bctoolbox.dir/all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[1]: *** [Makefile:139: all] Error 2
make[1]: 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" VERBOSE=1 returned exit code 2
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2



More information about the Pkg-voip-maintainers mailing list