Skip to content

Instantly share code, notes, and snippets.

@Phaiax
Last active June 11, 2021 22:44
Show Gist options
  • Save Phaiax/99118b1a788c8504325f75ad519e83be to your computer and use it in GitHub Desktop.
Save Phaiax/99118b1a788c8504325f75ad519e83be to your computer and use it in GitHub Desktop.
Gnome-Shell jhbuild (gcr)
[60/62] Generating GcrUi-3.gir with a custom command.
g-ir-scanner: link: gcc -pthread -o /home/daniel/.cache/jhbuild/build/gcr/tmp-introspect5owsnojp/GcrUi-3 /home/daniel/.cache/jhbuild/build/gcr/tmp-introspect5owsnojp/GcrUi-3.o -L. -Wl,-rpath,. -Wl,--no-as-needed -L/home/daniel/.cache/jhbuild/build/gcr/ui -Wl,-rpath,/home/daniel/.cache/jhbuild/build/gcr/ui -L/home/daniel/.cache/jhbuild/build/gcr/egg -Wl,-rpath,/home/daniel/.cache/jhbuild/build/gcr/egg -L/home/daniel/.cache/jhbuild/build/gcr/gck -Wl,-rpath,/home/daniel/.cache/jhbuild/build/gcr/gck -L/home/daniel/.cache/jhbuild/build/gcr/gcr -Wl,-rpath,/home/daniel/.cache/jhbuild/build/gcr/gcr -L/home/daniel/jhbuild/install/lib -Wl,-rpath,/home/daniel/jhbuild/install/lib -L/home/daniel/jhbuild/install/lib -Wl,-rpath,/home/daniel/jhbuild/install/lib -lgcr-ui-3 -lglib-2.0 -lgmodule-2.0 -lgthread-2.0 -lgobject-2.0 -lgio-2.0 -lp11-kit -lgcrypt -ldl -lgpg-error -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -L/home/daniel/jhbuild/install/lib -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 -L/home/daniel/jhbuild/install/lib
[61/62] Generating gcr-ui-3.vapi with a custom command.
FAILED: ui/gcr-ui-3.vapi
/home/daniel/jhbuild/install/bin/vapigen --quiet --library=gcr-ui-3 --directory=/home/daniel/.cache/jhbuild/build/gcr/ui --vapidir=/home/daniel/.cache/jhbuild/build/gcr/gck --vapidir=/home/daniel/.cache/jhbuild/build/gcr/gcr --metadatadir=/home/daniel/jhbuild/checkout/gcr/ui --girdir=/home/daniel/.cache/jhbuild/build/gcr/gck --girdir=/home/daniel/.cache/jhbuild/build/gcr/gcr --pkg=glib-2.0 --pkg=gio-2.0 --pkg=gck-1 --pkg=gcr-3 --pkg=gtk+-3.0 --metadatadir=/home/daniel/jhbuild/checkout/gcr/ui /home/daniel/.cache/jhbuild/build/gcr/ui/GcrUi-3.gir
HarfBuzz-0.0.gir:239.5-239.79: error: `hb_.language_t' not supported as type for constants
[62/62] Generating GcrUi-3.typelib with a custom command.
ninja: build stopped: subcommand failed.
*** Fehler während Phase build von gcr: ########## Fehler beim Ausführen von ninja *** [33/94]
--> I started a shell to examine the situation
➜ gcr /home/daniel/jhbuild/install/bin/vapigen --library=gcr-ui-3 --directory=/home/daniel/.cache/jhbuild/build/gcr/ui --vapidir=/home/daniel/.cache/jhbuild/build/gcr/gck --vapidir=/home/daniel/.cache/jhbuild/build/gcr/gcr --metadatadir=/home/daniel/jhbuild/checkout/gcr/ui --girdir=/home/daniel/.cache/jhbuild/build/gcr/gck --girdir=/home/daniel/.cache/jhbuild/build/gcr/gcr --pkg=glib-2.0 --pkg=gio-2.0 --pkg=gck-1 --pkg=gcr-3 --pkg=gtk+-3.0 --metadatadir=/home/daniel/jhbuild/checkout/gcr/ui /home/daniel/.cache/jhbuild/build/gcr/ui/GcrUi-3.gir
HarfBuzz-0.0.gir:239.5-239.79: error: `hb_.language_t' not supported as type for constants
<constant name="LANGUAGE_INVALID" value="0" c:type="HB_LANGUAGE_INVALID">
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Generation failed: 1 error(s), 0 warning(s)
--> Why does it say hb_.language_t and not hb_language_t ?? Is that by purpose?
Maybe the first part is taken as some kind of class name. But why isn't then the underscore replaced?
...
<constant name="LANGUAGE_INVALID" value="0" c:type="HB_LANGUAGE_INVALID">
<source-position filename="jhbuild/checkout/harfbuzz/src/hb-common.h"
line="170"/>
<type name="language_t" c:type="hb_language_t"/>
</constant>
...
--> a reference to hb-common.h
...
/* hb_language_t */
typedef const struct hb_language_impl_t *hb_language_t;
HB_EXTERN hb_language_t
hb_language_from_string (const char *str, int len);
HB_EXTERN const char *
hb_language_to_string (hb_language_t language);
#define HB_LANGUAGE_INVALID ((hb_language_t) 0)
HB_EXTERN hb_language_t
hb_language_get_default (void);
...
--> a git blame around these lines said the last change was in 2017, so probably not related to this error
--> the original error was
HarfBuzz-0.0.gir:239.5-239.79: error: `hb_.language_t' not supported as type for constants
Maybe the type hb_language_impl_t has changed? -> No change since 2012
/* hb_language_t */
struct hb_language_impl_t {
const char s[1];
};
@Thinstation
Copy link

Was this ever solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment