Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 768978 - sys-libs/libcxxabi-11.0.0-1 requires sys-libs/llvm-libunwind-11.0.0[static-libs], even though sys-libs/libunwind-1.5.0 is installed
Summary: sys-libs/libcxxabi-11.0.0-1 requires sys-libs/llvm-libunwind-11.0.0[static-li...
Status: RESOLVED DUPLICATE of bug 760504
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-06 14:04 UTC by Markus Wernig
Modified: 2021-02-07 20:15 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Wernig 2021-02-06 14:04:16 UTC
emerge -DuNav world results in a merge conflict:

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-libs/libunwind-1.5.0-r1:0/8::gentoo, ebuild scheduled for merge) pulled in by
    sys-libs/libunwind required by @selected 

  (sys-libs/llvm-libunwind-11.0.0:0/0::gentoo, ebuild scheduled for merge) pulled in by
    >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (>=sys-libs/llvm-libunwind-3.9.0-r1[static-libs,abi_x86_32(-),abi_x86_64(-)]) required by (sys-libs/libcxxabi-11.0.0-1:0/0::gentoo, installed) USE="libunwind static-libs -test" ABI_X86="32 (64) (-x32)"

This seems related to bug 760504, and actually sounds like a duplicate of bug 612602, which was closed a long time ago, though.

The strange thing imo. is that sys-libs/llvm-libunwind was not installed before. So it seems that re-emerging sys-libs/libunwind made it incompatible with sys-libs/libcxxabi-11.0.0-1, which then required sys-libs/llvm-libunwind as an alternative, which in turn failed.

The only way to resolve the issue was to enable static-libs on sys-libs/libunwind and re-emerge it.

Not that I understand the full consequences of this. 
But it seems strange and forces the static-libs also on zlib.

Reproducible: Always

Steps to Reproduce:
1. emerge -DuNav world with default USE flags set for sys-libs/libunwind, sys-libs/llvm-libunwind and sys-libs/libcxxabi

Actual Results:  
see description


# emerge --info
Portage 3.0.13 (python 3.8.7-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.32-r5, 4.19.0-13-amd64 x86_64)
=================================================================
System uname: Linux-4.19.0-13-amd64-x86_64-AMD_Opteron-tm-_Processor_6344-with-glibc2.2.5
KiB Mem:     6291456 total,   4590148 free
KiB Swap:    7812092 total,   7693564 free
Timestamp of repository gentoo: Fri, 05 Feb 2021 17:00:01 +0000
Head commit of repository gentoo: 494c10b41e8bdfca60ec5ae57e970cf1ad183f04
Timestamp of repository xfer-buildsrv: Tue, 04 Aug 2020 18:57:55 +0000
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r6::gentoo, 3.7.9-r2::gentoo, 3.8.7-r1::gentoo, 3.9.1-r1::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo, 2.35.1-r1::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

xfer-buildsrv
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=x86-64 -mtune=generic --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
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"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--backtrack=200 --with-bdeps=y --keep-going=y --ask-enter-invalid"
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 buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox protect-owned qa-unresolved-soname-deps sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://mirror.netcologne.de/gentoo/ https://mirror.init7.net/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de"
MAKEOPTS="-j2"
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"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gtk gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc mad mng modemmanager mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" 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" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="all" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 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 mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="keyboard mouse evdev synaptics void alps" KERNEL="linux" L10N="en de" 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-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Iade Gesso 2021-02-06 17:29:41 UTC
I can confirm, the conflict is present in my Gentoo too:

