Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 814578 - sys-libs/tevent-0.11.0: ${MULTILIB_USEDEP} on dev-util/cmocka is missing
Summary: sys-libs/tevent-0.11.0: ${MULTILIB_USEDEP} on dev-util/cmocka is missing
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-24 12:43 UTC by Eugene Shalygin
Modified: 2023-03-11 14:58 UTC (History)
3 users (show)

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


Attachments
build log (build.log,45.08 KB, text/plain)
2021-09-24 12:44 UTC, Eugene Shalygin
Details
build log with sane cflags (build.log,44.86 KB, text/plain)
2021-09-24 20:21 UTC, Eugene Shalygin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Shalygin 2021-09-24 12:43:49 UTC
build log says:

Checking for system cmocka (>=1.1.3)                                                            : not found 
ERROR: System library cmocka of version 1.1.3 not found, and bundling disabled


But:

dev-util/cmocka-1.1.5::gentoo was built with the following:
USE="-doc -examples -static-libs -test" ABI_X86="(64) -32 (-x32)"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -flto=4 -pipe -Wl,--as-needed -Wl,--hash-style=gnu"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -flto=4 -pipe -Wl,--as-needed -Wl,--hash-style=gnu"
FEATURES="parallel-fetch distlocks qa-unresolved-soname-deps protect-owned unmerge-logs binpkg-docompress ipc-sandbox compressdebug userfetch cgroup binpkg-dostrip assume-digests sandbox news binpkg-multi-instance preserve-libs userpriv usersandbox usersync collision-protect multilib-strict unmerge-orphans fixlafiles pid-sandbox xattr merge-sync network-sandbox unknown-features-warn binpkg-logs config-protect-if-modified sfperms strict splitdebug ebuild-locks strict-keepdir"
LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu -march=native -O3 -fgraphite-identity -floop-nest-optimize -flto=4 -pipe"

Reproducible: Always




$ emerge --info
Portage 3.0.23 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-11.2.0, glibc-2.33-r7, 5.14.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.14.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-4810MQ_CPU_@_2.80GHz-with-glibc2.33
KiB Mem:    32800964 total,  19074236 free
KiB Swap:   50331644 total,  50331644 free
Head commit of repository gentoo: 9e3054ad74ce0937555e0a54d1706d9b240b8cce

Timestamp of repository dwosky: Sun, 19 Sep 2021 21:52:04 +0000
Head commit of repository dwosky: 637ace0166893217583665cdb4094be4f66dc731

Timestamp of repository waffle-builds: Thu, 23 Sep 2021 21:27:30 +0000
Head commit of repository waffle-builds: 66f3cdbb1331b156151398739b0d952e71759dab

Head commit of repository zeule: 6e132ea113ba4b6c878d87dfd4fb304606f927be

Head commit of repository 4nykey: 92f79c8c157961843eb52615b537c9fc0da65661

Head commit of repository bobwya: 9725a3f0f1139fa6ac5b0bf01c444aa16acad74b

Head commit of repository cg: d74276c1ec419a42992f1af23ec6ff214cb32aa0

Head commit of repository dotnet: 0be885cb1358b1b460f1d1ed962bf6cdb92aadcd

Head commit of repository gamerlay: fef503515d33949c7b0ae6a63de8fba20eef86f0

Head commit of repository guru: 1edb9f16fd5c54f0bc5f6f7bb6278d60731beffd

Head commit of repository haarp: bc4c4a70af9d8fd4969292b3fb5ad6bedf90a2a2

Head commit of repository interactive-fiction: 31b83c15417dfbee38ad1ca05908ee6696953b18

Head commit of repository kde: e9bdde239cbc97f500a711465cfc405b00d6d4e0

Head commit of repository lto-overlay: 82637ed492f58c52efa20d033e8cd2d99be2ab20

Head commit of repository mv: 695310dab3c8b4b7a245f20c40c8188d0de30c82

Head commit of repository pg_overlay: 3789e788fe8b9ac05f126775abea856d74e85f04

