subcommand failed building kgx
I've never used meson before so I'll be embarrassed if this is caused by something I should already know.
kirito@bkk~/Projects/kgx/build $ meson compile Found runner: /usr/bin/ninja ninja: Entering directory `.' [32/136] Compiling C object subproject...libhandy-1.so.0.p/hdy-carousel-box.c.o FAILED: subprojects/handy/src/libhandy-1.so.0.p/hdy-carousel-box.c.o gcc -Isubprojects/handy/src/libhandy-1.so.0.p -Isubprojects/handy/src -I../subprojects/handy/src -Isubprojects/handy -I../subprojects/handy -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/lib64/libffi-3.2.1/include -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/lib64/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/home/kirito/Projects/kgx/build -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=gnu11 -O2 -g -DHAVE_CONFIG_H -DHANDY_COMPILATION -Wcast-align -Wdate-time -Wdeclaration-after-statement -Werror=format-security -Werror=format=2 -Wendif-labels -Werror=incompatible-pointer-types -Werror=missing-declarations -Werror=overflow -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=implicit-fallthrough=3 -Wformat-nonliteral -Wformat-security -Winit-self -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wno-missing-field-initializers -Wno-sign-compare -Wno-strict-aliasing -Wno-unused-parameter -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wtype-limits -Wundef -Wunused-function -fstack-protector-strong -g -O3 -feliminate-unused-debug-types -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -Wa,-mbranches-within-32B-boundaries -fPIC -pthread '-DG_LOG_DOMAIN="Handy"' -MD -MQ subprojects/handy/src/libhandy-1.so.0.p/hdy-carousel-box.c.o -MF subprojects/handy/src/libhandy-1.so.0.p/hdy-carousel-box.c.o.d -o subprojects/handy/src/libhandy-1.so.0.p/hdy-carousel-box.c.o -c ../subprojects/handy/src/hdy-carousel-box.c ../subprojects/handy/src/hdy-carousel-box.c: In function ‘set_position’: ../subprojects/handy/src/hdy-carousel-box.c:396:18: error: ‘upper’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 396 | self->position = position; | ~~~~~~~~~~~~~~~^~~~~~~~~~ ../subprojects/handy/src/hdy-carousel-box.c: In function ‘hdy_carousel_box_get_page_at_position’: ../subprojects/handy/src/hdy-carousel-box.c:203:32: error: ‘upper’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 203 | ABS (child->snap_point - position)) | ^ ../subprojects/handy/src/hdy-carousel-box.c:1783:18: note: ‘upper’ was declared here 1783 | gdouble lower, upper; | ^~~~~ cc1: all warnings being treated as errors [40/136] Compiling C object subproject...ndy-1.so.0.p/hdy-preferences-group.c.o FAILED: subprojects/handy/src/libhandy-1.so.0.p/hdy-preferences-group.c.o gcc -Isubprojects/handy/src/libhandy-1.so.0.p -Isubprojects/handy/src -I../subprojects/handy/src -Isubprojects/handy -I../subprojects/handy -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/lib64/libffi-3.2.1/include -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/lib64/dbus-1.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/pixman-1 -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/home/kirito/Projects/kgx/build -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Werror -std=gnu11 -O2 -g -DHAVE_CONFIG_H -DHANDY_COMPILATION -Wcast-align -Wdate-time -Wdeclaration-after-statement -Werror=format-security -Werror=format=2 -Wendif-labels -Werror=incompatible-pointer-types -Werror=missing-declarations -Werror=overflow -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=implicit-fallthrough=3 -Wformat-nonliteral -Wformat-security -Winit-self -Wmaybe-uninitialized -Wmissing-field-initializers -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wno-missing-field-initializers -Wno-sign-compare -Wno-strict-aliasing -Wno-unused-parameter -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wtype-limits -Wundef -Wunused-function -fstack-protector-strong -g -O3 -feliminate-unused-debug-types -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -Wa,-mbranches-within-32B-boundaries -fPIC -pthread '-DG_LOG_DOMAIN="Handy"' -MD -MQ subprojects/handy/src/libhandy-1.so.0.p/hdy-preferences-group.c.o -MF subprojects/handy/src/libhandy-1.so.0.p/hdy-preferences-group.c.o.d -o subprojects/handy/src/libhandy-1.so.0.p/hdy-preferences-group.c.o -c ../subprojects/handy/src/hdy-preferences-group.c In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9, from /usr/include/glib-2.0/glibconfig.h:6, 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 /usr/include/glib-2.0/glib/gi18n-lib.h:21, from ../subprojects/handy/src/hdy-preferences-group.c:8: ../subprojects/handy/src/hdy-preferences-group.c: In function ‘hdy_preferences_group_dispose’: ../subprojects/handy/src/hdy-preferences-group.c:185:20: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] 185 | g_clear_pointer ((GtkWidget **) &priv->description, gtk_widget_destroy); ../subprojects/handy/src/hdy-preferences-group.c:185:3: note: in expansion of macro ‘g_clear_pointer’ 185 | g_clear_pointer ((GtkWidget **) &priv->description, gtk_widget_destroy); | ^~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/glist.h:32, from /usr/include/glib-2.0/glib/ghash.h:33, from /usr/include/glib-2.0/glib.h:50, from /usr/include/glib-2.0/glib/gi18n-lib.h:21, from ../subprojects/handy/src/hdy-preferences-group.c:8: ../subprojects/handy/src/hdy-preferences-group.c:185:20: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] 185 | g_clear_pointer ((GtkWidget **) &priv->description, gtk_widget_destroy); /usr/include/glib-2.0/glib/gmem.h:118:18: note: in definition of macro ‘g_clear_pointer’ 118 | __typeof__(*(pp)) _ptr = *_pp; \ | ^~ In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9, from /usr/include/glib-2.0/glibconfig.h:6, 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 /usr/include/glib-2.0/glib/gi18n-lib.h:21, from ../subprojects/handy/src/hdy-preferences-group.c:8: ../subprojects/handy/src/hdy-preferences-group.c:186:20: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] 186 | g_clear_pointer ((GtkWidget **) &priv->listbox, gtk_widget_destroy); ../subprojects/handy/src/hdy-preferences-group.c:186:3: note: in expansion of macro ‘g_clear_pointer’ 186 | g_clear_pointer ((GtkWidget **) &priv->listbox, gtk_widget_destroy); | ^~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/glist.h:32, from /usr/include/glib-2.0/glib/ghash.h:33, from /usr/include/glib-2.0/glib.h:50, from /usr/include/glib-2.0/glib/gi18n-lib.h:21, from ../subprojects/handy/src/hdy-preferences-group.c:8: ../subprojects/handy/src/hdy-preferences-group.c:186:20: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] 186 | g_clear_pointer ((GtkWidget **) &priv->listbox, gtk_widget_destroy); /usr/include/glib-2.0/glib/gmem.h:118:18: note: in definition of macro ‘g_clear_pointer’ 118 | __typeof__(*(pp)) _ptr = *_pp; \ | ^~ In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9, from /usr/include/glib-2.0/glibconfig.h:6, 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 /usr/include/glib-2.0/glib/gi18n-lib.h:21, from ../subprojects/handy/src/hdy-preferences-group.c:8: ../subprojects/handy/src/hdy-preferences-group.c:187:20: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] 187 | g_clear_pointer ((GtkWidget **) &priv->listbox_box, gtk_widget_destroy); ../subprojects/handy/src/hdy-preferences-group.c:187:3: note: in expansion of macro ‘g_clear_pointer’ 187 | g_clear_pointer ((GtkWidget **) &priv->listbox_box, gtk_widget_destroy); | ^~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/glist.h:32, from /usr/include/glib-2.0/glib/ghash.h:33, from /usr/include/glib-2.0/glib.h:50, from /usr/include/glib-2.0/glib/gi18n-lib.h:21, from ../subprojects/handy/src/hdy-preferences-group.c:8: ../subprojects/handy/src/hdy-preferences-group.c:187:20: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] 187 | g_clear_pointer ((GtkWidget **) &priv->listbox_box, gtk_widget_destroy); /usr/include/glib-2.0/glib/gmem.h:118:18: note: in definition of macro ‘g_clear_pointer’ 118 | __typeof__(*(pp)) _ptr = *_pp; \ | ^~ In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9, from /usr/include/glib-2.0/glibconfig.h:6, 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 /usr/include/glib-2.0/glib/gi18n-lib.h:21, from ../subprojects/handy/src/hdy-preferences-group.c:8: ../subprojects/handy/src/hdy-preferences-group.c:188:20: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] 188 | g_clear_pointer ((GtkWidget **) &priv->title, gtk_widget_destroy); ../subprojects/handy/src/hdy-preferences-group.c:188:3: note: in expansion of macro ‘g_clear_pointer’ 188 | g_clear_pointer ((GtkWidget **) &priv->title, gtk_widget_destroy); | ^~~~~~~~~~~~~~~ In file included from /usr/include/glib-2.0/glib/glist.h:32, from /usr/include/glib-2.0/glib/ghash.h:33, from /usr/include/glib-2.0/glib.h:50, from /usr/include/glib-2.0/glib/gi18n-lib.h:21, from ../subprojects/handy/src/hdy-preferences-group.c:8: ../subprojects/handy/src/hdy-preferences-group.c:188:20: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] 188 | g_clear_pointer ((GtkWidget **) &priv->title, gtk_widget_destroy); /usr/include/glib-2.0/glib/gmem.h:118:18: note: in definition of macro ‘g_clear_pointer’ 118 | __typeof__(*(pp)) _ptr = *_pp; \ | ^~ cc1: all warnings being treated as errors [45/136] Compiling C object subproject...c/libhandy-1.so.0.p/hdy-header-bar.c.o ninja: build stopped: subcommand failed.