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

Martin Michlmayr tbm at hpe.com
Wed Jan 20 00:32:22 UTC 2016


Package: dasher
Version: 4.11+git20130508.adc653-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
...
> .0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -c DasherAppSettings.cpp  -fPIC -DPIC -o .libs/libdashergtk_la-DasherAppSettings.o
> DasherAppSettings.cpp: In function 'const gchar* dasher_app_settings_get_string(DasherAppSettings*, int)':
> DasherAppSettings.cpp:398:14: error: cannot convert 'bool' to 'const gchar* {aka const char*}' in return
>        return false;
>               ^~~~~
> 
> DasherAppSettings.cpp: In function 'void dasher_app_settings_launch_advanced(DasherAppSettings*)':
> DasherAppSettings.cpp:505:15: warning: ISO C++ forbids converting a string constant to 'gchar* {aka char*}' [-Wwrite-strings]
>    szArgs[0] = "gconf-editor";
>                ^~~~~~~~~~~~~~
> 
> DasherAppSettings.cpp:506:15: warning: ISO C++ forbids converting a string constant to 'gchar* {aka char*}' [-Wwrite-strings]
>    szArgs[1] = "/apps/dasher4";
>                ^~~~~~~~~~~~~~~
> 
> Makefile:614: recipe for target 'libdashergtk_la-DasherAppSettings.lo' failed
> make[4]: *** [libdashergtk_la-DasherAppSettings.lo] Error 1
> make[4]: Leaving directory '/<<BUILDDIR>>/dasher-4.11+git20130508.adc653/Src/Gtk2'
> Makefile:480: recipe for target 'all-recursive' failed
> make[3]: *** [all-recursive] Error 1

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



More information about the pkg-gnome-maintainers mailing list