Gtk 32 bit fails on RHEL8.2, (guint64)

While building with option -m32 the app fails.

Build output:

In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9,
                 from /usr/include/glib-2.0/glib/gtypes.h:32,
                 from /usr/include/glib-2.0/glib/galloca.h:32,
                 from /usr/include/glib-2.0/glib.h:30,
                 from /usr/include/gtk-3.0/gdk/gdkconfig.h:13,
                 from /usr/include/gtk-3.0/gdk/gdk.h:30,
                 from /usr/include/gtk-3.0/gtk/gtk.h:30,
                 from ../../../ file
/usr/include/glib-2.0/glib/gtypes.h: In function βgboolean _GLIB_CHECKED_ADD_U64(guint64*, guint64, guint64)β:
/usr/include/glib-2.0/glib/gmacros.h:145:29: error: size of array β_GStaticAssertCompileTimeAssertion_0β is negative
/usr/include/glib-2.0/glib/gmacros.h:241:120: note: in expansion of macro βG_GNUC_UNUSEDβ
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED
/usr/include/glib-2.0/glib/gtypes.h:423:3: note: in expansion of macro βG_STATIC_ASSERTβ
   G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64));

The long long is not defined on the glibconfig. h

Please file a bug against GLib, but this looks like an issue in your toolchain.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.