[ebuild     U ] app-arch/unrar-6.0.3 [5.9.4]
[ebuild     U ] sys-libs/timezone-data-2020f [2020e]
[ebuild     U ] dev-lang/spidermonkey-78.7.1 [78.7.0]
[ebuild     U ] sys-libs/libunwind-1.5.0-r1 [1.5.0]
[ebuild     U ] sys-fs/fuse-3.10.2 [3.10.1]
[ebuild     U ] app-crypt/qca-2.3.2 [2.3.1]
[ebuild  N    ] sys-libs/llvm-libunwind-11.0.0 
[ebuild     U ] net-libs/libpcap-1.10.0 [1.9.1-r3]
[ebuild     U ] dev-python/autobahn-21.1.1 [20.12.3]
[ebuild     U ] net-analyzer/nmap-7.91-r1 [7.91]
[ebuild  r  U ] dev-lang/erlang-23.2.1 [23.2]
[ebuild     U ] net-im/zoom-5.5.6981.0202 [5.5.6955.0131]
[ebuild  rR   ] dev-util/rebar-2.6.4-r1 
[ebuild     U ] kde-plasma/plasma-workspace-5.20.5-r4 [5.20.5-r3]
[blocks B     ] sys-libs/libunwind ("sys-libs/libunwind" is blocking sys-libs/llvm-libunwind-11.0.0)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-libs/libunwind-1.5.0-r1:0/8::gentoo, ebuild scheduled for merge) pulled in by
    >=sys-libs/libunwind-1.1-r1 required by (dev-dotnet/dotnetcore-sdk-bin-5.0.102:5.0/5.0::dotnet, installed) USE="" ABI_X86="(64)"
    sys-libs/libunwind required by (dev-util/google-perftools-2.7-r1:0/4::gentoo, installed) USE="debug -largepages -minimal -optimisememory -static-libs -test" ABI_X86="32 (64) (-x32)"
    sys-libs/libunwind required by @selected 
    >=sys-libs/libunwind-1.1-r1 required by (dev-dotnet/dotnetcore-sdk-bin-3.1.405:3.1/3.1::dotnet, installed) USE="" ABI_X86="(64)"
    sys-libs/libunwind:= required by (x11-apps/igt-gpu-tools-1.25:0/0::gentoo, installed) USE="X xv -chamelium -doc -man -overlay -runner -tests -unwind -valgrind" ABI_X86="(64)" VIDEO_CARDS="intel -amdgpu -nouveau"
    sys-libs/libunwind[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (sys-libs/libunwind[abi_x86_32(-),abi_x86_64(-)]) required by (dev-cpp/glog-0.4.0:0/0::gentoo, installed) USE="-gflags -static-libs -test" ABI_X86="32 (64) (-x32)"
    sys-libs/libunwind:0/8= required by (x11-apps/igt-gpu-tools-1.25:0/0::gentoo, installed) USE="X xv -chamelium -doc -man -overlay -runner -tests -unwind -valgrind" ABI_X86="(64)" VIDEO_CARDS="intel -amdgpu -nouveau"
    sys-libs/libunwind[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (sys-libs/libunwind[abi_x86_32(-),abi_x86_64(-)]) required by (app-emulation/wine-staging-6.1:6.1/6.1::gentoo, installed) USE="X alsa capi cups dos faudio fontconfig gcrypt gecko gphoto2 gsm gstreamer jpeg lcms ldap mono mp3 netapi nls odbc openal opencl opengl osmesa pcap perl png prelink pulseaudio realtime run-exes samba scanner sdl ssl (staging) themes threads truetype udev udisks unwind usb v4l vaapi vkd3d vulkan xcomposite xinerama xml -custom-cflags -gssapi -kerberos -mingw -oss -pipelight (-selinux) -test" ABI_X86="32 64 (-x32)"

  (sys-libs/llvm-libunwind-11.0.0:0/0::gentoo, ebuild scheduled for merge) pulled in by
    >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?] (>=sys-libs/llvm-libunwind-3.9.0-r1[static-libs,abi_x86_32(-),abi_x86_64(-)]) required by (sys-libs/libcxxabi-11.0.1:0/0::gentoo, installed) USE="libunwind static-libs -test" ABI_X86="32 (64) (-x32)"


The following packages are causing rebuilds:

  (dev-lang/erlang-23.2.1:0/23.2.1::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (dev-util/rebar-2.6.4-r1:0/0::gentoo, ebuild scheduled for merge)





Iade Gesso, PhD
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-02-06 17:34:46 UTC
In the original case, you have sys-libs/libunwind in @selected. Do you need it there?

I dare say Iade's case shows _more_ of a bug because it shows us packages which should likely depend on either, but not sure. Let's see what toolchain says.
Comment 3 Markus Wernig 2021-02-06 17:57:48 UTC
Hm, I'd say it's the same behaviour.

In both cases sys-libs/libcxxabi-11.0.0-1 tries to pull in sys-libs/llvm-libunwind-11.0.0[static-libs], because sys-libs/libunwind-1.5.0-r1 now has -static-libs, while sys-libs/libunwind-1.5.0, which was installed before, has static-libs and thus fulfilled the dependency from sys-libs/libcxxabi:

RDEPEND="
    libunwind? (
        || (
            >=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}]
            >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,${MULTILIB_USEDEP}]
        )
    )"


