#1012946 htscodecs: ftbfs with GCC-12

#1012946#5
Date:
2022-06-16 12:09:33 UTC
From:
To:
[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

#1012946#8
Date:
2022-06-26 13:49:45 UTC
From:
To:
Hello,

Bug #1012946 in htscodecs reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/med-team/htscodecs/-/commit/dee200c00fbbdd1b95b3bb465404b42eb5959b4d
Closes: #1012946
Thanks: James Bonfield
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1012946

#1012946#15
Date:
2022-06-26 14:38:05 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
htscodecs, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1012946@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Étienne Mollier <emollier@debian.org> (supplier of updated htscodecs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 26 Jun 2022 15:36:33 +0200
Source: htscodecs
Architecture: source
Version: 1.2.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
Changed-By: Étienne Mollier <emollier@debian.org>
Closes: 1012946
Changes:
 htscodecs (1.2.2-1) unstable; urgency=medium
 .
   * New upstream version
   * Standards-Version: 4.6.1 (routine-update)
   * debian/libhtscodecs2.install: bump to soversion 2.0.6.
   * Add gcc-12.patch: fix build time test failure with gcc-12.
     Thanks to James Bonfield (Closes: #1012946)
Checksums-Sha1:
 318ca7f92b2647c6b6a69b958c208d2d95eba3f5 2204 htscodecs_1.2.2-1.dsc
 1e2613743aded448ad981919e34b22122f251b60 3044356 htscodecs_1.2.2.orig.tar.gz
 ad0340f39c79de49bb47445da5f051e2c9c59c17 4980 htscodecs_1.2.2-1.debian.tar.xz
Checksums-Sha256:
 620c9170083f9ae0dbe43a96477b9d743cc9c3c681d33e888491657c157251b8 2204 htscodecs_1.2.2-1.dsc
 d17d7a505da3fc79dcced320c132c5492b5dc78ee70d9ca8218b927070f183ca 3044356 htscodecs_1.2.2.orig.tar.gz
 dc05a044e0b17606d01f2eee5a7aaacb0639fdb337a9e9db02f7d139681185cd 4980 htscodecs_1.2.2-1.debian.tar.xz
Files:
 137bc341a9c88ca7ceecc525fd3ee042 2204 science optional htscodecs_1.2.2-1.dsc
 8c17dce72f4fe89fca1a22aeb1b73e3a 3044356 science optional htscodecs_1.2.2.orig.tar.gz
 9eb2c25d0bab9829ff77ca361db6aa41 4980 science optional htscodecs_1.2.2-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmK4ZfwUHGVtb2xsaWVy
QGRlYmlhbi5vcmcACgkQeTz2fo8NEdouihAAp+F2KeSJ/iORfG9d5//eyHc2jOYM
nrBoMixDJj3D7YzSPbz5zQFZUKh+r7IYlV06AKVgwA7Z+WUuVxo08onmMQXp/GGo
h5yqQ3qBRJUNmOQqZIa+xoqzVGTRXhisD9NpAUUEug+Yke3UjOnyohY6XSLQUGbB
K6sA59hqlDHuHHtENRcs52pSj0CekzpkgZxafuqVc9iKoRUmYrdw1Y78pHgEIkcY
R9SqYhrCEPXbG5T1z1/PMLR20BdDXlD1mQibKBjOuRfWYwtRmvQhpq59B95SZDk0
cDP0cNQSWpsbw8Oy5JuRVCU7xd/AI8Vby+PuzFPlL8blVs1FLnQQre8NKOARAjGF
9z45ETMadm6LZzwWSUFqb9bum+H+T9YuOuEUuasoqf3KlDaAmNRMrAK/v7rTF4ra
k5myK8oufeV+4QfQbtKXi7AQlwH30hAgeicseIHRWmOyGgRnUhw6DKgHE/teYyYx
1syNVmheg2xeVsIqDCAXjNRoIdWxZzCudgIAJdH7Ca+zOs5VKv6Wy8PWFZpgdOFs
iTBoBjmVyUm6YrVqLBI3slDmW55DohykAG6JeWu2G3t+bWSgM6bzLzgMFteHwsPK
M1Ov+v05N0V8xG7tvflCTqRlBBSwzEjqCG/2ugecJZKGcIuEJW6s6OMRVpua0IKL
Neg860yu/29cXDs=
=RqoE
-----END PGP SIGNATURE-----