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 774999 - g-ir-scanner fails on non-ASCII paths
g-ir-scanner fails on non-ASCII paths
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: g-ir-scanner
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-11-24 12:09 UTC by Adrien Plazas
Modified: 2018-02-08 12:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Adrien Plazas 2016-11-24 12:09:50 UTC
While trying to compile emeus, g-ir-scanner failed because there is a non-ASCII character in the project's path. Moving the project to give it an ASCII path made the compilation work as expected.

Look for 'é' here:

[26/27] 'Generating Emeus-1.0.gir with a custom command.'
FAILED: src/Emeus-1.0.gir
'g-ir-scanner' '../src/emeus-constraint.h' '../src/emeus-constraint-layout.h' '../src/emeus-version-macros.h' '../src/emeus-types.h' '../src/emeus-utils.h' '../src/emeus-constraint.c' '../src/emeus-constraint-layout.c' '../src/emeus-types.c' '-pthread' '-I/usr/include/gobject-introspection-1.0' '-I/usr/include/glib-2.0' '-I/usr/lib64/glib-2.0/include' '--no-libtool' '--namespace=Emeus' '--nsversion=1.0' '--warn-all' '--output' 'src/Emeus-1.0.gir' '--c-include=emeus.h' '-DEMEUS_COMPILATION' '--cflags-begin' '-I/home/kekun/Développement/emeus/src' '-I/home/kekun/Développement/emeus/_build/src' '--cflags-end' '-I/home/kekun/Développement/emeus/src' '-I/home/kekun/Développement/emeus/_build/src' '--include=Gtk-3.0' '--cflags-begin' '-fvisibility=hidden' '--cflags-end' '--symbol-prefix=emeus' '--identifier-prefix=Emeus' '--pkg-export=emeus-1.0' '-I/usr/include/dbus-1.0' '-I/usr/include/gdk-pixbuf-2.0' '-I/usr/include/harfbuzz' '-I/usr/include/libdrm' '-I/usr/include/pixman-1' '-I/usr/include/pango-1.0' '-I/usr/include/libpng16' '-I/usr/lib64/glib-2.0/include' '-I/usr/lib64/dbus-1.0/include' '-I/usr/include/gtk-3.0' '-I/usr/include/atk-1.0' '-I/usr/include/gio-unix-2.0/' '-I/usr/include/at-spi-2.0' '-pthread' '-I/usr/include/at-spi2-atk/2.0' '-I/usr/include/cairo' '-I/usr/include/freetype2' '-I/usr/include/glib-2.0' '-L/home/kekun/Développement/emeus/_build/src' '-latk-1.0' '-lpangocairo-1.0' '-lpango-1.0' '-lgdk-3' '-lgobject-2.0' '-lgtk-3' '-lcairo' '-lgio-2.0' '-lglib-2.0' '-lm' '-lgdk_pixbuf-2.0' '-lcairo-gobject' '--library' 'emeus-1.0'
/usr/lib64/gobject-introspection/giscanner/scannermain.py:55: UnicodeWarning: Unicode unequal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  while len(parser.rargs) > 0 and parser.rargs[0] != '--cflags-end':
/usr/lib64/gobject-introspection/giscanner/scannermain.py:57: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if arg == "-I" and parser.rargs and parser.rargs[0] != '--cflags-end':
Traceback (most recent call last):
  • File "/usr/bin/g-ir-scanner", line 66 in <module>
    sys.exit(scanner_main(sys.argv))
  • File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 492 in scanner_main
    (options, args) = parser.parse_args(args)
  • File "/usr/lib64/python2.7/optparse.py", line 1400 in parse_args
    stop = self._process_args(largs, rargs, values)
  • File "/usr/lib64/python2.7/optparse.py", line 1440 in _process_args
    self._process_long_opt(rargs, values)
  • File "/usr/lib64/python2.7/optparse.py", line 1515 in _process_long_opt
    option.process(opt, value, values, self)
  • File "/usr/lib64/python2.7/optparse.py", line 789 in process
    self.action, self.dest, opt, value, values, parser)
  • File "/usr/lib64/python2.7/optparse.py", line 809 in take_action
    self.callback(self, opt, value, parser, *args, **kwargs)
  • File "/usr/lib64/gobject-introspection/giscanner/scannermain.py", line 60 in process_cflags_begin
    cflags.append(utils.cflag_real_include_path(arg))
  • File "/usr/lib64/gobject-introspection/giscanner/utils.py", line 181 in cflag_real_include_path
    if not cflag.startswith("-I"):
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 15: ordinal not in range(128)
ninja: build stopped: subcommand failed.
Comment 1 Emmanuele Bassi (:ebassi) 2017-05-04 21:47:25 UTC
Need to convert the string objects into appropriate path ones.
Comment 2 GNOME Infrastructure Team 2018-02-08 12:44:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/168.