#1012945 hmat-oss: ftbfs with GCC-12

#1012945#5
Date:
2022-06-16 12:09:31 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/hmat-oss_1.7.1-2_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/bin/c++ -DHMAT_DLL_EXPORTS -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fopenmp -Werror -Wall -Wno-sign-compare -Wno-undefined-var-template -Wno-unused-parameter -ffast-math -funsafe-math-optimizations -MD -MT CMakeFiles/hmat.dir/src/h_matrix.cpp.o -MF CMakeFiles/hmat.dir/src/h_matrix.cpp.o.d -o CMakeFiles/hmat.dir/src/h_matrix.cpp.o -c /<<PKGBUILDDIR>>/src/h_matrix.cpp
[ 68%] Building CXX object CMakeFiles/hmat.dir/src/hmat_cpp_interface.cpp.o
/usr/bin/c++ -DHMAT_DLL_EXPORTS -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fopenmp -Werror -Wall -Wno-sign-compare -Wno-undefined-var-template -Wno-unused-parameter -ffast-math -funsafe-math-optimizations -MD -MT CMakeFiles/hmat.dir/src/hmat_cpp_interface.cpp.o -MF CMakeFiles/hmat.dir/src/hmat_cpp_interface.cpp.o.d -o CMakeFiles/hmat.dir/src/hmat_cpp_interface.cpp.o -c /<<PKGBUILDDIR>>/src/hmat_cpp_interface.cpp
[ 72%] Building CXX object CMakeFiles/hmat.dir/src/json.cpp.o
/usr/bin/c++ -DHMAT_DLL_EXPORTS -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fopenmp -Werror -Wall -Wno-sign-compare -Wno-undefined-var-template -Wno-unused-parameter -ffast-math -funsafe-math-optimizations -MD -MT CMakeFiles/hmat.dir/src/json.cpp.o -MF CMakeFiles/hmat.dir/src/json.cpp.o.d -o CMakeFiles/hmat.dir/src/json.cpp.o -c /<<PKGBUILDDIR>>/src/json.cpp
[ 76%] Building CXX object CMakeFiles/hmat.dir/src/lapack_operations.cpp.o
/usr/bin/c++ -DHMAT_DLL_EXPORTS -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fopenmp -Werror -Wall -Wno-sign-compare -Wno-undefined-var-template -Wno-unused-parameter -ffast-math -funsafe-math-optimizations -MD -MT CMakeFiles/hmat.dir/src/lapack_operations.cpp.o -MF CMakeFiles/hmat.dir/src/lapack_operations.cpp.o.d -o CMakeFiles/hmat.dir/src/lapack_operations.cpp.o -c /<<PKGBUILDDIR>>/src/lapack_operations.cpp
[ 80%] Building CXX object CMakeFiles/hmat.dir/src/random_pivot_manager.cpp.o
/usr/bin/c++ -DHMAT_DLL_EXPORTS -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fopenmp -Werror -Wall -Wno-sign-compare -Wno-undefined-var-template -Wno-unused-parameter -ffast-math -funsafe-math-optimizations -MD -MT CMakeFiles/hmat.dir/src/random_pivot_manager.cpp.o -MF CMakeFiles/hmat.dir/src/random_pivot_manager.cpp.o.d -o CMakeFiles/hmat.dir/src/random_pivot_manager.cpp.o -c /<<PKGBUILDDIR>>/src/random_pivot_manager.cpp
[ 84%] Building CXX object CMakeFiles/hmat.dir/src/rk_matrix.cpp.o
/usr/bin/c++ -DHMAT_DLL_EXPORTS -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fopenmp -Werror -Wall -Wno-sign-compare -Wno-undefined-var-template -Wno-unused-parameter -ffast-math -funsafe-math-optimizations -MD -MT CMakeFiles/hmat.dir/src/rk_matrix.cpp.o -MF CMakeFiles/hmat.dir/src/rk_matrix.cpp.o.d -o CMakeFiles/hmat.dir/src/rk_matrix.cpp.o -c /<<PKGBUILDDIR>>/src/rk_matrix.cpp
[ 88%] Building CXX object CMakeFiles/hmat.dir/src/scalar_array.cpp.o
/usr/bin/c++ -DHMAT_DLL_EXPORTS -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fopenmp -Werror -Wall -Wno-sign-compare -Wno-undefined-var-template -Wno-unused-parameter -ffast-math -funsafe-math-optimizations -MD -MT CMakeFiles/hmat.dir/src/scalar_array.cpp.o -MF CMakeFiles/hmat.dir/src/scalar_array.cpp.o.d -o CMakeFiles/hmat.dir/src/scalar_array.cpp.o -c /<<PKGBUILDDIR>>/src/scalar_array.cpp
[ 92%] Building CXX object CMakeFiles/hmat.dir/src/serialization.cpp.o
/usr/bin/c++ -DHMAT_DLL_EXPORTS -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fopenmp -Werror -Wall -Wno-sign-compare -Wno-undefined-var-template -Wno-unused-parameter -ffast-math -funsafe-math-optimizations -MD -MT CMakeFiles/hmat.dir/src/serialization.cpp.o -MF CMakeFiles/hmat.dir/src/serialization.cpp.o.d -o CMakeFiles/hmat.dir/src/serialization.cpp.o -c /<<PKGBUILDDIR>>/src/serialization.cpp
[ 96%] Building CXX object CMakeFiles/hmat.dir/src/uncompressed_values.cpp.o
/usr/bin/c++ -DHMAT_DLL_EXPORTS -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fopenmp -Werror -Wall -Wno-sign-compare -Wno-undefined-var-template -Wno-unused-parameter -ffast-math -funsafe-math-optimizations -MD -MT CMakeFiles/hmat.dir/src/uncompressed_values.cpp.o -MF CMakeFiles/hmat.dir/src/uncompressed_values.cpp.o.d -o CMakeFiles/hmat.dir/src/uncompressed_values.cpp.o -c /<<PKGBUILDDIR>>/src/uncompressed_values.cpp
/<<PKGBUILDDIR>>/src/rk_matrix.cpp: In instantiation of ‘static size_t hmat::RkMatrix<T>::computeRkRkMemorySize(char, char, const hmat::RkMatrix<T>*, const hmat::RkMatrix<T>*) [with T = float; size_t = long unsigned int]’:
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:1119:16:   required from here
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:992:15: error: comparing the result of pointer addition ‘(a1 + ((sizetype)(b2->hmat::ScalarArray<float>::memorySize() * 40)))’ and NULL [-Werror=address]
  992 |            a1 == NULL ? 0 : a1->rows * r2->rank() * sizeof(T);
      |               ^
