Bug#811607: FTBFS with GCC 6: nonnull argument compared to NULL
Martin Michlmayr
tbm at hpe.com
Wed Jan 20 00:15:07 UTC 2016
Package: vte2.91
Version: 0.42.1-2
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-nonnull
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
...
> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I/<<PKGBUILDDIR>>/./src -I.. -DG_LOG_DOMAIN=\"Vte\" -DVTE_API_VERSION=\"2.91\" -DDATADIR=\"/usr/share\" -DLIBEXECDIR=\"/usr/lib/libvte-2.91-0\" -DLOCALEDIR=\"/usr/share/locale\" -DGLIB_DISABLE_DEPRECATION_WARNINGS -DVTE_COMPILATION -I/<<PKGBUILDDIR>>/./src/vte -I./vte -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/gtk-3.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/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/p11-kit-1 -pipe -Waggregate-return -Wall -Wcast-align -Wendif-labels -Werror=declarat
> ion-after-statement -Werror=format=2 -Werror=format-nonliteral -Werror=format-security -Werror=implicit-function-declaration -Werror=init-self -Werror=missing-include-dirs -Werror=missing-prototypes -Werror=pointer-arith -Wextra -Wfloat-equal -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wmissing-format-attribute -Wmissing-noreturn -Wno-missing-field-initializers -Wno-switch-enum -Wno-unused-parameter -Wpacked -Wshadow -Wsign-compare -Wstrict-aliasing=2 -Wundef -Wuninitialized -Wunsafe-loop-optimizations -Wwrite-strings -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fstack-protector -fstack-protector-strong -fno-semantic-interposition -Wno-deprecated-declarations -fno-rtti -fno-exceptions -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -c /<<PKGBUILDDIR>>/./src/vte.cc -fPIC -DPIC -o .libs/libvte_2_91_la-vte.o
> In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
> from /usr/include/glib-2.0/glib/gtypes.h:32,
> from /usr/include/glib-2.0/glib/galloca.h:32,
> from /usr/include/glib-2.0/glib.h:30,
> from /<<PKGBUILDDIR>>/./src/vte/vte.h:22,
> from /<<PKGBUILDDIR>>/./src/vte.cc:32:
> /<<PKGBUILDDIR>>/./src/vte.cc: In function 'void vte_terminal_match_set_cursor_name(VteTerminal*, int, const char*)':
> /<<PKGBUILDDIR>>/./src/vte.cc:1382:38: error: nonnull argument 'cursor_name' compared to NULL [-Werror=nonnull]
> g_return_if_fail(cursor_name != NULL);
> ~~~~~~~~~~~~^~~~
>
> /usr/include/glib-2.0/glib/gmacros.h:320:8: note: in definition of macro '_G_BOOLEAN_EXPR'
> if (expr) \
> ^~~~
>
> /usr/include/glib-2.0/glib/gmessages.h:368:9: note: in expansion of macro 'G_LIKELY'
> if G_LIKELY(expr) { } else \
> ^~~~~~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc:1382:9: note: in expansion of macro 'g_return_if_fail'
> g_return_if_fail(cursor_name != NULL);
> ^~~~~~~~~~~~~~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc: In function 'char* vte_terminal_match_check_event(VteTerminal*, GdkEvent*, int*)':
> /<<PKGBUILDDIR>>/./src/vte.cc:1726:19: error: nonnull argument 'event' compared to NULL [-Werror=nonnull]
> if (event == NULL)
> ~~~~~~^~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc: In function 'void vte_terminal_emit_adjustment_changed(VteTerminal*)':
> /<<PKGBUILDDIR>>/./src/vte.cc:1752:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
> if (current != v) {
> ^
>
> /<<PKGBUILDDIR>>/./src/vte.cc:1765:18: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
> if (current != v) {
> ^
>
> /<<PKGBUILDDIR>>/./src/vte.cc: In function 'void _vte_terminal_adjust_adjustments_full(VteTerminal*)':
> /<<PKGBUILDDIR>>/./src/vte.cc:1875:11: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
> if (v != 1) {
> ^
>
> /<<PKGBUILDDIR>>/./src/vte.cc:1886:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
> if (v != terminal->pvt->row_count) {
> ^~~~~~~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc:1898:26: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
> if (v != terminal->pvt->row_count) {
> ^~~~~~~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc: In function 'void _vte_terminal_set_background_alpha(VteTerminal*, gdouble)':
> /<<PKGBUILDDIR>>/./src/vte.cc:2436:27: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
> if (alpha == pvt->background_alpha)
> ^~~~~~~~~~~~~~~~
>
> In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
> from /usr/include/glib-2.0/glib/gtypes.h:32,
> from /usr/include/glib-2.0/glib/galloca.h:32,
> from /usr/include/glib-2.0/glib.h:30,
> from /<<PKGBUILDDIR>>/./src/vte/vte.h:22,
> from /<<PKGBUILDDIR>>/./src/vte.cc:32:
> /<<PKGBUILDDIR>>/./src/vte.cc: In function 'void vte_terminal_set_color_foreground(VteTerminal*, const GdkRGBA*)':
> /<<PKGBUILDDIR>>/./src/vte.cc:2703:37: error: nonnull argument 'foreground' compared to NULL [-Werror=nonnull]
> g_return_if_fail(foreground != NULL);
> ~~~~~~~~~~~^~~~
>
> /usr/include/glib-2.0/glib/gmacros.h:320:8: note: in definition of macro '_G_BOOLEAN_EXPR'
> if (expr) \
> ^~~~
>
> /usr/include/glib-2.0/glib/gmessages.h:368:9: note: in expansion of macro 'G_LIKELY'
> if G_LIKELY(expr) { } else \
> ^~~~~~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc:2703:9: note: in expansion of macro 'g_return_if_fail'
> g_return_if_fail(foreground != NULL);
> ^~~~~~~~~~~~~~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc: In function 'void vte_terminal_set_color_background(VteTerminal*, const GdkRGBA*)':
> /<<PKGBUILDDIR>>/./src/vte.cc:2725:37: error: nonnull argument 'background' compared to NULL [-Werror=nonnull]
> g_return_if_fail(background != NULL);
> ~~~~~~~~~~~^~~~
>
> /usr/include/glib-2.0/glib/gmacros.h:320:8: note: in definition of macro '_G_BOOLEAN_EXPR'
> if (expr) \
> ^~~~
>
> /usr/include/glib-2.0/glib/gmessages.h:368:9: note: in expansion of macro 'G_LIKELY'
> if G_LIKELY(expr) { } else \
> ^~~~~~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc:2725:9: note: in expansion of macro 'g_return_if_fail'
> g_return_if_fail(background != NULL);
> ^~~~~~~~~~~~~~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc: In function 'gboolean vte_terminal_spawn_sync(VteTerminal*, VtePtyFlags, const char*, char**, char**, GSpawnFlags, GSpawnChildSetupFunc, gpointer, GPid*, GCancellable*, GError**)':
> /<<PKGBUILDDIR>>/./src/vte.cc:3610:35: error: nonnull argument 'argv' compared to NULL [-Werror=nonnull]
> g_return_val_if_fail(argv != NULL, FALSE);
> ~~~~~^~~~
>
> /usr/include/glib-2.0/glib/gmacros.h:320:8: note: in definition of macro '_G_BOOLEAN_EXPR'
> if (expr) \
> ^~~~
>
> /usr/include/glib-2.0/glib/gmessages.h:377:9: note: in expansion of macro 'G_LIKELY'
> if G_LIKELY(expr) { } else \
> ^~~~~~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc:3610:9: note: in expansion of macro 'g_return_val_if_fail'
> g_return_val_if_fail(argv != NULL, FALSE);
> ^~~~~~~~~~~~~~~~~~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc: In function 'void vte_terminal_style_updated(GtkWidget*)':
> /<<PKGBUILDDIR>>/./src/vte.cc:4669:38: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
> if (aspect != terminal->pvt->cursor_aspect_ratio) {
> ^~~~~~~~~~~~~~~~~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc: In function 'void vte_terminal_screen_set_size(VteTerminal*, VteScreen*, glong, glong, gboolean)':
> /<<PKGBUILDDIR>>/./src/vte.cc:8084:17: warning: statement is indented as if it were guarded by... [-Wmisleading-indentation]
> if (terminal->pvt->has_selection) {
> ^~
>
> /<<PKGBUILDDIR>>/./src/vte.cc:8081:9: note: ...this 'if' clause, but it is not
> if (screen == terminal->pvt->screen)
> ^~
>
> In file included from /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h:9:0,
> from /usr/include/glib-2.0/glib/gtypes.h:32,
> from /usr/include/glib-2.0/glib/galloca.h:32,
> from /usr/include/glib-2.0/glib.h:30,
> from /<<PKGBUILDDIR>>/./src/vte/vte.h:22,
> from /<<PKGBUILDDIR>>/./src/vte.cc:32:
> /<<PKGBUILDDIR>>/./src/vte.cc: In function 'void vte_terminal_get_geometry_hints(VteTerminal*, GdkGeometry*, int, int)':
> /<<PKGBUILDDIR>>/./src/vte.cc:13548:32: error: nonnull argument 'hints' compared to NULL [-Werror=nonnull]
> g_return_if_fail(hints != NULL);
> ~~~~~~^~~~
>
> /usr/include/glib-2.0/glib/gmacros.h:320:8: note: in definition of macro '_G_BOOLEAN_EXPR'
> if (expr) \
> ^~~~
>
> /usr/include/glib-2.0/glib/gmessages.h:368:9: note: in expansion of macro 'G_LIKELY'
> if G_LIKELY(expr) { } else \
> ^~~~~~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc:13548:9: note: in expansion of macro 'g_return_if_fail'
> g_return_if_fail(hints != NULL);
> ^~~~~~~~~~~~~~~~
>
> /<<PKGBUILDDIR>>/./src/vte.cc: In function 'char* vte_terminal_get_text_range_maybe_wrapped(VteTerminal*, glong, glong, glong, glong, gboolean, VteSelectionFunc, gpointer, GArray*, gboolean)':
> /<<PKGBUILDDIR>>/./src/vte.cc:6161:28: warning: cannot optimize possibly infinite loops [-Wunsafe-loop-optimizations]
> for (row = start_row; row < end_row + 1; row++, col = 0) {
> ~~~~^~~~~~~~~~~~~
>
> cc1plus: some warnings being treated as errors
> Makefile:1660: recipe for target 'libvte_2_91_la-vte.lo' failed
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
More information about the pkg-gnome-maintainers
mailing list