Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900699 - dev-libs/glib-2.74.6: ERROR: Dependency lookup for libelf with method 'pkgconfig' failed: Could not generate cargs for libelf:
Summary: dev-libs/glib-2.74.6: ERROR: Dependency lookup for libelf with method 'pkgcon...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-10 10:57 UTC by Sam James
Modified: 2023-03-10 10:58 UTC (History)
0 users

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


Attachments
build.log (file_900699.txt,22.44 KB, text/plain)
2023-03-10 10:57 UTC, Sam James
Details
meson-log.txt (file_900699.txt,582.21 KB, text/plain)
2023-03-10 10:57 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-10 10:57:05 UTC
Created attachment 857145 [details]
build.log

Checking if "ioctl with request SIOCGIFADDR" compiles: YES 
Configuring gnetworking.h using configuration
Configuring gdbus-codegen using configuration
Program gdbus-codegen found: YES (/usr/sparc64-unknown-linux-gnu/tmp/portage/dev-libs/glib-2.74.6/work/glib-2.74.6-.sparc64/gio/gdbus-2.0/codegen/gdbus-codegen)
Configuring config.py using configuration
Message: Found bash-completion but the .pc file did not set 'completionsdir', fallback to a predefined path
Run-time dependency libelf found: NO 

../glib-2.74.6/gio/meson.build:914:0: ERROR: Dependency lookup for libelf with method 'pkgconfig' failed: Could not generate cargs for libelf:
Package zlib was not found in the pkg-config search path.
Perhaps you should add the directory containing `zlib.pc'
to the PKG_CONFIG_PATH environment variable
Package 'zlib', required by 'libelf', not found


A full log can be found at /usr/sparc64-unknown-linux-gnu/tmp/portage/dev-libs/glib-2.74.6/work/glib-2.74.6-.sparc64/meson-logs/meson-log.txt
[EE] ERROR: dev-libs/glib-2.74.6::gentoo failed (configure phase):
[EE]   (no error message)

----

(This is cross.)

# sparc64-unknown-linux-gnu-emerge --info
Portage 3.0.45.2 (python 3.11.2-final-0, default/linux/sparc/17.0/64ul, gcc-12, unavailable, 6.1.15-gentoo-dist-hardened x86_64)
=================================================================
System uname: Linux-6.1.15-gentoo-dist-hardened-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.37
KiB Mem:    65758036 total,  10708008 free
KiB Swap:    8290300 total,   5131004 free
Timestamp of repository gentoo: Fri, 10 Mar 2023 09:47:00 +0000
sh dash 0.5.12
ld GNU ld (Gentoo 2.40 p3) 2.40.0
ccache version 4.7.4 [disabled]
dev-lang/python:          3.8.14::gentoo, 3.10.10_p2::gentoo, 3.11.0_beta3::gentoo
sys-kernel/linux-headers: 5.17-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.35-r7::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-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

ACCEPT_KEYWORDS="sparc ~sparc"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -mcpu=ultrasparc"
CHOST="sparc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -mcpu=ultrasparc"
DISTDIR="/var/cache/distfiles"
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=""
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync network-sandbox news nodoc noinfo noman parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="reflex"
PKGDIR="/usr/sparc64-unknown-linux-gnu/packages/"
PORTAGE_CONFIGROOT="/usr/sparc64-unknown-linux-gnu/"
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="/usr/sparc64-unknown-linux-gnu/tmp/"
SHELL="/bin/bash"
USE="acl big-endian bzip2 cli crypt dri fortran gdbm iconv ipv6 libglvnd libtirpc llvm-libunwind ncurses nls nptl openmp pcre readline sparc split-usr ssl test-rust unicode xattr zlib" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="fbdev mga r128 radeon dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
YACC="byacc"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-10 10:57:35 UTC
Created attachment 857147 [details]
meson-log.txt
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-10 10:58:10 UTC
mop ~ # sparc64-unknown-linux-gnu-emerge -pvO dev-libs/elfutils sys-libs/zlib app-emulation/qemu dev-libs/glib

 * IMPORTANT: 2 config files in '/usr/sparc64-unknown-linux-gnu/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

These are the packages that would be merged, in order:

[ebuild   R    ] dev-libs/elfutils-0.189::gentoo to /usr/sparc64-unknown-linux-gnu/ USE="bzip2 nls utils -lzma -static-libs -test (-valgrind) -verify-sig -zstd" 0 KiB
[ebuild     U  ] sys-libs/zlib-1.2.13-r1:0/1::gentoo [1.2.12-r2:0/1::gentoo] to /usr/sparc64-unknown-linux-gnu/ USE="(split-usr*) -minizip -static-libs -verify-sig" 0 KiB
[ebuild  N    *] app-emulation/qemu-7.2.0-r3::gentoo to /usr/sparc64-unknown-linux-gnu/ USE="bzip2 curl fdt filecaps gnutls jpeg ncurses nls oss pin-upstream-blobs png vhost-net vnc xattr -accessibility (-aio) -alsa -bpf -capstone -debug -doc -fuse -glusterfs -gtk (-infiniband) -io-uring -iscsi -jack (-jemalloc) -lzo -multipath -nfs -numa -opengl -pam -plugins -pulseaudio -python -rbd -sasl -sdl -sdl-image (-seccomp) (-selinux) -slirp -smartcard -snappy -spice -ssh -static -static-user -systemtap -test -udev -usb -usbredir -vde -virgl -virtfs -vte -xen -zstd" PYTHON_TARGETS="python3_10 -python3_9 -python3_11" QEMU_SOFTMMU_TARGETS="-aarch64 -alpha -arm -avr -cris -hppa -i386 -loongarch64 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -nios2 -or1k -ppc -ppc64 -riscv32 -riscv64 -rx -s390x -sh4 -sh4eb -sparc -sparc64 -tricore -x86_64 -xtensa -xtensaeb" QEMU_USER_TARGETS="-aarch64 -aarch64_be -alpha -arm -armeb -cris -hexagon -hppa -i386 -loongarch64 -m68k -microblaze -microblazeel -mips -mips64 -mips64el -mipsel -mipsn32 -mipsn32el -nios2 -or1k -ppc -ppc64 -ppc64le -riscv32 -riscv64 -s390x -sh4 -sh4eb -sparc -sparc32plus -sparc64 -x86_64 -xtensa -xtensaeb" 0 KiB
[ebuild  N     ] dev-libs/glib-2.74.6:2::gentoo to /usr/sparc64-unknown-linux-gnu/ USE="elf mime xattr -dbus -debug -gtk-doc (-selinux) -static-libs (-sysprof) -systemtap -test -utils" 0 KiB

Total: 4 packages (1 upgrade, 2 new, 1 reinstall), Size of downloads: 0 KiB

 * IMPORTANT: 91 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-10 10:58:59 UTC
There's a big comment in the glib ebuild about elfutils & zlib (wrt static-libs):
"""
# * elfutils (via libelf) does not build on Windows. gresources are not embedded
# within ELF binaries on that platform anyway and inspecting ELF binaries from
# other platforms is not that useful so exclude the dependency in this case.
# * Technically static-libs is needed on zlib, util-linux and perhaps more, but
# these are used by GIO, which glib[static-libs] consumers don't really seem
# to need at all, thus not imposing the deps for now and once some consumers
# are actually found to static link libgio-2.0.a, we can revisit and either add
# them or just put the (build) deps in that rare consumer instead of recursive
# RDEPEND here (due to lack of recursive DEPEND).
"""