GNOME Bugzilla – Bug 781880
In function ‘escaped_printf’: <command-line>:0:14: error: ‘GEGL’ undeclared
Last modified: 2017-04-28 18:26:30 UTC
Hi, when preparing the GNOME 3.25.1 release (yes, the directory in this build log is wrong) I noticed that gegl does not build. I think this is the first time I've had a problem with building gegl before. Something is going wrong inside gi-scanner: GISCAN Gegl-0.3.gir /home/mcatanzaro/.cache/jhbuild/build/gegl-0.3.14/gegl/tmp-introspectme6ivh1j/Gegl-0.3.c: In function ‘escaped_printf’: <command-line>:0:14: error: ‘GEGL’ undeclared (first use in this function) /home/mcatanzaro/releases/gnome-apps-3.25.91/install/include/glib-2.0/glib/gmessages.h:331:32: note: in expansion of macro ‘G_LOG_DOMAIN’ #define g_critical(...) g_log (G_LOG_DOMAIN, \ ^~~~~~~~~~~~ /home/mcatanzaro/.cache/jhbuild/build/gegl-0.3.14/gegl/tmp-introspectme6ivh1j/Gegl-0.3.c:61:7: note: in expansion of macro ‘g_critical’ g_critical ("failed to write to iochannel: %s", error->message); ^~~~~~~~~~ <command-line>:0:14: note: each undeclared identifier is reported only once for each function it appears in /home/mcatanzaro/releases/gnome-apps-3.25.91/install/include/glib-2.0/glib/gmessages.h:331:32: note: in expansion of macro ‘G_LOG_DOMAIN’ #define g_critical(...) g_log (G_LOG_DOMAIN, \ ^~~~~~~~~~~~ /home/mcatanzaro/.cache/jhbuild/build/gegl-0.3.14/gegl/tmp-introspectme6ivh1j/Gegl-0.3.c:61:7: note: in expansion of macro ‘g_critical’ g_critical ("failed to write to iochannel: %s", error->message); ^~~~~~~~~~ /home/mcatanzaro/.cache/jhbuild/build/gegl-0.3.14/gegl/tmp-introspectme6ivh1j/Gegl-0.3.c: In function ‘goutput_write’: <command-line>:0:14: error: ‘GEGL’ undeclared (first use in this function) /home/mcatanzaro/releases/gnome-apps-3.25.91/install/include/glib-2.0/glib/gmessages.h:331:32: note: in expansion of macro ‘G_LOG_DOMAIN’ #define g_critical(...) g_log (G_LOG_DOMAIN, \ ^~~~~~~~~~~~ /home/mcatanzaro/.cache/jhbuild/build/gegl-0.3.14/gegl/tmp-introspectme6ivh1j/Gegl-0.3.c:76:7: note: in expansion of macro ‘g_critical’ g_critical ("failed to write to iochannel: %s", error->message); ^~~~~~~~~~ Traceback (most recent call last):
+ Trace 237404
extra_postargs)
spawn(cmd, dry_run=self.dry_run)
_spawn_posix(cmd, search_path, dry_run=dry_run)
% (cmd, exit_status))
During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/mcatanzaro/releases/gnome-apps-3.25.91/install/bin/g-ir-scanner", line 66, in <module> sys.exit(scanner_main(sys.argv)) File "/home/mcatanzaro/releases/gnome-apps-3.25.91/install/lib/gobject-introspection/giscanner/scannermain.py", line 547, in scanner_main shlibs = create_binary(transformer, options, args) File "/home/mcatanzaro/releases/gnome-apps-3.25.91/install/lib/gobject-introspection/giscanner/scannermain.py", line 422, in create_binary gdump_parser.get_error_quark_functions()) File "/home/mcatanzaro/releases/gnome-apps-3.25.91/install/lib/gobject-introspection/giscanner/dumper.py", line 329, in compile_introspection_binary return dc.run() File "/home/mcatanzaro/releases/gnome-apps-3.25.91/install/lib/gobject-introspection/giscanner/dumper.py", line 168, in run introspection_obj = self._compile(c_path) File "/home/mcatanzaro/releases/gnome-apps-3.25.91/install/lib/gobject-introspection/giscanner/dumper.py", line 208, in _compile self._options.init_sections) File "/home/mcatanzaro/releases/gnome-apps-3.25.91/install/lib/gobject-introspection/giscanner/ccompiler.py", line 242, in compile source_str.rfind(os.sep)])) File "/usr/lib64/python3.5/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/usr/lib64/python3.5/distutils/unixccompiler.py", line 130, in _compile raise CompileError(msg) distutils.errors.CompileError: command 'gcc' failed with exit status 1 /home/mcatanzaro/releases/gnome-apps-3.25.91/install/share/gobject-introspection-1.0/Makefile.introspection:159: recipe for target 'Gegl-0.3.gir' failed make[3]: *** [Gegl-0.3.gir] Error 1 make[3]: Leaving directory '/home/mcatanzaro/.cache/jhbuild/build/gegl-0.3.14/gegl' Makefile:914: recipe for target 'all-recursive' failed make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory '/home/mcatanzaro/.cache/jhbuild/build/gegl-0.3.14/gegl' Makefile:638: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/mcatanzaro/.cache/jhbuild/build/gegl-0.3.14' Makefile:545: recipe for target 'all' failed make: *** [all] Error 2
Fallout from this was gnome-photos :(
It seems like it is gi-scanner which has changed, not GEGL, GEGL has changed in git master to work around this though. commit 81fb956b221e4b1f919788d8a5f6a3a5462b86ae Author: Øyvind Kolås <pippin@gimp.org> Date: Thu Mar 23 14:59:28 2017 +0100 build: move G_LOG_DOMAIN define to a Makefile.am as suggested in glib docs.. .
OK thanks. It would be great if you could make a new release with this fix sometime before 3.25.2!
I'll make a release happen in the next couple of weeks :)