43.2: 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/7] Compiling C object lib/liblibchess.a.p/meson-generated_chess-pgn.c.o
FAILED: lib/liblibchess.a.p/meson-generated_chess-pgn.c.o
/usr/bin/gcc -Ilib/liblibchess.a.p -Ilib -I../lib -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gio-unix-2.0 -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 -fPIC -include config.h -MD -MQ lib/liblibchess.a.p/meson-generated_chess-pgn.c.o -MF lib/liblibchess.a.p/meson-generated_chess-pgn.c.o.d -o lib/liblibchess.a.p/meson-generated_chess-pgn.c.o -c lib/liblibchess.a.p/chess-pgn.c
../lib/chess-pgn.vala: In function ‘pgn_construct_from_file’:
../lib/chess-pgn.vala:533:36: error: passing argument 3 of ‘g_file_load_contents’ from incompatible pointer type [-Wincompatible-pointer-types]
533 | file.load_contents (null, out contents, null);
| ^~~~~~~
| |
| guint8 ** {aka unsigned char **}
In file included from /usr/include/glib-2.0/gio/gio.h:81,
from lib/libchess.h:10,
from lib/liblibchess.a.p/chess-pgn.c:20:
/usr/include/glib-2.0/gio/gfile.h:1264:71: note: expected ‘char **’ but argument is of type ‘guint8 **’ {aka ‘unsigned char **’}
1264 | char **contents,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
[2/7] Compiling C object src/gnome-chess.p/meson-generated_preferences.c.o
FAILED: src/gnome-chess.p/meson-generated_preferences.c.o
/usr/bin/gcc -Isrc/gnome-chess.p -Isrc -I../src -I. -I.. -Ilib -I../lib -Iengine -I../engine -Idata -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/libadwaita-1 -I/usr/include/librsvg-2.0 -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 -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -pthread -include config.h -MD -MQ src/gnome-chess.p/meson-generated_preferences.c.o -MF src/gnome-chess.p/meson-generated_preferences.c.o.d -o src/gnome-chess.p/meson-generated_preferences.c.o -c src/gnome-chess.p/preferences.c
../src/preferences.vala: In function ‘preferences_construct’:
../src/preferences.vala:52:177: error: passing argument 7 of ‘g_settings_bind_with_mapping’ from incompatible pointer type [-Wincompatible-pointer-types]
52 | settings.bind_with_mapping (
| ^
| |
| GVariant * (*)(GValue *, const GVariantType *, void *) {aka struct _GVariant * (*)(struct _GValue *, const struct _GVariantType *, void *)}
In file included from /usr/include/glib-2.0/gio/gio.h:137,
from src/gnome-chess.p/preferences.c:19:
/usr/include/glib-2.0/gio/gsettings.h:322:99: note: expected ‘GSettingsBindSetMapping’ {aka ‘struct _GVariant * (*)(const struct _GValue *, const struct _GVariantType *, void *)’} but argument is of type ‘GVariant * (*)(GValue *, const GVariantType *, void *)’ {aka ‘struct _GVariant * (*)(struct _GValue *, const struct _GVariantType *, void *)’}
322 | GSettingsBindSetMapping set_mapping,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../src/preferences.vala:71:165: error: passing argument 7 of ‘g_settings_bind_with_mapping’ from incompatible pointer type [-Wincompatible-pointer-types]
71 | settings.bind_with_mapping (
| ^
| |
| GVariant * (*)(GValue *, const GVariantType *, void *) {aka struct _GVariant * (*)(struct _GValue *, const struct _GVariantType *, void *)}
/usr/include/glib-2.0/gio/gsettings.h:322:99: note: expected ‘GSettingsBindSetMapping’ {aka ‘struct _GVariant * (*)(const struct _GValue *, const struct _GVariantType *, void *)’} but argument is of type ‘GVariant * (*)(GValue *, const GVariantType *, void *)’ {aka ‘struct _GVariant * (*)(struct _GValue *, const struct _GVariantType *, void *)’}
322 | GSettingsBindSetMapping set_mapping,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../src/preferences.vala:90:165: error: passing argument 7 of ‘g_settings_bind_with_mapping’ from incompatible pointer type [-Wincompatible-pointer-types]
90 | settings.bind_with_mapping (
| ^
| |
| GVariant * (*)(GValue *, const GVariantType *, void *) {aka struct _GVariant * (*)(struct _GValue *, const struct _GVariantType *, void *)}
/usr/include/glib-2.0/gio/gsettings.h:322:99: note: expected ‘GSettingsBindSetMapping’ {aka ‘struct _GVariant * (*)(const struct _GValue *, const struct _GVariantType *, void *)’} but argument is of type ‘GVariant * (*)(GValue *, const GVariantType *, void *)’ {aka ‘struct _GVariant * (*)(struct _GValue *, const struct _GVariantType *, void *)’}
322 | GSettingsBindSetMapping set_mapping,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../src/preferences.vala:109:158: error: passing argument 7 of ‘g_settings_bind_with_mapping’ from incompatible pointer type [-Wincompatible-pointer-types]
109 | settings.bind_with_mapping (
| ^
| |
| GVariant * (*)(GValue *, const GVariantType *, void *) {aka struct _GVariant * (*)(struct _GValue *, const struct _GVariantType *, void *)}
/usr/include/glib-2.0/gio/gsettings.h:322:99: note: expected ‘GSettingsBindSetMapping’ {aka ‘struct _GVariant * (*)(const struct _GValue *, const struct _GVariantType *, void *)’} but argument is of type ‘GVariant * (*)(GValue *, const GVariantType *, void *)’ {aka ‘struct _GVariant * (*)(struct _GValue *, const struct _GVariantType *, void *)’}
322 | GSettingsBindSetMapping set_mapping,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../src/preferences.vala:128:164: error: passing argument 7 of ‘g_settings_bind_with_mapping’ from incompatible pointer type [-Wincompatible-pointer-types]
128 | settings.bind_with_mapping (
| ^
| |
| GVariant * (*)(GValue *, const GVariantType *, void *) {aka struct _GVariant * (*)(struct _GValue *, const struct _GVariantType *, void *)}
/usr/include/glib-2.0/gio/gsettings.h:322:99: note: expected ‘GSettingsBindSetMapping’ {aka ‘struct _GVariant * (*)(const struct _GValue *, const struct _GVariantType *, void *)’} but argument is of type ‘GVariant * (*)(GValue *, const GVariantType *, void *)’ {aka ‘struct _GVariant * (*)(struct _GValue *, const struct _GVariantType *, void *)’}
322 | GSettingsBindSetMapping set_mapping,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../src/preferences.vala:147:160: error: passing argument 7 of ‘g_settings_bind_with_mapping’ from incompatible pointer type [-Wincompatible-pointer-types]
147 | settings.bind_with_mapping (
| ^
| |
| GVariant * (*)(GValue *, const GVariantType *, void *) {aka struct _GVariant * (*)(struct _GValue *, const struct _GVariantType *, void *)}
/usr/include/glib-2.0/gio/gsettings.h:322:99: note: expected ‘GSettingsBindSetMapping’ {aka ‘struct _GVariant * (*)(const struct _GValue *, const struct _GVariantType *, void *)’} but argument is of type ‘GVariant * (*)(GValue *, const GVariantType *, void *)’ {aka ‘struct _GVariant * (*)(struct _GValue *, const struct _GVariantType *, void *)’}
322 | GSettingsBindSetMapping set_mapping,
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
[3/7] Compiling C object src/gnome-chess.p/meson-generated_gnome-chess.c.o
FAILED: src/gnome-chess.p/meson-generated_gnome-chess.c.o
/usr/bin/gcc -Isrc/gnome-chess.p -Isrc -I../src -I. -I.. -Ilib -I../lib -Iengine -I../engine -Idata -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/libadwaita-1 -I/usr/include/librsvg-2.0 -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 -mfpmath=sse -msse -msse2 -mfpmath=sse -msse -msse2 -pthread -include config.h -MD -MQ src/gnome-chess.p/meson-generated_gnome-chess.c.o -MF src/gnome-chess.p/meson-generated_gnome-chess.c.o.d -o src/gnome-chess.p/meson-generated_gnome-chess.c.o -c src/gnome-chess.p/gnome-chess.c
../src/gnome-chess.vala: In function ‘chess_application_real_startup’:
../src/gnome-chess.vala:127:94: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
127 | set_accels_for_action ("app." + NEW_GAME_ACTION_NAME, { "<Control>n" });
| ^~~~~~
| |
| gchar ** {aka char **}
In file included from /usr/include/gtk-4.0/gtk/gtkwindow.h:32,
from /usr/include/gtk-4.0/gtk/gtkaboutdialog.h:29,
from /usr/include/gtk-4.0/gtk/gtk.h:33,
from /usr/include/libadwaita-1/adwaita.h:9,
from src/gnome-chess.p/gnome-chess.c:20:
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-chess.vala:128:95: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
128 | set_accels_for_action ("app." + OPEN_GAME_ACTION_NAME, { "<Control>o" });
| ^~~~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-chess.vala:129:95: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
129 | set_accels_for_action ("app." + SAVE_GAME_ACTION_NAME, { "<Control>s" });
| ^~~~~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-chess.vala:130:98: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
130 | set_accels_for_action ("app." + SAVE_GAME_AS_ACTION_NAME, { "<Shift><Control>s" });
| ^~~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-chess.vala:131:95: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
131 | set_accels_for_action ("app." + UNDO_MOVE_ACTION_NAME, { "<Control>z" });
| ^~~~~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-chess.vala:132:98: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
132 | set_accels_for_action ("app." + PAUSE_RESUME_ACTION_NAME, { "<Control>p",
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-chess.vala:134:102: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
134 | set_accels_for_action ("app." + HISTORY_GO_FIRST_ACTION_NAME, { "<Shift><Alt>Left" });
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-chess.vala:135:105: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
135 | set_accels_for_action ("app." + HISTORY_GO_PREVIOUS_ACTION_NAME, { "<Alt>Left" });
| ^
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-chess.vala:136:101: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
136 | set_accels_for_action ("app." + HISTORY_GO_NEXT_ACTION_NAME, { "<Alt>Right" });
| ^~
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-chess.vala:137:101: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
137 | set_accels_for_action ("app." + HISTORY_GO_LAST_ACTION_NAME, { "<Shift><Alt>Right" });
| ^~
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-chess.vala:138:90: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
138 | set_accels_for_action ("app." + HELP_ACTION_NAME, { "F1" });
| ^~~~~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
../src/gnome-chess.vala:139:90: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types]
139 | set_accels_for_action ("app." + QUIT_ACTION_NAME, { "<Control>q",
| ^~~~~~
| |
| gchar ** {aka char **}
/usr/include/gtk-4.0/gtk/gtkapplication.h:131:88: note: expected ‘const char * const*’ but argument is of type ‘gchar **’ {aka ‘char **’}
131 | const char * const *accels);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~
ninja: build stopped: cannot make progress due to previous errors.