--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: FTBFS with GCC 6: cannot convert x to y
- From: Martin Michlmayr <tbm@hpe.com>
- Date: Tue, 19 Jan 2016 16:33:05 -0800
- Message-id: <20160120003305.GR4951@jirafa.cyrius.com>
- In-reply-to: <20160119085549.A7D44280CCB@dl580gen9-02.hlinux>
- References: <20160119085549.A7D44280CCB@dl580gen9-02.hlinux>
Package: fracplanet
Version: 0.4.0-3
Severity: important
User: debian-gcc@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
...
> g++ -c -include obj/fracplanet -Wall -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DFRACPLANET_VERSION="0.4.0" -DFRACPLANET_BUILD="0.4.0 (release build)" -DNDEBUG -DQT_NO_ASCII_CAST -D_REENTRANT -Wall -W -DQT_DLL -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 -I/usr/X11R6/include -Imoc -o obj/triangle_mesh_cloud.o triangle_mesh_cloud.cpp
> image.cpp: In member function 'bool Raster<T>::write_pgmfile(const string&, Progress*) const [with T = unsigned char; std::__cxx11::string = std::__cxx11::basic_string<char>]':
> image.cpp:88:10: error: cannot convert 'std::ofstream {aka std::basic_ofstream<char>}' to 'bool' in return
> return out;
> ^~~
>
> image.cpp: In member function 'bool Raster<T>::write_pgmfile(const string&, Progress*) const [with T = short unsigned int; std::__cxx11::string = std::__cxx11::basic_string<char>]':
> image.cpp:104:28: warning: narrowing conversion of '(((int)(* it)) >> 8)' from 'int' to 'uchar {aka unsigned char}' inside { } [-Wnarrowing]
> const uchar p[2]={((*it)>>8),(*it)};
> ~~~~~~^~~~
>
> image.cpp:104:34: warning: narrowing conversion of '(ushort)(* it)' from 'ushort {aka short unsigned int}' to 'uchar {aka unsigned char}' inside { } [-Wnarrowing]
> const uchar p[2]={((*it)>>8),(*it)};
> ~^~~~
>
> image.cpp:118:10: error: cannot convert 'std::ofstream {aka std::basic_ofstream<char>}' to 'bool' in return
> return out;
> ^~~
>
> image.cpp: In member function 'bool Raster<T>::write_ppmfile(const string&, Progress*) const [with T = ByteRGBA; std::__cxx11::string = std::__cxx11::basic_string<char>]':
> image.cpp:135:10: error: cannot convert 'std::ofstream {aka std::basic_ofstream<char>}' to 'bool' in return
> return out;
> ^~~
>
> In file included from control_save.cpp:24:0:
> fracplanet_main.h:103:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
> std::auto_ptr<QProgressDialog> progress_dialog;
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/bits/locale_conv.h:41:0,
> from /usr/include/c++/6/locale:43,
> from /usr/include/c++/6/iomanip:43,
> from common.h:33,
> from precompiled.h:23:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> In file included from control_terrain.cpp:24:0:
> fracplanet_main.h:103:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
> std::auto_ptr<QProgressDialog> progress_dialog;
> ^~~~~~~~
>
> In file included from fracplanet.cpp:33:0:
> fracplanet_main.h:103:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
> std::auto_ptr<QProgressDialog> progress_dialog;
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/bits/locale_conv.h:41:0,
> from /usr/include/c++/6/locale:43,
> from /usr/include/c++/6/iomanip:43,
> from common.h:33,
> from precompiled.h:23:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/bits/locale_conv.h:41:0,
> from /usr/include/c++/6/locale:43,
> from /usr/include/c++/6/iomanip:43,
> from common.h:33,
> from precompiled.h:23:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> In file included from fracplanet_main.cpp:22:0:
> fracplanet_main.h:103:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
> std::auto_ptr<QProgressDialog> progress_dialog;
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/bits/locale_conv.h:41:0,
> from /usr/include/c++/6/locale:43,
> from /usr/include/c++/6/iomanip:43,
> from common.h:33,
> from precompiled.h:23:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> fracplanet_main.cpp: In member function 'virtual void FracplanetMain::progress_start(uint, const string&)':
> fracplanet_main.cpp:64:28: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
> progress_dialog=std::auto_ptr<QProgressDialog>(new QProgressDialog("Progress","Cancel",0,100,this));
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/bits/locale_conv.h:41:0,
> from /usr/include/c++/6/locale:43,
> from /usr/include/c++/6/iomanip:43,
> from common.h:33,
> from precompiled.h:23:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> fracplanet_main.cpp: In member function 'void FracplanetMain::regenerate()':
> fracplanet_main.cpp:160:7: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
> std::auto_ptr<TriangleMeshTerrainPlanet> it(new TriangleMeshTerrainPlanet(parameters_terrain,this));
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/bits/locale_conv.h:41:0,
> from /usr/include/c++/6/locale:43,
> from /usr/include/c++/6/iomanip:43,
> from common.h:33,
> from precompiled.h:23:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> fracplanet_main.cpp:167:7: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
> std::auto_ptr<TriangleMeshTerrainFlat> it(new TriangleMeshTerrainFlat(parameters_terrain,this));
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/bits/locale_conv.h:41:0,
> from /usr/include/c++/6/locale:43,
> from /usr/include/c++/6/iomanip:43,
> from common.h:33,
> from precompiled.h:23:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> fracplanet_main.cpp:180:11: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
> std::auto_ptr<TriangleMeshCloudPlanet> it(new TriangleMeshCloudPlanet(parameters_cloud,this));
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/bits/locale_conv.h:41:0,
> from /usr/include/c++/6/locale:43,
> from /usr/include/c++/6/iomanip:43,
> from common.h:33,
> from precompiled.h:23:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> fracplanet_main.cpp:187:11: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
> std::auto_ptr<TriangleMeshCloudFlat> it(new TriangleMeshCloudFlat(parameters_cloud,this));
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/bits/locale_conv.h:41:0,
> from /usr/include/c++/6/locale:43,
> from /usr/include/c++/6/iomanip:43,
> from common.h:33,
> from precompiled.h:23:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> triangle_mesh.cpp: In member function 'void TriangleMesh::write_blender(std::ofstream&, const string&, const FloatRGBA*) const':
> triangle_mesh.cpp:304:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
> std::auto_ptr<ByteRGBA> byte_faux_alpha;
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/bits/locale_conv.h:41:0,
> from /usr/include/c++/6/locale:43,
> from /usr/include/c++/6/iomanip:43,
> from common.h:33,
> from precompiled.h:23:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> triangle_mesh.cpp:305:40: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
> if (faux_alpha) byte_faux_alpha=std::auto_ptr<ByteRGBA>(new ByteRGBA(*faux_alpha));
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/bits/locale_conv.h:41:0,
> from /usr/include/c++/6/locale:43,
> from /usr/include/c++/6/iomanip:43,
> from common.h:33,
> from precompiled.h:23:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
--- End Message ---