Head commit of repository qt: 049be13391d598503402fe8d1f3ab0018993c0dc

Head commit of repository science: 5f3b48051a8db98dcbf8abed930f09023909a16d

Head commit of repository steam-overlay: d90ce0627d7c30027f4971dce6f67f22abd71e6d

Head commit of repository x11: 308a1716b7915e524a73298e0751d7ab4bf8d76f

sh bash 5.1_p8
ld GNU ld (Gentoo 2.36.1 p5) 2.36.1
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r2::gentoo
dev-lang/python:          2.7.18_p11-r100::lto-overlay, 3.9.6-r1::lto-overlay, 3.10.0_beta3-r1::lto-overlay
dev-lang/rust:            1.55.0::gentoo
dev-util/cmake:           3.21.3::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.4::gentoo
sys-devel/binutils:       2.36.1-r2::gentoo, 2.37_p1::gentoo
sys-devel/gcc:            10.3.0-r2::gentoo, 11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /var/portage/gentoo
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git
    priority: -1000

dwosky
    location: /var/portage/repository/dwosky
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/dwosky.git
    masters: gentoo

waffle-builds
    location: /var/portage/repository/waffle-builds
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/waffle-builds.git
    masters: gentoo

zeule
    location: /var/portage/repository/zeule
    sync-type: git
    sync-uri: file:///home/eugene/develop/gentoo-repo
    masters: gentoo qt kde guru mv lto-overlay

4nykey
    location: /var/portage/repository/4nykey
    sync-type: git
    sync-uri: https://github.com/4nykey/4nykey.git
    masters: gentoo
    priority: 50

bobwya
    location: /var/portage/repository/bobwya
    sync-type: git
    sync-uri: https://github.com/bobwya/miscellaneous_ebuilds.git
    masters: gentoo
    priority: 50

cg
    location: /var/portage/repository/cg
    sync-type: git
    sync-uri: https://github.com/brothermechanic/cg.git
    masters: gentoo
    priority: 50

dotnet
    location: /var/portage/repository/dotnet
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/dotnet.git
    masters: gentoo
    priority: 50

gamerlay
    location: /var/portage/repository/gamerlay
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/gamerlay.git
    masters: gentoo
    priority: 50

guru
    location: /var/portage/repository/guru
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git
    masters: gentoo
    priority: 50

haarp
    location: /var/portage/repository/haarp
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/haarp.git
    masters: gentoo
    priority: 50

interactive-fiction
    location: /var/portage/repository/interactive-fiction
    sync-type: git
    sync-uri: git://repo.or.cz/gentoo-interactive-fiction.git
    masters: gentoo
    priority: 50

kde
    location: /var/portage/repository/kde
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/kde.git
    masters: gentoo
    priority: 50

lto-overlay
    location: /var/portage/repository/lto-overlay
    sync-type: git
    sync-uri: https://github.com/InBetweenNames/gentooLTO.git
    masters: gentoo mv
    priority: 50

mv
    location: /var/portage/repository/mv
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/mv.git
    masters: gentoo
    priority: 50

pg_overlay
    location: /var/portage/repository/pg_overlay
    sync-type: git
    sync-uri: https://github.com/perfect7gentleman/pg_overlay.git
    masters: gentoo
    priority: 50

qt
    location: /var/portage/repository/qt
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/qt.git
    masters: gentoo
    priority: 50

science
    location: /var/portage/repository/science
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/proj/sci.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/portage/repository/steam-overlay
    sync-type: git
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

x11
    location: /var/portage/repository/x11
    sync-type: git
    sync-uri: git://anongit.gentoo.org/proj/x11
    masters: gentoo
    priority: 50

xanf
    location: /home/eugene/develop/xanf/distribution/Gentoo/repository
    masters: gentoo
    priority: 80

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @FREE @EULA 2dboy-EULA xv CC-Sampling-Plus-1.0 GPL2 as-is ValveSteamLicense unRAR bakoma fairuse Skype-TOS Zarf CDF android szip freedist MPEG-4 intel-ucode AVASYS linux-fw-redistributable no-source-code bh-luxi free-noncomm MSttfEULA NVIDIA-r1 GPL LPPL CC-BY-NC-4.0 OSGi-Specification-2.0 sun-jsr67 JasPer2.0 Amazon-EULA all-rights-reserved MS-vscode-EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -flto=4 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -flto=4 -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build --keep-going"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance cgroup collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://de-mirror.org/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS=" en en_GB eo de uk ru"
MAKEOPTS="-j4"
PKGDIR="/var/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--quiet"
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/portage/tmp"
USE="X a52 aac acl acpi activities alsa amd64 amr apng attica avahi bash-completion bluetooth bluray branding bs2b btrfs bzip2 cairo canberra caps cdda cdr chromaprint cli colord crypt css cups dbus declarative designer dirac djvu dovecot dri dts dv dvd dvdnav dvdr efi egl elfutils emacs emboss encode exif faac ffmpeg flac font_types_otf fontconfig fortran fuse gdbm geoip gif git gmp gnuplot gnutls gold gpm gsm gstreamer gtk gtk3 gui harfbuzz iconv icu idn ieee1394 imagemagick inotify iproute2 ipv6 jemalloc jit jpeg jpeg2k kde kerberos kipi kwallet lame lapack latex lcms libass libglvnd libinput libnotify libsamplerate libsecret libtirpc live lm-sensors lto luajit luatex lzma mad metalink mng mp3 mp4 mpeg mpi mpris mtp multicall multilib ncurses netlink network networkmanager nfs nftables nls nptl ogg openexr opengl openmp openssl pam pango pch pcre pdf pkcs11 plasma png policykit postscript ppds pulseaudio qml qrcode qt5 quicktime quvi radio readline romio rss rtmp samba scanner sctp sdl seccomp semantic-desktop slp smp speex spell split-usr sqlite ssl startup-notification svg symlink system-icu system-sqlite systemd taglib tcpd theora threads thumbnail tiff truetype udev udisks unicode upnp upower usb v4l v4l2 vaapi vdpau vim-syntax vorbis vpx vulkan wayland webengine webp widgets wifi x264 x265 xattr xcb xcomposite xetex xft xinerama xml xmp xrandr xv xvid yv12 zeroconf zlib zsh-completion zstd" ABI_X86="64" ADA_TARGET="gnat_2019" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 proxy" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon ptp2 fuji" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="garmin garmintxt gpsclock timing" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="libinput evdev libinput" KERNEL="linux" L10N="en en-GB eo de uk ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer nlpsolver" LUA_SINGLE_TARGET="lua5-3" LUA_TARGETS="lua5-3" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby27 ruby30" SANE_BACKENDS="epson2 net" USERLAND="GNU" VIDEO_CARDS="v4l radeon radeonsi intel i965 amdgpu" 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"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, RUSTFLAGS
Comment 1 Eugene Shalygin 2021-09-24 12:44:07 UTC
Created attachment 740979 [details]
build log
Comment 2 Matthew Smith gentoo-dev 2021-09-24 16:17:35 UTC

*** This bug has been marked as a duplicate of bug 802531 ***
Comment 3 Eugene Shalygin 2021-09-24 16:42:37 UTC
Why do you think this one duplicates #802531? This one is about configure script failure with cmocka installed, that one is about unconditional dependency.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-24 17:37:29 UTC
Any way to get debugging info out of waf?

FWIW, it's usually polite to try again with sane *FLAGS to rule out weirdness. It's possible e.g. a configure test fails with one of them.

