Re: Gtk::Builder::get_widget_derived() Issue on Fedora 33

2020-11-17 Thread Andrew Potter via gtkmm-list
I believe this is caused by https://fedoraproject.org/wiki/LTOByDefault I built the srpm and noticed that the get_type() calls were present in wrap_init.o but was missing from the .so I added %define _lto_cflags %{nil} to the gtkmm .spec file and rebuilt--this disables LTO; the get_type() were

Re: Gtk::Builder::get_widget_derived() Issue on Fedora 33

2020-11-17 Thread Andrew Potter via gtkmm-list
On Tue, Nov 17, 2020 at 6:51 AM Kjell Ahlstedt wrote: > wrap_init.cc contains the following lines: > #undef G_GNUC_CONST > #define G_GNUC_CONST /* empty */ > Oh, right. I see this in Fedora's rpm debug source. I also see the calls to Gtk::TextView::get_type in the debug source. However, when I

Re: Gtk::Builder::get_widget_derived() Issue on Fedora 33

2020-11-17 Thread Kjell Ahlstedt via gtkmm-list
wrap_init.cc contains the following lines: // Disable the 'const' function attribute of the get_type() functions. // GCC would optimize them out because we don't use the return value. #undef  G_GNUC_CONST #define G_GNUC_CONST /* empty */ This has so far made sure that the compiler does not

Re: Gtk::Builder::get_widget_derived() Issue on Fedora 33

2020-11-17 Thread Andrew Potter via gtkmm-list
On Tue, Nov 17, 2020 at 12:01 AM ahmet öztürk wrote: > Is this a Gtkmm issue then? Fedora guys also think that it is an upstream > issue. See:https://bugzilla.redhat.com/show_bug.cgi?id=1898054 > But why does it only occur on Fedora 33? > Likely its due to a new optimization in gcc 10 which few

Re: Gtk::Builder::get_widget_derived() Issue on Fedora 33

2020-11-17 Thread ahmet öztürk via gtkmm-list
Is this a Gtkmm issue then? Fedora guys also think that it is an upstream issue. See:https://bugzilla.redhat.com/show_bug.cgi?id=1898054 But why does it only occur on Fedora 33? @Andrew, I do not know how I am supposed to use g_type_ensure(TVDerived::get_type()). I am not familiar with Gtk+ or