[Debian-med-packaging] Bug#811830: proftmb: FTBFS with GCC 6: no match for

Martin Michlmayr tbm at hpe.com
Wed Jan 20 02:27:37 UTC 2016


Package: proftmb
Version: 1.1.12-3
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-no-match

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> g++ -DHAVE_CONFIG_H -I. -I..   -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -c -o proftmb.o proftmb.cpp
> sed -e 's|__pkgdatadir__|/usr/share/proftmb|g;s|__datadir__|/usr/share|g;s|__PACKAGE__|proftmb|g;' < proftmb_example.txt.raw > proftmb_example.txt
> In file included from HMMOutput.cpp:1:0:
> HMMOutput.h:21:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
>  void DisplayArch(ostream&,Par&,uint,char* ="");
>                                               ^
> 
> HMMOutput.h:24:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
>  void PrintEmit(ostream&,Par&,uint,char* ="");
>                                             ^
> 
> In file included from proftmb.cpp:18:0:
> HMMOutput.h:21:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
>  void DisplayArch(ostream&,Par&,uint,char* ="");
>                                               ^
> 
> HMMOutput.h:24:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
>  void PrintEmit(ostream&,Par&,uint,char* ="");
>                                             ^
> 
> proftmb.cpp: In function 'int Run(int, char**)':
> proftmb.cpp:166:47: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}')
>   if (!TS) { cerr<<"Couldn't open Output file "<<FileName<<": "<< strerror(errno) <<endl; return 1; }
>              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~

-> error

> 
> proftmb.cpp:166:47: note: candidate: operator<<(int, int) <built-in>
> proftmb.cpp:166:47: note:   no known conversion for argument 2 from 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}' to 'int'
> In file included from /usr/include/c++/6/iostream:39:0,
>                  from proftmb.cpp:6:
> /usr/include/c++/6/ostream:108:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
>        operator<<(__ostream_type& (*__pf)(__ostream_type&))
>        ^~~~~~~~
> 
> /usr/include/c++/6/ostream:108:7: note:   no known conversion for argument 1 from 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&) {aka std::basic_ostream<char>& (*)(std::basic_ostream<char>&)}'
> /usr/include/c++/6/ostream:117:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ios_type& (*)(std::basic_ostream<_CharT, _Traits>::__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>; std::basic_ostream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
>        operator<<(__ios_type& (*__pf)(__ios_type&))
>        ^~~~~~~~
> 
> /usr/include/c++/6/ostream:117:7: note:   no known conversion for argument 1 from 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}'
> /usr/include/c++/6/ostream:127:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
>        operator<<(ios_base& (*__pf) (ios_base&))
>        ^~~~~~~~
> 
> /usr/include/c++/6/ostream:127:7: note:   no known conversion for argument 1 from 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}' to 'std::ios_base& (*)(std::ios_base&)'
> /usr/include/c++/6/ostream:166:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
>        operator<<(long __n)
>        ^~~~~~~~
> 
> /usr/include/c++/6/ostream:166:7: note:   no known conversion for argument 1 from 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}' to 'long int'
> /usr/include/c++/6/ostream:170:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
>        operator<<(unsigned long __n)
>        ^~~~~~~~
> 
> /usr/include/c++/6/ostream:170:7: note:   no known conversion for argument 1 from 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}' to 'long unsigned int'
> /usr/include/c++/6/ostream:174:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
>        operator<<(bool __n)
>        ^~~~~~~~
> 
> /usr/include/c++/6/ostream:174:7: note:   no known conversion for argument 1 from 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}' to 'bool'
> In file included from /usr/include/c++/6/ostream:638:0,
>                  from /usr/include/c++/6/iostream:39,
>                  from proftmb.cpp:6:
> /usr/include/c++/6/bits/ostream.tcc:91:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]
>      basic_ostream<_CharT, _Traits>::
>      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> /usr/include/c++/6/bits/ostream.tcc:91:5: note:   no known conversion for argument 1 from 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}' to 'short int'
> In file included from /usr/include/c++/6/iostream:39:0,
>                  from proftmb.cpp:6:
> /usr/include/c++/6/ostream:181:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
>        operator<<(unsigned short __n)
>        ^~~~~~~~
> 
> /usr/include/c++/6/ostream:181:7: note:   no known conversion for argument 1 from 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}' to 'short unsigned int'
> In file included from /usr/include/c++/6/ostream:638:0,
>                  from /usr/include/c++/6/iostream:39,
>                  from proftmb.cpp:6:
> /usr/include/c++/6/bits/ostream.tcc:105:5: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]
>      basic_ostream<_CharT, _Traits>::
>      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> /usr/include/c++/6/bits/ostream.tcc:105:5: note:   no known conversion for argument 1 from 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}' to 'int'
> In file included from /usr/include/c++/6/iostream:39:0,
>                  from proftmb.cpp:6:
> /usr/include/c++/6/ostream:192:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
>        operator<<(unsigned int __n)
>        ^~~~~~~~
> 
> /usr/include/c++/6/ostream:192:7: note:   no known conversion for argument 1 from 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}' to 'unsigned int'
> /usr/include/c++/6/ostream:201:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
>        operator<<(long long __n)
>        ^~~~~~~~
> 
> /usr/include/c++/6/ostream:201:7: note:   no known conversion for argument 1 from 'std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}' to 'long long int'
> /usr/include/c++/6/ostream:205:7: note: candidate: std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_CharT, _Traits>::__ostream_type = std::basic_ostream<char>]
>        operator<<(unsigned long long __n)
>        ^~~~~~~~
...



More information about the Debian-med-packaging mailing list