Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937620 - x11-wm/mutter-46.4 fails to compile: FAILED: Mtk-14.gir
Summary: x11-wm/mutter-46.4 fails to compile: FAILED: Mtk-14.gir
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-09 13:07 UTC by Agostino Sarubbo
Modified: 2024-08-21 18:07 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,364.73 KB, text/plain)
2024-08-09 13:07 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-08-09 13:07:47 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: x11-wm/mutter-46.4 fails to compile.
Discovered on: amd64 (internal ref: ci)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-08-09 13:07:48 UTC
CC'ing also the author of the commit (210fbbd66b5d0fc3dfd91ad1b837e5cd449e7539)
Comment 2 Agostino Sarubbo gentoo-dev 2024-08-09 13:07:50 UTC
Created attachment 899675 [details]
build.log

build log and emerge --info
Comment 3 Agostino Sarubbo gentoo-dev 2024-08-09 13:07:50 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


FAILED: mtk/mtk/Mtk-14.gir 
Run-time dependency libdisplay-info found: NO (tried pkgconfig and cmake)
Run-time dependency libsystemd found: NO (tried pkgconfig and cmake)
Comment 4 daniel 2024-08-21 15:00:06 UTC
(In reply to Agostino Sarubbo from comment #3)
> Error(s) that match a know pattern in addition to what has been reported in
> the summary:
> 
> 
> FAILED: mtk/mtk/Mtk-14.gir 
> Run-time dependency libdisplay-info found: NO (tried pkgconfig and cmake)
> Run-time dependency libsystemd found: NO (tried pkgconfig and cmake)

After emerging libdisplay-info, both dependencies are satisfied on my system, but I still get that error.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-21 15:02:24 UTC
The actual error is:
```
FAILED: mtk/mtk/Mtk-14.gir 
env PKG_CONFIG_PATH=/var/tmp/portage/x11-wm/mutter-46.4/temp/python3.13/pkgconfig:/usr/share/pkgconfig:/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4-build/meson-uninstalled PKG_CONFIG_LIBDIR=/usr/lib64/pkgconfig PKG_CONFIG=/usr/bin/x86_64-pc-linux-gnu-pkg-config CC=x86_64-pc-linux-gnu-gcc /usr/bin/g-ir-scanner --quiet --no-libtool --namespace=Mtk --nsversion=14 --warn-all --output mtk/mtk/Mtk-14.gir --quiet -U_GNU_SOURCE '-DMTK_SYSCONFDIR="/etc"' -DMTK_COMPILATION=1 '-DG_LOG_DOMAIN="Mtk"' --c-include=mtk/mtk.h -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4/mtk/mtk -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4-build/mtk/mtk -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4/mtk/. -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4-build/mtk/. -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4/mtk/mtk -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4-build/mtk/mtk -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4/. -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4-build/. --filelist=/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4-build/mtk/mtk/libmutter-mtk-14.so.0.0.0.p/Mtk_14_gir_filelist --include=GObject-2.0 --include=Graphene-1.0 --pkg-export=mutter-mtk-14 --cflags-begin -D_GNU_SOURCE -DG_ENABLE_DEBUG -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4/mtk/. -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4-build/mtk/. -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4/mtk/mtk -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4-build/mtk/mtk -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4/. -I/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4-build/. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/lib64/libffi/include -I/usr/include/gio-unix-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/pixman-1 -I/usr/include/gobject-introspection-1.0 --cflags-end --add-include-path=/usr/share/gir-1.0 -L/var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4-build/mtk/mtk --library mutter-mtk-14 --extra-library=glib-2.0 --extra-library=gobject-2.0 --extra-library=gio-2.0 --extra-library=graphene-1.0 --extra-library=pixman-1 --extra-library=X11 --extra-library=m --extra-library=girepository-1.0 --sources-top-dirs /var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4/ --sources-top-dirs /var/tmp/portage/x11-wm/mutter-46.4/work/mutter-46.4-build/
Couldn't find include 'GObject-2.0.gir' (search path: '['/usr/share/gir-1.0', '/var/tmp/portage/x11-wm/mutter-46.4/homedir/.local/share/gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0']')
```

Missing USE=introspection on something?
Comment 6 daniel 2024-08-21 16:46:44 UTC
(In reply to Sam James from comment #5)
> The actual error is:
> ```
> Couldn't find include 'GObject-2.0.gir' (search path:
> '['/usr/share/gir-1.0',
> '/var/tmp/portage/x11-wm/mutter-46.4/homedir/.local/share/gir-1.0',
> '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0',
> '/usr/share/gir-1.0', '/usr/share/gir-1.0']')
> ```
> 
> Missing USE=introspection on something?

So we need "GObject-2.0.gir" which isn't present on my system.

According to 

https://gitlab.gnome.org/GNOME/gobject-introspection/-/blob/main/gir/meson.build

the file should be generated by gobject-introspection, but isn'r or doesn't get installed:

gobject_files += files('gobject-2.0.c')

gobject_gir = custom_target('gir-gobject',
  input: gobject_files,
  output: 'GObject-2.0.gir',
Comment 7 daniel 2024-08-21 18:07:32 UTC
I have, btw. a similar problem with gnome-base/nautilus-46.2:


FAILED: libnautilus-extension/Nautilus-4.0.gir
...
Couldn't find include 'Gio-2.0.gir' (search path: '['/usr/share/gir-1.0', '/var/tmp/portage/gnome-base/nautilus-46.2/homedir/.local/share/gir-1.0', '/usr/local/share/gir-1.0', '/usr/share/gir-1.0', '/etc/eselect/wine/share/gir-1.0', '/usr/share/gdm/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0']')

where "Gio-2.0.gir" also should be created by gobject-introspection:

gio_gir = custom_target('gir-gio',
  input: gio_files,
  output: 'Gio-2.0.gir',