The bug in my opinion lies in the fact that there seems to be no stable way to have sys-libs/libcxxabi with -static-libs.

I tried this:
1) unmerge sys-libs/libcxxabi and sys-libs/libunwind. 
2) set USE -static-libs for sys-libs/zlib, sys-libs/libcxxabi and sys-libs/libunwind
3) emerge -1 sys-libs/zlib
4) emerge -1 sys-libs/libunwind
5) emerge -1 sys-libs/libcxxabi

This worked. But when doing an emerge -DuNav after that, it went back to requiring static-libs for sys-libs/libcxxabi
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2021-02-07 06:45:51 UTC
(In reply to Markus Wernig from comment #3)
> Hm, I'd say it's the same behaviour.
> 
> In both cases sys-libs/libcxxabi-11.0.0-1 tries to pull in
> sys-libs/llvm-libunwind-11.0.0[static-libs], because
> sys-libs/libunwind-1.5.0-r1 now has -static-libs, while
> sys-libs/libunwind-1.5.0, which was installed before, has static-libs and
> thus fulfilled the dependency from sys-libs/libcxxabi:
> 
> RDEPEND="
>     libunwind? (
>         || (
>             >=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}]
>            
> >=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,${MULTILIB_USEDEP}]
>         )
>     )"
> 
> 
> The bug in my opinion lies in the fact that there seems to be no stable way
> to have sys-libs/libcxxabi with -static-libs.
> 
> I tried this:
> 1) unmerge sys-libs/libcxxabi and sys-libs/libunwind. 
> 2) set USE -static-libs for sys-libs/zlib, sys-libs/libcxxabi and
> sys-libs/libunwind
> 3) emerge -1 sys-libs/zlib
> 4) emerge -1 sys-libs/libunwind
> 5) emerge -1 sys-libs/libcxxabi
> 
> This worked. But when doing an emerge -DuNav after that, it went back to
> requiring static-libs for sys-libs/libcxxabi

I think you need sys-libs/llvm-libunwind -static-libs.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2021-02-07 06:58:42 UTC
I brought in sync libunwind and llvm-libunwind to USE=-static-libs in https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=813d3bab893e257e2315cb9ba1c96dbb3c359179

I think nothing should pull in USE=static-libs for them by default.

*** This bug has been marked as a duplicate of bug 760504 ***
Comment 6 Markus Wernig 2021-02-07 12:30:57 UTC
sys-libs/llvm-libunwind and sys-libs/libunwind cannot be installed at the same time: sys-libs/llvm-libunwind ebuild has RDEPEND="!sys-libs/libunwind"

Either one gets pulled in with static-libs by sys-libs/libcxxabi, which enforces static-libs because sys-libs/libcxx depends on it, which also has static-libs enabled by default.

So there seems to be an entire chain of packages that depend on each other, and some of them have static-libs enabled by default, while for one of them (sys-libs/libunwind) that default was recently changed.

So we can either try to figure out all those packages and manually override their default by setting -static-libs in package.use, or just override static-libs for sys-libs/libunwind. From a user perspective, the second one is more straight-forward.

Or you do that for us and change the default for all those packages already in the ebuilds, of course :-)