Bugzilla – Bug 1225778
Package ibus does not build with gcc14 because of uses of incompatible pointer types
Last modified: 2024-07-11 15:45:12 UTC
Gcc 14 newly by default treats as errors a number of situations which before were only warnings. For more information see https://gcc.gnu.org/gcc-14/porting_to.html and meta bug #1220571. Because of this, package ibus fails to compile. This can be seen online at: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/ibus/standard/x86_64 It can be reproduced locally with command: osc build --clean --alternative-project home:rguenther:nextgcc Fedora seems to have decided to avoid the new errors, see https://gitlab.com/fweimer-rh/fedora-modernc/-/blob/main/pkg/i/ibus.md?ref_type=heads The issue seems to be related to vala, so we should probably consider using -fpermissive - at least for now - too. The error (that halts the build) is: [ 329s] emojierapp.c: In function ‘emoji_application_save_selected_string’: [ 329s] emojierapp.c:306:60: error: passing argument 3 of ‘g_settings_set_strv’ from incompatible pointer type [-Wincompatible-pointer-types] [ 329s] 306 | g_settings_set_strv (_tmp11_, "favorites", _tmp12_); [ 329s] | ^~~~~~~ [ 329s] | | [ 329s] | gchar ** {aka char **} [ 329s] In file included from /usr/include/glib-2.0/gio/gio.h:137, [ 329s] from /usr/include/gtk-3.0/gdk/gdkapplaunchcontext.h:28, [ 329s] from /usr/include/gtk-3.0/gdk/gdk.h:32, [ 329s] from /usr/include/gtk-3.0/gtk/gtk.h:30, [ 329s] from emojierapp.c:30: [ 329s] /usr/include/glib-2.0/gio/gsettings.h:191:94: note: expected ‘const gchar * const*’ {aka ‘const char * const*’} but argument is of type ‘gchar **’ {aka ‘char **’} [ 329s] 191 | const gchar *const *value); [ 329s] | ~~~~~~~~~~~~~~~~~~~~^~~~~
I'm updating ibus to 1.5.30 but I know there is no change for this problem. I'm not sure why the build success in my repository. https://build.opensuse.org/package/live_build_log/home:ftake:branches:M17N/ibus/openSUSE_Factory_Staging_Gcc7/x86_64
(In reply to Fuminobu Takeyama from comment #1) > I'm updating ibus to 1.5.30 but I know there is no change for this problem. > I'm not sure why the build success in my repository. > > https://build.opensuse.org/package/live_build_log/home:ftake:branches:M17N/ > ibus/openSUSE_Factory_Staging_Gcc7/x86_64 I can confirm I was able to build the package ibus from home:ftake:branches with GCC 14. Thanks for working on this! I understand that https://build.opensuse.org/request/show/1186173 is where this is on its way to Factory, I'll keep an eye on it.
I can confirm this has now been fixed even in Factory. Thanks a lot!