/<<PKGBUILDDIR>>/src/rk_matrix.cpp: In instantiation of ‘static size_t hmat::RkMatrix<T>::computeRkRkMemorySize(char, char, const hmat::RkMatrix<T>*, const hmat::RkMatrix<T>*) [with T = double; size_t = long unsigned int]’:
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:1120:16:   required from here
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:992:15: error: comparing the result of pointer addition ‘(a1 + ((sizetype)(b2->hmat::ScalarArray<double>::memorySize() * 40)))’ and NULL [-Werror=address]
/<<PKGBUILDDIR>>/src/rk_matrix.cpp: In instantiation of ‘static size_t hmat::RkMatrix<T>::computeRkRkMemorySize(char, char, const hmat::RkMatrix<T>*, const hmat::RkMatrix<T>*) [with T = std::complex<float>; size_t = long unsigned int]’:
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:1121:16:   required from here
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:992:15: error: comparing the result of pointer addition ‘(a1 + ((sizetype)(b2->hmat::ScalarArray<std::complex<float> >::memorySize() * 40)))’ and NULL [-Werror=address]
/<<PKGBUILDDIR>>/src/rk_matrix.cpp: In instantiation of ‘static size_t hmat::RkMatrix<T>::computeRkRkMemorySize(char, char, const hmat::RkMatrix<T>*, const hmat::RkMatrix<T>*) [with T = std::complex<double>; size_t = long unsigned int]’:
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:1122:16:   required from here
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:992:15: error: comparing the result of pointer addition ‘(a1 + ((sizetype)(b2->hmat::ScalarArray<std::complex<double> >::memorySize() * 40)))’ and NULL [-Werror=address]
/<<PKGBUILDDIR>>/src/rk_matrix.cpp: In member function ‘void hmat::RkMatrix<T>::gemmRk(double, char, char, T, const hmat::HMatrix<T>*, const hmat::HMatrix<T>*) [with T = float]’:
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:1044:22: error: ‘<unknown>’ may be used uninitialized [-Werror=maybe-uninitialized]
 1044 |     formattedAddParts(epsilon, alphaV, subRks, nSubRks);
      |     ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:501:6: note: by argument 3 of type ‘const float*’ to ‘void hmat::RkMatrix<T>::formattedAddParts(double, const T*, const hmat::RkMatrix<T>* const*, int, bool) [with T = float]’ declared here
  501 | void RkMatrix<T>::formattedAddParts(double epsilon, const T* alpha, const RkMatrix<T>* const * parts,
      |      ^~~~~~~~~~~
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:1044:22: error: ‘<unknown>’ may be used uninitialized [-Werror=maybe-uninitialized]
 1044 |     formattedAddParts(epsilon, alphaV, subRks, nSubRks);
      |     ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:501:6: note: by argument 4 of type ‘const hmat::RkMatrix<float>* const*’ to ‘void hmat::RkMatrix<T>::formattedAddParts(double, const T*, const hmat::RkMatrix<T>* const*, int, bool) [with T = float]’ declared here
  501 | void RkMatrix<T>::formattedAddParts(double epsilon, const T* alpha, const RkMatrix<T>* const * parts,
      |      ^~~~~~~~~~~
/<<PKGBUILDDIR>>/src/rk_matrix.cpp: In member function ‘void hmat::RkMatrix<T>::gemmRk(double, char, char, T, const hmat::HMatrix<T>*, const hmat::HMatrix<T>*) [with T = double]’:
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:1044:22: error: ‘<unknown>’ may be used uninitialized [-Werror=maybe-uninitialized]
 1044 |     formattedAddParts(epsilon, alphaV, subRks, nSubRks);
      |     ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:501:6: note: by argument 3 of type ‘const double*’ to ‘void hmat::RkMatrix<T>::formattedAddParts(double, const T*, const hmat::RkMatrix<T>* const*, int, bool) [with T = double]’ declared here
  501 | void RkMatrix<T>::formattedAddParts(double epsilon, const T* alpha, const RkMatrix<T>* const * parts,
      |      ^~~~~~~~~~~
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:1044:22: error: ‘<unknown>’ may be used uninitialized [-Werror=maybe-uninitialized]
 1044 |     formattedAddParts(epsilon, alphaV, subRks, nSubRks);
      |     ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/<<PKGBUILDDIR>>/src/rk_matrix.cpp:501:6: note: by argument 4 of type ‘const hmat::RkMatrix<double>* const*’ to ‘void hmat::RkMatrix<T>::formattedAddParts(double, const T*, const hmat::RkMatrix<T>* const*, int, bool) [with T = double]’ declared here
  501 | void RkMatrix<T>::formattedAddParts(double epsilon, const T* alpha, const RkMatrix<T>* const * parts,
      |      ^~~~~~~~~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-undefined-var-template’ may have been intended to silence earlier diagnostics
cc1plus: all warnings being treated as errors
make[3]: *** [CMakeFiles/hmat.dir/build.make:359: CMakeFiles/hmat.dir/src/rk_matrix.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu'
make[2]: *** [CMakeFiles/Makefile2:86: CMakeFiles/hmat.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:12: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

#1012945#10
Date:
2022-06-19 13:49:36 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
hmat-oss, 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 1012945@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Pierre Gruet <pgt@debian.org> (supplier of updated hmat-oss 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, 19 Jun 2022 15:14:35 +0200
Source: hmat-oss
Architecture: source
Version: 1.7.1-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Pierre Gruet <pgt@debian.org>
Closes: 1012945
Changes:
 hmat-oss (1.7.1-3) unstable; urgency=medium
 .
   * Solving issues that has the package FTBFS with g++-12:
     - incorrect precedence of + and ?: operators
     - unitialization error due to conditional initialization of an array
     (Closes: #1012945)
   * Raising Standards version to 4.6.1 (no change)
   * Marking the shared lib package as Multi-Arch: same
Checksums-Sha1:
 903bcaa70d793fe0abf1dc75018e9d13b6d72ff4 2171 hmat-oss_1.7.1-3.dsc
 1c936f9339912e21cdd2e160e4469b1c102a8dd2 5176 hmat-oss_1.7.1-3.debian.tar.xz
 edf3aea853bca32f5bc1f13d181bd13a7f8d97ac 7460 hmat-oss_1.7.1-3_amd64.buildinfo
Checksums-Sha256:
 fca314090c211a32c357623d62142e6701c52c6f9e85139b6ac0f48569663b97 2171 hmat-oss_1.7.1-3.dsc
 56bb4ab8478680b18cac035e520be6f1f170aad7b636e44be29cfa7dce538db0 5176 hmat-oss_1.7.1-3.debian.tar.xz
 99d05f49e970080b54083b0ab321dae3718df0f1d2a627e115ea6f93ebbdffe1 7460 hmat-oss_1.7.1-3_amd64.buildinfo
Files:
 dbcb7a3efd5f4c6b2d135c17b009ae5a 2171 science optional hmat-oss_1.7.1-3.dsc
 a2fb68097cf63239345091a7144fb340 5176 science optional hmat-oss_1.7.1-3.debian.tar.xz
 461cadc8ea8139369bdb4ac67c08ae57 7460 science optional hmat-oss_1.7.1-3_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEM8soQxPpC9J9y0UjYAMWptwndHYFAmKvI64ACgkQYAMWptwn
dHZf3Q/9EZ/aAF6T6+cknKEeq2+cjNx4o2TXUF4N8wGl9VDTjxpOqh9JUS/1NScR
3xdZ7TLQzPBU5OWWQr2oGigVl9Ol2opA2jFTtpjSDR74eRa0wSte+rn6rgwRyUKz
1pD26Ptp7X56H82A/rWe1XPuaZ2p2ifUwS6ZgL607tqlpfyeWmE/jjk9U1AIPyy9
/5R+1uFZKvAxEgU9Dhijuu1VFWRihD5pbCsOshAqMkGbvppmy+smGDW0zlZ69mqm
RlE1Il4p04oxp9mlbDE4tnNJH3uh4wAE0aN+FajBkgzT2LnoIygPQZBdeddjtYx5
1js5G6SBB51Qzm0ZDywhaD+y5iQ/6PDONVMMjPGe2CFDFz1JFxnvxdzmNZ4tAbqh
3zf3IvrW3GsRzAtFe02ivPAyOG5zRJ0K0NTj1j7NL8lZ3fxK8PKmYLMpqOw3Efrm
vglfIaCL9dUOcouLOdPtIm4Wg5iJVwxhNUnQgJ9SP/Xqp2XRcaKlNpuz0uOvTmMa
fh/qia2MsoIOLft0WS4yVEaINeIbKBT5Lk2e0k6rIyPxtnVChxGdpQayTffmWyKk
STK6z6Cn4/tcbQlC951PfpUJxRJtENyGz4SqqQ41xBeqBQ9idT3rGmnYW0zLODUM
7IxNzdlKcqSQXMeI+nd81g5iJAzRfb8byQEv79PuyTxvYCEiy5I=
=eSbm
-----END PGP SIGNATURE-----