(Also, wow, that's... a lot of overlays.)
Comment 5 Eugene Shalygin 2021-09-24 20:20:27 UTC
> Any way to get debugging info out of waf?

Could you tell me, please, how to get it?

> FWIW, it's usually polite to try again with sane *FLAGS to rule out weirdness. > It's possible e.g. a configure test fails with one of them.

Well, I know that I'm using the lto overlay :), so of course I have tried to disable everything and return to -O2 -march=native, but that did not seem to help.
Comment 6 Eugene Shalygin 2021-09-24 20:21:25 UTC
Created attachment 741150 [details]
build log with sane cflags
Comment 7 Eugene Shalygin 2021-09-24 21:11:29 UTC
If I run ebuild tevent-0.11.0.ebuild clean prepare, then cd into the abi_x86_32.x86 work dir and run the configure command from the build log (CCFLAGS="-march=native -O3 -pipe -O2 -Wl,--as-needed -Wl,--hash-style=gnu" LINKFLAGS="-march=native -O3 -pipe -O2 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--hash-style=gnu" PKGCONFIG="x86_64-pc-linux-gnu-pkg-config" /var/portage/tmp/portage/sys-libs/tevent-0.11.0/work/tevent-0.11.0/buildtools/bin/waf --prefix=/usr --docdir=/usr/share/doc/tevent-0.11.0 --htmldir=/usr/share/doc/tevent-0.11.0/html --libdir=/usr/lib --bundled-libraries=NONE --builtin-libraries=NONE --disable-python configure) it succeeds in finding cmocka (and overall).
Comment 8 Ionen Wolkens gentoo-dev 2021-09-25 00:13:48 UTC
I'm assuming you have USE=-abi_x86_32 on dev-util/cmocka, try enabling it.

i.e. the ebuild is lacking ${MULTILIB_USEDEP} on cmocka, so it didn't request it

(In reply to Eugene Shalygin from comment #7)
> If I run ebuild tevent-0.11.0.ebuild clean prepare, then cd into the
> abi_x86_32.x86 work dir [...]
> PKGCONFIG="x86_64-pc-linux-gnu-pkg-config"
Ran that way it's using the wrong environment and looking for 64bit cmocka instead of the 32bit one, normally you'd see i686-pc-linux-gnu-pkg-config.
Comment 9 Eugene Shalygin 2021-09-25 00:28:54 UTC
The build log says:

 * abi_x86_32.x86: running multilib-minimal_abi_src_configure
 * Current dir: /var/portage/tmp/portage/sys-libs/tevent-0.11.0/work/tevent-0.11.0-abi_x86_32.x86
'CCFLAGS=-march=native -O3 -pipe -O2 -Wl,--as-needed -Wl,--hash-style=gnu' 'LINKFLAGS=-march=native -O3 -pipe -O2 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--hash-style=gnu' 'PKGCONFIG=x86_64-pc-linux-gnu-pkg-config' '/var/portage/tmp/portage/sys-libs/tevent-0.11.0/work/tevent-0.11.0/buildtools/bin/waf' '--prefix=/usr' '--docdir=/usr/share/doc/tevent-0.11.0' '--htmldir=/usr/share/doc/tevent-0.11.0/html' '--libdir=/usr/lib' '--bundled-libraries=NONE' '--builtin-libraries=NONE' '--disable-python' 'configure'

As far as I understand it means x86_64-pc-linux-gnu-pkg-config is used for the 32-bit build.


But enabling the abi_x86_32 use on cmocka helps, thank you.
Comment 10 Ionen Wolkens gentoo-dev 2021-09-25 01:20:08 UTC
(In reply to Eugene Shalygin from comment #9)
> As far as I understand it means x86_64-pc-linux-gnu-pkg-config is used for
> the 32-bit build.

Hrm, nevermind that bit. It still passes the right paths through PKG_CONFIG_PATH (which wasn't set outside portage).

It's just kind of misleading, sometime I see i686- get used so that got me confused.
Comment 11 Ben Kohler gentoo-dev 2023-03-11 14:48:49 UTC
Looks like tevent ebuilds are using a bundled cmocka now, unless running tests? Do we just need to add the MULTILIB_USEDEP for the USE=test dep?
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-11 14:58:24 UTC
(In reply to Ben Kohler from comment #11)
> Looks like tevent ebuilds are using a bundled cmocka now, unless running
> tests? Do we just need to add the MULTILIB_USEDEP for the USE=test dep?

Ah, that sounds right (I did all the bundling magic work) - yes please