Parallel building fails with -Denable-introspection=yes -Denable-vala=yes
Parallel building fails with -Denable-introspection=yes -Denable-vala=yes options.
In output shown below, valac was searching for Totem-1.0.gir before Totem-1.0.gir would be created by g-ir-scanner:
[134/149] /usr/bin/valac-0.38 -C --debug --pkg clutter-gtk-1.0 --pkg cogl-pango-1.0 --pkg libpeas-1.0 --pkg gtk+-3.0 --color=always --directory src/plugins/rotation/src@plugins@rotation@@rotation@sha --basedir ../totem-3.26.0/src/plugins/rotation --library rotation --header src/plugins/rotation/rotation.h --vapi ../rotation.vapi --girdir=/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src --pkg=Totem-1.0 ../totem-3.26.0/src/plugins/rotation/bacon-video.vapi ../totem-3.26.0/src/plugins/rotation/totem-rotation-plugin.vala
FAILED: src/plugins/rotation/src@plugins@rotation@@rotation@sha/totem-rotation-plugin.c src/plugins/rotation/rotation.h src/plugins/rotation/rotation.vapi
/usr/bin/valac-0.38 -C --debug --pkg clutter-gtk-1.0 --pkg cogl-pango-1.0 --pkg libpeas-1.0 --pkg gtk+-3.0 --color=always --directory src/plugins/rotation/src@plugins@rotation@@rotation@sha --basedir ../totem-3.26.0/src/plugins/rotation --library rotation --header src/plugins/rotation/rotation.h --vapi ../rotation.vapi --girdir=/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src --pkg=Totem-1.0 ../totem-3.26.0/src/plugins/rotation/bacon-video.vapi ../totem-3.26.0/src/plugins/rotation/totem-rotation-plugin.vala
error: Package `Totem-1.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Compilation failed: 1 error(s), 0 warning(s)
...
[141/149] /usr/bin/g-ir-scanner -I/usr/include/gobject-introspection-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/lib64/libffi-3.2.1/include --no-libtool --namespace=Totem --nsversion=1.0 --warn-all --output src/Totem-1.0.gir --c-include=totem.h --pkg-export=totem -I/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0/src -I/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src -I./. -I../totem-3.26.0/. -I./src/plugins -I../totem-3.26.0/src/plugins -I./src/. -I../totem-3.26.0/src/. -I./src/gst/. -I../totem-3.26.0/src/gst/. -I./src/gst/. -I../totem-3.26.0/src/gst/. -I./src/gst/. -I../totem-3.26.0/src/gst/. -I./src/gst/. -I../totem-3.26.0/src/gst/. -I./src/backend/. -I../totem-3.26.0/src/backend/. -I./src/gst/. -I../totem-3.26.0/src/gst/. -I./src/gst/. -I../totem-3.26.0/src/gst/. -I./src/gst/. -I../totem-3.26.0/src/gst/. -I./subprojects/libgd/. -I../totem-3.26.0/subprojects/libgd/. --filelist=/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src/src@@totem@sha/Totem_1.0_gir_filelist --include=Gio-2.0 --include=GLib-2.0 --include=GObject-2.0 --include=Gtk-3.0 --include=TotemPlParser-1.0 --symbol-prefix=totem --identifier-prefix=Totem --cflags-begin -I./. -I../totem-3.26.0/. -I./src/plugins -I../totem-3.26.0/src/plugins -I./src/. -I../totem-3.26.0/src/. -I./src/gst/. -I../totem-3.26.0/src/gst/. -I./src/backend/. -I../totem-3.26.0/src/backend/. -I./subprojects/libgd/. -I../totem-3.26.0/subprojects/libgd/. -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/clutter-1.0 -I/usr/include/cogl -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/libdrm -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/uuid -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/json-glib-1.0 -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/clutter-gst-3.0 -I/usr/include/clutter-gtk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gsettings-desktop-schemas -I/usr/include/pygobject-3.0 -I/usr/lib64/libffi-3.2.1/include -I/usr/include/totem-pl-parser/1/plparser -I/usr/include/libxml2 -I/usr/include/gmime-3.0 -D_LARGEFILE64_SOURCE -I/usr/include/libpeas-1.0 -I/usr/include/gobject-introspection-1.0 -I/usr/include/grilo-0.3 -I/usr/include/gnome-desktop-3.0 -DLIBGD_GTK_HACKS=1 -DLIBGD__VIEW_COMMON=1 -DLIBGD_MAIN_ICON_VIEW=1 -DLIBGD_MAIN_LIST_VIEW=1 -DLIBGD_MAIN_VIEW=1 -DLIBGD_TAGGED_ENTRY=1 --cflags-end -I./src/. -I../totem-3.26.0/src/. --add-include-path=/usr/share/gir-1.0 --add-include-path=./src/. --add-include-path=../totem-3.26.0/src/. -L/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src -L/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src/gst -L/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src/backend -L/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/subprojects/libgd/libgd --library totem -L/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src --extra-library=gstpbutils-1.0 --extra-library=gstreamer-1.0 --extra-library=gobject-2.0 --extra-library=glib-2.0 --extra-library=gstbase-1.0 --extra-library=gsttag-1.0 --extra-library=gstaudio-1.0 --extra-library=gstvideo-1.0 --extra-library=clutter-1.0 --extra-library=cogl-path --extra-library=atk-1.0 --extra-library=cogl-pango --extra-library=cogl --extra-library=gmodule-2.0 --extra-library=gbm --extra-library=drm --extra-library=EGL --extra-library=Xrandr --extra-library=json-glib-1.0 --extra-library=gio-2.0 --extra-library=gdk-3 --extra-library=pangocairo-1.0 --extra-library=pango-1.0 --extra-library=gdk_pixbuf-2.0 --extra-library=cairo-gobject --extra-library=cairo --extra-library=X11 --extra-library=Xext --extra-library=Xdamage --extra-library=Xfixes --extra-library=Xcomposite --extra-library=Xi --extra-library=clutter-gst-3.0 --extra-library=clutter-gtk-1.0 --extra-library=gtk-3 --extra-library=m --extra-library=totem-plparser --extra-library=peas-1.0 --extra-library=girepository-1.0 --extra-library=peas-gtk-1.0 --extra-library=grilo-0.3 --extra-library=xml2 --extra-library=grlpls-0.3 --extra-library=gnome-desktop-3
g-ir-scanner: link: cc -o /var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/tmp-introspectvzk2pgz0/Totem-1.0 -march=sandybridge -O2 -pipe /var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/tmp-introspectvzk2pgz0/Totem-1.0.o -L. -Wl,-rpath,. -Wl,--no-as-needed -ltotem -lgstpbutils-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lgstbase-1.0 -lgsttag-1.0 -lgstaudio-1.0 -lgstvideo-1.0 -lclutter-1.0 -lcogl-path -latk-1.0 -lcogl-pango -lcogl -lgmodule-2.0 -lgbm -ldrm -lEGL -lXrandr -ljson-glib-1.0 -lgio-2.0 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lX11 -lXext -lXdamage -lXfixes -lXcomposite -lXi -lclutter-gst-3.0 -lclutter-gtk-1.0 -lgtk-3 -lm -ltotem-plparser -lpeas-1.0 -lgirepository-1.0 -lpeas-gtk-1.0 -lgrilo-0.3 -lxml2 -lgrlpls-0.3 -lgnome-desktop-3 -L/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src -Wl,-rpath,/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src -L/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src/gst -Wl,-rpath,/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src/gst -L/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src/backend -Wl,-rpath,/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src/backend -L/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/subprojects/libgd/libgd -Wl,-rpath,/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/subprojects/libgd/libgd -L/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src -Wl,-rpath,/var/tmp/portage/media-video/totem-3.26.0-r1/work/totem-3.26.0-build/src -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -Wl,-O1 -Wl,--sort-common -Wl,--as-needed
/usr/lib64/gobject-introspection/giscanner/libtoolimporter.py:26: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
/usr/lib64/gobject-introspection/giscanner/transformer.py:221: ResourceWarning: unclosed file <_io.BufferedReader name='/var/tmp/portage/media-video/totem-3.26.0-r1/homedir/.cache/g-ir-scanner/95f947bf1eae641455724fd5e7b08d716417dd95'>
parser = self._cachestore.load(filename)
/usr/lib64/gobject-introspection/giscanner/transformer.py:221: ResourceWarning: unclosed file <_io.BufferedReader name='/var/tmp/portage/media-video/totem-3.26.0-r1/homedir/.cache/g-ir-scanner/3d8ccebc1bd2f0f69818f0a50b179729b0f33721'>
parser = self._cachestore.load(filename)
/usr/lib64/python3.6/subprocess.py:766: ResourceWarning: subprocess 4774 is still running
ResourceWarning, source=self)
/usr/lib64/gobject-introspection/giscanner/shlibs.py:146: ResourceWarning: unclosed file <_io.BufferedReader name=3>
_resolve_non_libtool(options, binary, non_libtool))
/usr/lib64/gobject-introspection/giscanner/scannermain.py:581: ResourceWarning: unclosed file <_io.BufferedWriter name='src/Totem-1.0.gir'>
write_output(data, options)
ninja: build stopped: subcommand failed.