[Debian-med-packaging] Bug#1012946: htscodecs: ftbfs with GCC-12

Matthias Klose doko at debian.org
Thu Jun 16 13:09:33 BST 2022


Package: src:htscodecs
Version: 1.2.1-1
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/htscodecs_1.2.1-1_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.

[...]
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o tokenise_name3_test.o tokenise_name3_test.c
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o arith_dynamic_test.o arith_dynamic_test.c
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o rANS_static_test.o rANS_static_test.c
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o fqzcomp_qual_test.o fqzcomp_qual_test.c
gcc -DHAVE_CONFIG_H -I. -I..  -I.. -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -c -o varint_test.o varint_test.c
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o tokenise_name3 tokenise_name3_test.o ../htscodecs/libhtscodecs.la -lm -lpthread -lbz2 
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o rans4x8 rANS_static_test.o ../htscodecs/libhtscodecs.la -lm -lpthread -lbz2 
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o arith_dynamic arith_dynamic_test.o ../htscodecs/libhtscodecs.la -lm -lpthread -lbz2 
libtool: link: gcc -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/tokenise_name3 tokenise_name3_test.o  ../htscodecs/.libs/libhtscodecs.so -lm -lpthread -lbz2
libtool: link: gcc -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/rans4x8 rANS_static_test.o  ../htscodecs/.libs/libhtscodecs.so -lm -lpthread -lbz2
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o rans4x16pr rANS_static4x16pr_test.o ../htscodecs/libhtscodecs.la -lm -lpthread -lbz2 
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o fqzcomp_qual fqzcomp_qual_test.o ../htscodecs/libhtscodecs.la -lm -lpthread -lbz2 
libtool: link: gcc -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/arith_dynamic arith_dynamic_test.o  ../htscodecs/.libs/libhtscodecs.so -lm -lpthread -lbz2
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -Wl,-z,relro -Wl,-z,now -o varint varint_test.o ../htscodecs/libhtscodecs.la -lm -lpthread -lbz2 
libtool: link: gcc -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/rans4x16pr rANS_static4x16pr_test.o  ../htscodecs/.libs/libhtscodecs.so -lm -lpthread -lbz2
libtool: link: gcc -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/fqzcomp_qual fqzcomp_qual_test.o  ../htscodecs/.libs/libhtscodecs.so -lm -lpthread -lbz2
libtool: link: gcc -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/varint varint_test.o  ../htscodecs/.libs/libhtscodecs.so -lm -lpthread -lbz2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/tests'
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
   debian/rules override_dh_auto_test
make[1]: Entering directory '/<<PKGBUILDDIR>>'
make check
make[2]: Entering directory '/<<PKGBUILDDIR>>'
Making check in htscodecs
make[3]: Entering directory '/<<PKGBUILDDIR>>/htscodecs'
make  check-am
make[4]: Entering directory '/<<PKGBUILDDIR>>/htscodecs'
make[4]: Nothing to be done for 'check-am'.
make[4]: Leaving directory '/<<PKGBUILDDIR>>/htscodecs'
make[3]: Leaving directory '/<<PKGBUILDDIR>>/htscodecs'
Making check in .
make[3]: Entering directory '/<<PKGBUILDDIR>>'
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
Making check in tests
make[3]: Entering directory '/<<PKGBUILDDIR>>/tests'
make  check-TESTS
make[4]: Entering directory '/<<PKGBUILDDIR>>/tests'
make[5]: Entering directory '/<<PKGBUILDDIR>>/tests'
PASS: rans4x8.test
FAIL: rans4x16.test
PASS: arith.test
FAIL: tok3.test
PASS: fqzcomp.test
PASS: varint
============================================================================
Testsuite summary for htscodecs 1.2.1
============================================================================
# TOTAL: 6
# PASS:  4
# SKIP:  0
# XFAIL: 0
# FAIL:  2
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
============================================================================
make[5]: *** [Makefile:938: test-suite.log] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/tests'
make[4]: *** [Makefile:1046: check-TESTS] Error 2
make[4]: Leaving directory '/<<PKGBUILDDIR>>/tests'
make[3]: *** [Makefile:1118: check-am] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>/tests'
make[2]: *** [Makefile:506: check-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [debian/rules:32: override_dh_auto_test] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:20: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list