Open kloczek opened 9 months ago
Looks like last version build fails with latest gcc 14.x which is now used in fedora rawhide.
build with gcc 14.x from rawhide
Build should not fail.
7.x (Horus)
Latest release (I have run all updates)
No response
What Happened?
Looks like last version build fails with latest gcc 14.x which is now used in fedora rawhide.
Build fails with
```console [tkloczko@pers-jacek x86_64-redhat-linux-gnu]$ ninja -k 0 [1/4] Compiling C object src/io.elementary.calculator.p/meson-generated_HistoryDialog.c.o FAILED: src/io.elementary.calculator.p/meson-generated_HistoryDialog.c.o /usr/bin/gcc -Isrc/io.elementary.calculator.p -Isrc -I../src -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/granite-7 -I/usr/include/gee-0.8 -I/usr/include/gio-unix-2.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w '-DGETTEXT_PACKAGE="io.elementary.calculator"' -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 -MD -MQ src/io.elementary.calculator.p/meson-generated_HistoryDialog.c.o -MF src/io.elementary.calculator.p/meson-generated_HistoryDialog.c.o.d -o src/io.elementary.calculator.p/meson-generated_HistoryDialog.c.o -c src/io.elementary.calculator.p/HistoryDialog.c ../src/HistoryDialog.vala: In function ‘pantheon_calculator_history_dialog_constructor’: ../src/HistoryDialog.vala:110:10: error: assignment to ‘GtkBox *’ {aka ‘struct _GtkBox *’} from incompatible pointer type ‘GtkWidget *’ {aka ‘struct _GtkWidget *’} [-Wincompatible-pointer-types] 110 | get_content_area ().append (main_grid); | ^ [2/4] Compiling C object src/io.elementary.calculator.p/meson-generated_Application.c.o FAILED: src/io.elementary.calculator.p/meson-generated_Application.c.o /usr/bin/gcc -Isrc/io.elementary.calculator.p -Isrc -I../src -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/granite-7 -I/usr/include/gee-0.8 -I/usr/include/gio-unix-2.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -w '-DGETTEXT_PACKAGE="io.elementary.calculator"' -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 -MD -MQ src/io.elementary.calculator.p/meson-generated_Application.c.o -MF src/io.elementary.calculator.p/meson-generated_Application.c.o.d -o src/io.elementary.calculator.p/meson-generated_Application.c.o -c src/io.elementary.calculator.p/Application.c ../src/Application.vala: In function ‘pantheon_calculator_application_real_startup’: ../src/Application.vala:54:77: error: passing argument 3 of ‘gtk_application_set_accels_for_action’ from incompatible pointer type [-Wincompatible-pointer-types] 54 | set_accels_for_action ("app.quit", {"Steps to Reproduce
build with gcc 14.x from rawhide
Expected Behavior
Build should not fail.
OS Version
7.x (Horus)
Software Version
Latest release (I have run all updates)
Log Output
No response
Hardware Info
No response