Bug#811613: FTBFS with GCC 6: cannot convert x to y

Martin Michlmayr tbm at hpe.com
Wed Jan 20 00:19:52 UTC 2016


Package: libphonenumber
Version: 7.1.0-2
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-cannot-convert

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.

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> make[3]: Entering directory '/<<PKGBUILDDIR>>/cpp/build'
> [  0%] Building CXX object tools/CMakeFiles/generate_geocoding_data.dir/src/cpp-build/generate_geocoding_data.cc.o
> /<<PKGBUILDDIR>>/tools/cpp/src/cpp-build/generate_geocoding_data.cc: In function 'bool i18n::phonenumbers::StrToInt(const string&, int32*)':
> /<<PKGBUILDDIR>>/tools/cpp/src/cpp-build/generate_geocoding_data.cc:144:10: error: cannot convert 'std::stringstream {aka std::__cxx11::basic_stringstream<char>}' to 'bool' in return
>    return stream;
>           ^~~~~~
> 
> /<<PKGBUILDDIR>>/tools/cpp/src/cpp-build/generate_geocoding_data.cc: In function 'bool i18n::phonenumbers::IntToStr(int32, std::__cxx11::string*)':
> /<<PKGBUILDDIR>>/tools/cpp/src/cpp-build/generate_geocoding_data.cc:152:10: error: cannot convert 'std::stringstream {aka std::__cxx11::basic_stringstream<char>}' to 'bool' in return
>    return stream;
>           ^~~~~~
> 
> tools/CMakeFiles/generate_geocoding_data.dir/build.make:62: recipe for target 'tools/CMakeFiles/generate_geocoding_data.dir/src/cpp-build/generate_geocoding_data.cc.o' failed
> make[3]: *** [tools/CMakeFiles/generate_geocoding_data.dir/src/cpp-build/generate_geocoding_data.cc.o] Error 1

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the pkg-java-maintainers mailing list