After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 781880 - In function ‘escaped_printf’: <command-line>:0:14: error: ‘GEGL’ undeclared
In function ‘escaped_printf’: <command-line>:0:14: error: ‘GEGL’ undeclared
Status: RESOLVED FIXED
Product: GEGL
Classification: Other
Component: build
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Default Gegl Component Owner
Default Gegl Component Owner
Depends on:
Blocks:
 
 
Reported: 2017-04-28 06:39 UTC by Michael Catanzaro
Modified: 2017-04-28 18:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael Catanzaro 2017-04-28 06:39:00 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):
  • File "/usr/lib64/python3.5/distutils/unixccompiler.py", line 128 in _compile
    extra_postargs)
  • File "/usr/lib64/python3.5/distutils/ccompiler.py", line 909 in spawn
    spawn(cmd, dry_run=self.dry_run)
  • File "/usr/lib64/python3.5/distutils/spawn.py", line 36 in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  • File "/usr/lib64/python3.5/distutils/spawn.py", line 159 in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1

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
Comment 1 Michael Catanzaro 2017-04-28 06:41:20 UTC
Fallout from this was gnome-photos :(
Comment 2 Øyvind Kolås (pippin) 2017-04-28 08:09:41 UTC
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..
.
Comment 3 Michael Catanzaro 2017-04-28 15:32:32 UTC
OK thanks. It would be great if you could make a new release with this fix sometime before 3.25.2!
Comment 4 Øyvind Kolås (pippin) 2017-04-28 18:26:30 UTC
I'll make a release happen in the next couple of weeks :)