Created attachment 914589 [details] glib-2.80.5-r1:20241221-092821.log.gz FAILED: girepository/introspection/GLib-2.0.typelib /var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/usr/lib64/pkgconfig/../../bin/g-ir-compiler girepository/introspection/GLib-2.0.gir --output girepository/introspection/GLib-2.0.typelib --includedir=/var/tmp/portage/dev-libs/glib-2.80.5-r1/work/glib-2.80.5-abi_x86_64.amd64/girepository/introspection --includedir=/var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/usr/lib64/pkgconfig/../../share/gir-1.0 /var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/usr/lib64/pkgconfig/../../bin/g-ir-compiler: error while loading shared libraries: libgirepository-1.0.so.1: cannot open shared object file: No such file or directory ninja: build stopped: subcommand failed. $ emerge --info dev-libs/glib Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/systemd, gcc-13, glibc-2.40-r5, 6.6.66-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.6.66-gentoo-x86_64-Intel_Xeon_Processor_-Skylake,_IBRS,_no_TSX-with-glibc2.40 KiB Mem: 3919212 total, 599108 free KiB Swap: 2097148 total, 2091516 free Timestamp of repository gentoo: Sat, 21 Dec 2024 09:00:00 +0000 Head commit of repository gentoo: 3f9521b3168fde9b5feb2b24e4d86ae7725dd254 Head commit of repository puleglot: 226890a9ba1e4fafae7481dc9d0ec730c4034de7 sh dash 0.5.12 ld GNU ld (Gentoo 2.43 p3) 2.43.1 app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.30.6::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.5.2::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 3.12.8::gentoo dev-lang/rust-bin: 1.81.0-r101::gentoo, 1.82.0-r101::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/sandbox: 2.39::gentoo sys-apps/systemd: 256.7::gentoo sys-devel/binutils: 2.43-r2::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/gcc: 13.3.1_p20241115::gentoo sys-devel/gcc-config: 2.11::gentoo sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r5::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-extra-opts: sync-rsync-verify-max-age: 3 sync-rsync-verify-jobs: 2 sync-rsync-verify-metamanifest: yes puleglot location: /var/db/repos/puleglot sync-type: git sync-uri: https://puleglot.ru/git/gentoo/puleglot-overlay.git masters: gentoo priority: 900 volatile: False local location: /usr/local/portage masters: gentoo priority: 1000 volatile: True ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=x86-64-v2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d" CXXFLAGS="-O2 -march=x86-64-v2 -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--dynamic-deps=n --with-bdeps=y --binpkg-respect-use=y --ask-enter-invalid" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -march=x86-64-v2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live buildsyspkg clean-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -march=x86-64-v2 -pipe" GENTOO_MIRRORS="http://mirror.hetzner.de/gentoo/ http://distfiles.gentoo.org/" LANG="ru_RU.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" MAKEOPTS="-j1" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" RUSTFLAGS="-C opt-level=2 -C target-cpu=x86-64-v2" SHELL="/bin/bash" USE="acl aio amd64 bash-completion bzip2 caps cet cli crypt device-mapper gdbm hardened iconv icu idn ipv6 libtirpc lz4 lzma maildir modules-compress multilib ncurses nls openmp pam pcre pic pie readline sasl seccomp ssl ssp systemd test-rust tls udev unicode urandom vim-syntax xattr xtpax xz zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="pc" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="ru en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= dev-libs/glib-2.78.6::gentoo was built with the following: USE="elf mime xattr -dbus -debug -gtk-doc (-selinux) -static-libs -sysprof -systemtap -test -utils" ABI_X86="(64) -32 (-x32)"
This is during update from glib-2.78.6 to 2.80.5-r1. If I manually install dev-libs/gobject-introspection-1.78.1-r2, then build succeeds. So there is probably a circular dependency between dev-libs/glib[introspection] and dev-libs/gobject-introspection. I can't see how dev-libs/glib-2.80.5-r1[introspection] can be installed on a fresh system.
Same here. Seems like because of new default use flag "introspection" and missing dependency from dev-libs/gobject-introspection (cant open file libgirepository-1.0.so which is part of dev-libs/gobject-introspection). Workaround: emerge -1 "<dev-libs/gobject-introspection-common-1.80" "<dev-libs/gobject-introspection-1.80" emerge -1 dev-libs/gobject-introspection-common dev-libs/gobject-introspection-common dev-libs/glib
(In reply to Alexander Tsoy from comment #1) > So there is probably a circular dependency between > dev-libs/glib[introspection] and dev-libs/gobject-introspection. I can't see > how dev-libs/glib-2.80.5-r1[introspection] can be installed on a fresh > system. Ah, I'm wrong. Without gobject-introspection installed glib builds and installs it's own copy of it in a temp dir. But for some reason dynamic linking is broken.
Created attachment 914591 [details] glib-2.80.5-r1.patch This fixes this issue for me
Created attachment 914592 [details] glib-2.80.5-r1.patch
*** Bug 946781 has been marked as a duplicate of this bug. ***
also had issues with upgrading from 2.78.6 to 2.80.5-r1 but without the nice compilation error message (had lots of symbol reference issues, see attached log). i tried this b/c i also saw the introspection use flag being enabled, so i tried the patch suggested by alexander. it fixes it for me.
(In reply to razamatan from comment #7) > also had issues with upgrading from 2.78.6 to 2.80.5-r1 but without the nice > compilation error message (had lots of symbol reference issues, see attached > log). i tried this b/c i also saw the introspection use flag being enabled, > so i tried the patch suggested by alexander. it fixes it for me. looking at the saved build log carefully, it actually did have the same failure: [626/638] /var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/usr/lib64/pkgconfig/../../bin/g-ir-compiler girepository/introspection/GLib-2.0.gir --output girepository/introspection/GLib-2.0.typelib --includedir=/var/tmp/portage/dev-libs/glib-2.80.5-r1/work/glib-2.80.5-abi_x86_64.amd64/girepository/introspection --includedir=/var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/usr/lib64/pkgconfig/../../share/gir-1.0 FAILED: girepository/introspection/GLib-2.0.typelib /var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/usr/lib64/pkgconfig/../../bin/g-ir-compiler girepository/introspection/GLib-2.0.gir --output girepository/introspection/GLib-2.0.typelib --includedir=/var/tmp/portage/dev-libs/glib-2.80.5-r1/work/glib-2.80.5-abi_x86_64.amd64/girepository/introspection --includedir=/var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/usr/lib64/pkgconfig/../../share/gir-1.0/var/tmp/portage/dev-libs/glib-2.80.5-r1/temp/usr/lib64/pkgconfig/../../bin/g-ir-compiler: error while loading shared libraries: libgirepository-1.0.so.1: cannot open shared object file: No such file or directory
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ed35622d333954fedc11ed080bfa3dd29c74f3a commit 6ed35622d333954fedc11ed080bfa3dd29c74f3a Author: Gabi Falk <gabifalk@gmx.com> AuthorDate: 2024-12-21 13:39:00 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-12-21 16:21:22 +0000 dev-libs/glib: 2.80.5-r1: Fix gobject-introspection bootstrap Closes: https://bugs.gentoo.org/946735 Signed-off-by: Gabi Falk <gabifalk@gmx.com> Closes: https://github.com/gentoo/gentoo/pull/39807 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/glib/glib-2.80.5-r1.ebuild | 3 +++ 1 file changed, 3 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc389de277b47284868470abf7539e7fdf04c80d commit cc389de277b47284868470abf7539e7fdf04c80d Author: Sam James <sam@gentoo.org> AuthorDate: 2024-12-21 16:22:27 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-12-21 16:22:27 +0000 dev-libs/glib: forward-port LD_LIBRARY_PATH fix to 2.82.4-r1 too Bug: https://bugs.gentoo.org/946735 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/glib/glib-2.82.4-r1.ebuild | 3 +++ 1 file changed, 3 insertions(+)