I had the same error compiling the ancient glib and pango for a 64-bit platform.
Here's what the g_atomic_pointer_getsource looks like in this version:
# define g_atomic_pointer_get(atomic) \
((void) sizeof (gchar [sizeof (*(atomic)) == sizeof (gpointer) ? 1 : -1]), \
(g_atomic_pointer_get) ((volatile gpointer G_GNUC_MAY_ALIAS *) (volatile void *) (atomic)))
So, here atomicthere is gsize, which should have the same sizeofas gpointer, i.e. void*.
This helped me override gsizeand gssizeas an 8-byte in the 64 bit architecture in glibconfig.h.
Also update GLIB_SIZEOF_VOID_P, GLIB_SIZEOF_LONGand GLIB_SIZEOF_SIZE_T.
source
share