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 768088 - Build problem with gobject-introspection
Build problem with gobject-introspection
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
1.45.x
Other Linux
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2016-06-27 10:31 UTC by Alexander Larsson
Modified: 2016-08-17 07:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexander Larsson 2016-06-27 10:31:54 UTC
We're having problems rebuilding the nightly gnome runtimes, all the arches fail with:

g-ir-scanner: WarnLib: warning: 9 warnings suppressed (use --warn-all to see them)
/usr/bin/g-ir-compiler  --includedir=. WarnLib-1.0.gir -o WarnLib-1.0.typelib
Traceback (most recent call last):
  • File "/usr/bin/g-ir-scanner", line 66 in <module>
    sys.exit(scanner_main(sys.argv))
  • File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 551 in scanner_main
    main.transform()
  • File "/usr/lib/gobject-introspection/giscanner/maintransformer.py", line 69 in transform
    self._namespace.walk(self._pass_read_annotations_early)
  • File "/usr/lib/gobject-introspection/giscanner/ast.py", line 510 in walk
    node.walk(callback, [])
  • File "/usr/lib/gobject-introspection/giscanner/ast.py", line 641 in walk
    chain.append(self)
  • File "/usr/lib/gobject-introspection/giscanner/ast.py", line 1018 in _walk
    if field.anonymous_node is not None:
  • File "/usr/lib/gobject-introspection/giscanner/ast.py", line 641 in walk
    chain.append(self)
  • File "/usr/lib/gobject-introspection/giscanner/ast.py", line 1018 in _walk
    if field.anonymous_node is not None:
  • File "/usr/lib/gobject-introspection/giscanner/ast.py", line 636 in walk
    def walk(self, callback, chain):
  • File "/usr/lib/gobject-introspection/giscanner/maintransformer.py", line 190 in _pass_read_annotations_early
    block = self._blocks.get(node.c_name)
  • File "/usr/lib/gobject-introspection/giscanner/ast.py", line 572 in <lambda>
    c_name = property(lambda self: self.namespace.name + self.name if self.namespace else
AttributeError: 'NoneType' object has no attribute 'name'
Makefile:2647: recipe for target 'Regress-1.0.gir' failed
make[1]: *** [Regress-1.0.gir] Error 1
make[1]: *** Waiting for unfinished jobs....
g-ir-scanner: link: /bin/sh ./libtool --mode=link --tag=CC gcc -o /run/build-runtime/gjs/tmp-introspecta1SeQO/GjsPrivate-1.0 -export-dynamic -O2 -g -L/app/lib tmp-introspecta1SeQO/run/build-runtime/gjs/tmp-introspecta1SeQO/GjsPrivate-1.0.o -L. libgjs.la -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0
libtool: link: gcc -o /run/build-runtime/gjs/tmp-introspecta1SeQO/.libs/GjsPrivate-1.0 -O2 -g tmp-introspecta1SeQO/run/build-runtime/gjs/tmp-introspecta1SeQO/GjsPrivate-1.0.o -Wl,--export-dynamic -pthread -Wl,--export-dynamic  -L/app/lib -L. ./.libs/libgjs.so /usr/lib/libgtk-3.so /usr/lib/libgdk-3.so /usr/lib/libpangocairo-1.0.so -L/usr/lib/../lib /usr/lib/libpangoft2-1.0.so -lharfbuzz -lfontconfig -lfreetype /usr/lib/libpango-1.0.so /usr/lib/libthai.so /usr/lib/libdatrie.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lpng16 -ljpeg -lreadline /usr/lib/libgirepository-1.0.so -lm -lcairo-gobject /usr/lib/libgthread-2.0.so -lmozjs-24 -lcairo -lX11 -lXext /usr/lib/libgio-2.0.so -lz -lresolv /usr/lib/libgobject-2.0.so -lffi /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lpcre -lpthread -pthread
make[1]: Leaving directory '/run/build-runtime/gjs'
Makefile:997: recipe for target 'all' failed
make: *** [all] Error 2
Error: module gjs: Child process exited with code 2
make: *** [all] Error 1


Full log at:

http://sdkbuilder1.gnome.org//logs/build-2016-06-27-082833/build-gnome-sdk-images-master-x86_64.txt

I haven't had time to look into this.
Comment 1 Alexander Larsson 2016-08-09 16:22:50 UTC
I fixed some issue in gnome-sdk-images master that made it not get to this part, so now it does again, and its still failing:

http://sdkbuilder1.gnome.org/logs/build-2016-08-09-131003/build-gnome-sdk-images-master-i386.txt

However, i also built gnome-sdk-images locally on my machine, and that worked!
This is pretty weird, as the two are basically running everything the same except the kernel. And the failure is very reproducible on the gnome build machine.
Comment 2 Alexander Larsson 2016-08-10 07:00:17 UTC
This seems related to https://bugzilla.gnome.org/show_bug.cgi?id=766011

At least that addition (RegressAnonymousUnionAndStruct) which is failing.
Comment 3 Alexander Larsson 2016-08-10 07:39:09 UTC
Hmm, i wonder if this is actually a flatpak-builder bug, and its using the old .pyo for the new .py file.
Comment 4 Alexander Larsson 2016-08-17 07:54:17 UTC
Turns out this was a runtime issue.