40.1: is not gcc 14.x ready
Looks like last version build fails with latest gcc 14.x which is now used in fedora rawhide.
Build fails with
[tkloczko@pers-jacek x86_64-redhat-linux-gnu]$ ninja -k 0
[1/3] Compiling C object src/gnome-mines.p/meson-generated_theme-selector-dialog.c.o
FAILED: src/gnome-mines.p/meson-generated_theme-selector-dialog.c.o
/usr/bin/gcc -Isrc/gnome-mines.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gee-0.8 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/librsvg-2.0 -I/usr/include/gnome-games-support-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os '-DVERSION="40.1"' '-DGETTEXT_PACKAGE="gnome-mines"' '-DLOCALEDIR="/usr/share/locale"' '-DDATA_DIRECTORY="/usr/share/gnome-mines"' -MD -MQ src/gnome-mines.p/meson-generated_theme-selector-dialog.c.o -MF src/gnome-mines.p/meson-generated_theme-selector-dialog.c.o.d -o src/gnome-mines.p/meson-generated_theme-selector-dialog.c.o -c src/gnome-mines.p/theme-selector-dialog.c
../src/theme-selector-dialog.vala: In function ‘theme_selector_dialog_construct’:
../src/theme-selector-dialog.vala:117:9: error: assignment to ‘GtkHeaderBar *’ {aka ‘struct _GtkHeaderBar *’} from incompatible pointer type ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} [-Wincompatible-pointer-types]
117 | var headerbar = get_header_bar () as Gtk.HeaderBar;
| ^
../src/theme-selector-dialog.vala:119:10: error: assignment to ‘GtkBox *’ {aka ‘struct _GtkBox *’} from incompatible pointer type ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} [-Wincompatible-pointer-types]
119 | get_content_area ().pack_start (create_preview_widget (out minefield), true, true, 0);
| ^
[2/3] Compiling C object src/gnome-mines.p/meson-generated_gnome-mines.c.o
FAILED: src/gnome-mines.p/meson-generated_gnome-mines.c.o
/usr/bin/gcc -Isrc/gnome-mines.p -Isrc -I../src -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gee-0.8 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/librsvg-2.0 -I/usr/include/gnome-games-support-1 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -g -grecord-gcc-switches -pipe -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdata-sections -ffunction-sections -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -flto=auto -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -Wall -Werror=format-security -Os '-DVERSION="40.1"' '-DGETTEXT_PACKAGE="gnome-mines"' '-DLOCALEDIR="/usr/share/locale"' '-DDATA_DIRECTORY="/usr/share/gnome-mines"' -MD -MQ src/gnome-mines.p/meson-generated_gnome-mines.c.o -MF src/gnome-mines.p/meson-generated_gnome-mines.c.o.d -o src/gnome-mines.p/meson-generated_gnome-mines.c.o -c src/gnome-mines.p/gnome-mines.c
../src/gnome-mines.vala: In function ‘mines_set_game_theme’:
../src/gnome-mines.vala:143:44: error: passing argument 2 of ‘gtk_icon_theme_set_search_path’ from incompatible pointer type [-Wincompatible-pointer-types]
143 | IconTheme.get_default ().set_search_path (icon_search_path);
| ^~~~~~~
| |
| gchar ** {aka char **}
In file included from /usr/include/gtk-3.0/gtk/gtk.h:127,
from src/gnome-mines.p/gnome-mines.c:14:
/usr/include/gtk-3.0/gtk/gtkicontheme.h:178:82: note: expected ‘const gchar **’ {aka ‘const char **’} but argument is of type ‘gchar **’ {aka ‘char **’}
178 | const gchar *path[],
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-mines.vala: In function ‘mines_real_startup’:
../src/gnome-mines.vala:249:81: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
249 | set_accels_for_action ("app.new-game", {"<Primary>n"});
| ^
| |
| gchar ** {aka char **}
In file included from /usr/include/gtk-3.0/gtk/gtkwindow.h:33,
from /usr/include/gtk-3.0/gtk/gtkdialog.h:32,
from /usr/include/gtk-3.0/gtk/gtkaboutdialog.h:30,
from /usr/include/gtk-3.0/gtk/gtk.h:31:
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-mines.vala:250:88: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
250 | set_accels_for_action ("app.silent-new-game", {"Escape"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-mines.vala:251:84: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
251 | set_accels_for_action ("app.repeat-size", {"<Primary>r"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-mines.vala:252:83: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
252 | set_accels_for_action ("app.small-size", {"1", "KP_1"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-mines.vala:253:84: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
253 | set_accels_for_action ("app.medium-size", {"2", "KP_2"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-mines.vala:254:83: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
254 | set_accels_for_action ("app.large-size", {"3", "KP_3"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-mines.vala:255:84: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
255 | set_accels_for_action ("app.custom-size", {"4", "KP_4"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-mines.vala:256:78: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
256 | set_accels_for_action ("app.pause", {"Pause"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-mines.vala:257:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
257 | set_accels_for_action ("app.help", {"F1"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-mines.vala:258:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
258 | set_accels_for_action ("app.quit", {"<Primary>q", "<Primary>w"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-mines.vala:259:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
259 | set_accels_for_action ("app.menu", {"F10"});
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-3.0/gtk/gtkapplication.h:156:89: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’}
156 | const gchar * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~
ninja: build stopped: cannot make progress due to previous errors.