Build from git repo. I get the following error:
[1672/8137] Compiling C object subprojects/pygobject-3.42.2/tests/libgimarshallingtests.so.p/gimarshallingtestsextra.c.o
FAILED: subprojects/pygobject-3.42.2/tests/libgimarshallingtests.so.p/gimarshallingtestsextra.c.o
ccache cc -Isubprojects/pygobject-3.42.2/tests/libgimarshallingtests.so.p -Isubprojects/pygobject-3.42.2/tests -I../subprojects/pygobject-3.42.2/tests -I/usr/share/gobject-introspection-1.0/tests -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -I/usr/include/libmount -I/usr/include/blkid -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O2 -g -fPIC -pthread '-D_GI_EXTERN=__attribute__((visibility("default"))) extern' -fvisibility=hidden -MD -MQ subprojects/pygobject-3.42.2/tests/libgimarshallingtests.so.p/gimarshallingtestsextra.c.o -MF subprojects/pygobject-3.42.2/tests/libgimarshallingtests.so.p/gimarshallingtestsextra.c.o.d -o subprojects/pygobject-3.42.2/tests/libgimarshallingtests.so.p/gimarshallingtestsextra.c.o -c ../subprojects/pygobject-3.42.2/tests/gimarshallingtestsextra.c
In file included from ../subprojects/pygobject-3.42.2/tests/gimarshallingtestsextra.c:19:
../subprojects/pygobject-3.42.2/tests/gimarshallingtestsextra.h:40:1: error: unknown type name ‘_GI_TEST_EXTERN’; did you mean ‘GI_TEST_EXTERN’?
40 | _GI_TEST_EXTERN
| ^~~~~~~~~~~~~~~
| GI_TEST_EXTERN