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
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
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
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
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