GEGL build fails with "error: unknown type name ‘GOBJECT_AVAILABLE_IN_2_60’"
For some time now, my GEGL builds fail. I couldn't find anything about this error message online.
$ ninja
[13/1025] Generating gegl/Gegl-0.4.gir with a custom command (wrapped by meson to set env)
FAILED: gegl/Gegl-0.4.gir
env PKG_CONFIG_PATH=/home/schumaml/Development/opt/gimp/share/pkgconfig:/home/schumaml/Development/opt/gimp/lib/pkgconfig:/home/schumaml/Development/opt/gimp/lib/x86_64-linux-gnu/pkgconfig:/home/schumaml/Development/build/gegl/meson-uninstalled CC=cc /usr/bin/g-ir-scanner --quiet --no-libtool --namespace=Gegl --nsversion=0.4 --warn-all --output gegl/Gegl-0.4.gir --c-include=gegl.h -I/home/schumaml/Development/source/gegl/gegl -I/home/schumaml/Development/build/gegl/gegl -I/home/schumaml/Development/source/gegl/. -I/home/schumaml/Development/build/gegl/. -I/home/schumaml/Development/source/gegl/gegl/. -I/home/schumaml/Development/build/gegl/gegl/. -I/home/schumaml/Development/source/gegl/gegl/buffer -I/home/schumaml/Development/build/gegl/gegl/buffer -I/home/schumaml/Development/source/gegl/gegl/graph -I/home/schumaml/Development/build/gegl/gegl/graph -I/home/schumaml/Development/source/gegl/gegl/module -I/home/schumaml/Development/build/gegl/gegl/module -I/home/schumaml/Development/source/gegl/gegl/opencl -I/home/schumaml/Development/build/gegl/gegl/opencl -I/home/schumaml/Development/source/gegl/gegl/operation -I/home/schumaml/Development/build/gegl/gegl/operation -I/home/schumaml/Development/source/gegl/gegl/process -I/home/schumaml/Development/build/gegl/gegl/process -I/home/schumaml/Development/source/gegl/gegl/property-types -I/home/schumaml/Development/build/gegl/gegl/property-types --filelist=/home/schumaml/Development/build/gegl/gegl/libgegl-0.4.so.0.446.1.p/Gegl_0.4_gir_filelist --include=GLib-2.0 --include=GObject-2.0 --include=Babl-0.1 --symbol-prefix=gegl --identifier-prefix=Gegl --pkg-export=gegl-0.4 --cflags-begin -DHAVE_CONFIG_H -DGEGL_ENABLE_DEBUG -I/home/schumaml/Development/source/gegl/. -I/home/schumaml/Development/build/gegl/. -I/home/schumaml/Development/source/gegl/gegl/. -I/home/schumaml/Development/build/gegl/gegl/. -I/home/schumaml/Development/source/gegl/gegl/buffer -I/home/schumaml/Development/build/gegl/gegl/buffer -I/home/schumaml/Development/source/gegl/gegl/graph -I/home/schumaml/Development/build/gegl/gegl/graph -I/home/schumaml/Development/source/gegl/gegl/module -I/home/schumaml/Development/build/gegl/gegl/module -I/home/schumaml/Development/source/gegl/gegl/opencl -I/home/schumaml/Development/build/gegl/gegl/opencl -I/home/schumaml/Development/source/gegl/gegl/operation -I/home/schumaml/Development/build/gegl/gegl/operation -I/home/schumaml/Development/source/gegl/gegl/process -I/home/schumaml/Development/build/gegl/gegl/process -I/home/schumaml/Development/source/gegl/gegl/property-types -I/home/schumaml/Development/build/gegl/gegl/property-types -I/home/schumaml/Development/opt/gimp/include/babl-0.1 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/gobject-introspection-1.0 --cflags-end --add-include-path=/home/schumaml/Development/opt/gimp/share/gir-1.0 --add-include-path=/usr/share/gir-1.0 -L/home/schumaml/Development/build/gegl/gegl --library gegl-0.4 -L/home/schumaml/Development/opt/gimp/lib/x86_64-linux-gnu -L/home/schumaml/Development/opt/gimp/lib/x86_64-linux-gnu --extra-library=babl-0.1 --extra-library=glib-2.0 --extra-library=gio-2.0 --extra-library=gobject-2.0 --extra-library=m --extra-library=gmodule-2.0 --extra-library=girepository-1.0 --sources-top-dirs /home/schumaml/Development/source/gegl/ --sources-top-dirs /home/schumaml/Development/build/gegl/
In file included from /home/schumaml/Development/source/gegl/subprojects/glib-2.70.4/glib/glib-object.h:25,
from /home/schumaml/Development/build/gegl/tmp-introspect0m9jc2a3/Gegl-0.4.c:34:
/usr/include/glib-2.0/gobject/glib-enumtypes.h:12:1: error: unknown type name ‘GOBJECT_AVAILABLE_IN_2_60’; did you mean ‘GLIB_AVAILABLE_IN_2_60’?
12 | GOBJECT_AVAILABLE_IN_2_60 GType g_unicode_type_get_type (void) G_GNUC_CONST;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| GLIB_AVAILABLE_IN_2_60
/usr/include/glib-2.0/gobject/glib-enumtypes.h:12:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_unicode_type_get_type’
12 | GOBJECT_AVAILABLE_IN_2_60 GType g_unicode_type_get_type (void) G_GNUC_CONST;
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/glib-enumtypes.h:14:1: error: unknown type name ‘GOBJECT_AVAILABLE_IN_2_60’; did you mean ‘GLIB_AVAILABLE_IN_2_60’?
14 | GOBJECT_AVAILABLE_IN_2_60 GType g_unicode_break_type_get_type (void) G_GNUC_CONST;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| GLIB_AVAILABLE_IN_2_60
/usr/include/glib-2.0/gobject/glib-enumtypes.h:14:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_unicode_break_type_get_type’
14 | GOBJECT_AVAILABLE_IN_2_60 GType g_unicode_break_type_get_type (void) G_GNUC_CONST;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/glib-enumtypes.h:16:1: error: unknown type name ‘GOBJECT_AVAILABLE_IN_2_60’; did you mean ‘GLIB_AVAILABLE_IN_2_60’?
16 | GOBJECT_AVAILABLE_IN_2_60 GType g_unicode_script_get_type (void) G_GNUC_CONST;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| GLIB_AVAILABLE_IN_2_60
/usr/include/glib-2.0/gobject/glib-enumtypes.h:16:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_unicode_script_get_type’
16 | GOBJECT_AVAILABLE_IN_2_60 GType g_unicode_script_get_type (void) G_GNUC_CONST;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/glib-2.0/gobject/glib-enumtypes.h:18:1: error: unknown type name ‘GOBJECT_AVAILABLE_IN_2_60’; did you mean ‘GLIB_AVAILABLE_IN_2_60’?
18 | GOBJECT_AVAILABLE_IN_2_60 GType g_normalize_mode_get_type (void) G_GNUC_CONST;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
| GLIB_AVAILABLE_IN_2_60
/usr/include/glib-2.0/gobject/glib-enumtypes.h:18:33: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘g_normalize_mode_get_type’
18 | GOBJECT_AVAILABLE_IN_2_60 GType g_normalize_mode_get_type (void) G_GNUC_CONST;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/setuptools/_distutils/unixccompiler.py", line 185, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/ccompiler.py", line 1041, in spawn
spawn(cmd, dry_run=self.dry_run, **kwargs)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/spawn.py", line 70, in spawn
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command '/usr/bin/cc' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/g-ir-scanner", line 104, in <module>
sys.exit(scanner_main(sys.argv))
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/x86_64-linux-gnu/gobject-introspection/giscanner/scannermain.py", line 609, in scanner_main
shlibs = create_binary(transformer, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/x86_64-linux-gnu/gobject-introspection/giscanner/scannermain.py", line 430, in create_binary
binary = compile_introspection_binary(options,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/x86_64-linux-gnu/gobject-introspection/giscanner/dumper.py", line 294, in compile_introspection_binary
return dc.run()
^^^^^^^^
File "/usr/lib/x86_64-linux-gnu/gobject-introspection/giscanner/dumper.py", line 163, in run
introspection_obj = self._compile(c_path)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/x86_64-linux-gnu/gobject-introspection/giscanner/dumper.py", line 189, in _compile
return self._compiler.compile(cflags,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/x86_64-linux-gnu/gobject-introspection/giscanner/ccompiler.py", line 348, in compile
return self.compiler.compile(sources=source,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/setuptools/_distutils/ccompiler.py", line 600, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/unixccompiler.py", line 187, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/cc' failed with exit code 1
[22/1025] Compiling C object operations/common-gpl3+/gegl-common-gpl3.so.p/mosaic.c.o
ninja: build stopped: subcommand failed.