[Debian-med-packaging] Bug#1012988: librg-blast-parser-perl: ftbfs with GCC-12

Matthias Klose doko at debian.org
Thu Jun 16 13:11:18 BST 2022


Package: src:librg-blast-parser-perl
Version: 0.03-8
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/librg-blast-parser-perl_0.03-8_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.

[...]
  523 |     operator<<(basic_ostream<char, _Traits>& __out, char __c)
      |     ^~~~~~~~
/usr/include/c++/12/ostream:523:5: note:   template argument deduction/substitution failed:
/usr/include/rostlab/aux_functions.h:186:43: note:   cannot convert ‘v_i.__gnu_cxx::__normal_iterator<const rostlab::blast::hit*, std::vector<rostlab::blast::hit> >::operator*()’ (type ‘const rostlab::blast::hit’) to type ‘char’
  186 |   { if( v_i != v.begin() ) os << ", "; os << *v_i; }
      |                                        ~~~^~~~~~~
/usr/include/c++/12/ostream:534:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)’
  534 |     operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
      |     ^~~~~~~~
/usr/include/c++/12/ostream:534:5: note:   template argument deduction/substitution failed:
/usr/include/rostlab/aux_functions.h:186:43: note:   cannot convert ‘v_i.__gnu_cxx::__normal_iterator<const rostlab::blast::hit*, std::vector<rostlab::blast::hit> >::operator*()’ (type ‘const rostlab::blast::hit’) to type ‘signed char’
  186 |   { if( v_i != v.begin() ) os << ", "; os << *v_i; }
      |                                        ~~~^~~~~~~
/usr/include/c++/12/ostream:539:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)’
  539 |     operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
      |     ^~~~~~~~
/usr/include/c++/12/ostream:539:5: note:   template argument deduction/substitution failed:
/usr/include/rostlab/aux_functions.h:186:43: note:   cannot convert ‘v_i.__gnu_cxx::__normal_iterator<const rostlab::blast::hit*, std::vector<rostlab::blast::hit> >::operator*()’ (type ‘const rostlab::blast::hit’) to type ‘unsigned char’
  186 |   { if( v_i != v.begin() ) os << ", "; os << *v_i; }
      |                                        ~~~^~~~~~~
/usr/include/c++/12/ostream:598:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)’
  598 |     operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
      |     ^~~~~~~~
/usr/include/c++/12/ostream:598:5: note:   template argument deduction/substitution failed:
/usr/include/rostlab/aux_functions.h:186:43: note:   mismatched types ‘const _CharT*’ and ‘rostlab::blast::hit’
  186 |   { if( v_i != v.begin() ) os << ", "; os << *v_i; }
      |                                        ~~~^~~~~~~
/usr/include/c++/12/bits/ostream.tcc:302:5: note: candidate: ‘template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)’
  302 |     operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
      |     ^~~~~~~~
/usr/include/c++/12/bits/ostream.tcc:302:5: note:   template argument deduction/substitution failed:
/usr/include/rostlab/aux_functions.h:186:43: note:   cannot convert ‘v_i.__gnu_cxx::__normal_iterator<const rostlab::blast::hit*, std::vector<rostlab::blast::hit> >::operator*()’ (type ‘const rostlab::blast::hit’) to type ‘const char*’
  186 |   { if( v_i != v.begin() ) os << ", "; os << *v_i; }
      |                                        ~~~^~~~~~~
/usr/include/c++/12/ostream:615:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)’
  615 |     operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
      |     ^~~~~~~~
/usr/include/c++/12/ostream:615:5: note:   template argument deduction/substitution failed:
/usr/include/rostlab/aux_functions.h:186:43: note:   cannot convert ‘v_i.__gnu_cxx::__normal_iterator<const rostlab::blast::hit*, std::vector<rostlab::blast::hit> >::operator*()’ (type ‘const rostlab::blast::hit’) to type ‘const char*’
  186 |   { if( v_i != v.begin() ) os << ", "; os << *v_i; }
      |                                        ~~~^~~~~~~
/usr/include/c++/12/ostream:628:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)’
  628 |     operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
      |     ^~~~~~~~
/usr/include/c++/12/ostream:628:5: note:   template argument deduction/substitution failed:
/usr/include/rostlab/aux_functions.h:186:43: note:   cannot convert ‘v_i.__gnu_cxx::__normal_iterator<const rostlab::blast::hit*, std::vector<rostlab::blast::hit> >::operator*()’ (type ‘const rostlab::blast::hit’) to type ‘const signed char*’
  186 |   { if( v_i != v.begin() ) os << ", "; os << *v_i; }
      |                                        ~~~^~~~~~~
/usr/include/c++/12/ostream:633:5: note: candidate: ‘template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)’
  633 |     operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
      |     ^~~~~~~~
/usr/include/c++/12/ostream:633:5: note:   template argument deduction/substitution failed:
/usr/include/rostlab/aux_functions.h:186:43: note:   cannot convert ‘v_i.__gnu_cxx::__normal_iterator<const rostlab::blast::hit*, std::vector<rostlab::blast::hit> >::operator*()’ (type ‘const rostlab::blast::hit’) to type ‘const unsigned char*’
  186 |   { if( v_i != v.begin() ) os << ", "; os << *v_i; }
      |                                        ~~~^~~~~~~
rostlab/blast-parser-location.h:158:3: note: candidate: ‘template<class YYChar> std::basic_ostream<YYChar>& rostlab::blast::operator<<(std::basic_ostream<YYChar>&, const position&)’
rostlab/blast-parser-location.h:158:3: note:   template argument deduction/substitution failed:
/usr/include/rostlab/aux_functions.h:186:43: note:   cannot convert ‘v_i.__gnu_cxx::__normal_iterator<const rostlab::blast::hit*, std::vector<rostlab::blast::hit> >::operator*()’ (type ‘const rostlab::blast::hit’) to type ‘const rostlab::blast::position&’
  186 |   { if( v_i != v.begin() ) os << ", "; os << *v_i; }
      |                                        ~~~^~~~~~~
rostlab/blast-parser-location.h:286:3: note: candidate: ‘template<class YYChar> std::basic_ostream<YYChar>& rostlab::blast::operator<<(std::basic_ostream<YYChar>&, const location&)’
rostlab/blast-parser-location.h:286:3: note:   template argument deduction/substitution failed:
/usr/include/rostlab/aux_functions.h:186:43: note:   cannot convert ‘v_i.__gnu_cxx::__normal_iterator<const rostlab::blast::hit*, std::vector<rostlab::blast::hit> >::operator*()’ (type ‘const rostlab::blast::hit’) to type ‘const rostlab::blast::location&’
  186 |   { if( v_i != v.begin() ) os << ", "; os << *v_i; }
      |                                        ~~~^~~~~~~
make[1]: *** [Makefile:345: Parser.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j8 returned exit code 2
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2



More information about the Debian-med-packaging mailing list