Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 698120 - mail-client/thunderbird causes LLVM lld to bounce between versions
Summary: mail-client/thunderbird causes LLVM lld to bounce between versions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-20 16:19 UTC by Evan Teran
Modified: 2019-10-21 19:59 UTC (History)
0 users

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 Evan Teran 2019-10-20 16:19:26 UTC
So, as a developer that likes to test with multiple compilers, I have several versions of clang/llvm installed.

Unfortunately, the thunderbird package wants to switch versions pretty much every time I do: emerge -auDN @world.

Currently, I have lld-9.0.0 installed, and I see lines like this:

[ebuild     UD ] sys-devel/lld-8.0.1 [9.0.0]

But if I let that go through and downgrade lld, then in a subsequent world update, it'll try to upgrade it again to 9.0.0.

This is a relatively recent issue.

Reproducible: Always




emerge --info
Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop, gcc-9.2.0, glibc-2.29-r2, 5.2.19-gentoo x86_64)
=================================================================
System uname: Linux-5.2.19-gentoo-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-gentoo-2.6
KiB Mem:    32585892 total,  20820904 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Sun, 20 Oct 2019 16:00:01 +0000
Head commit of repository gentoo: f6e82d19a8207e3a53fc06d71071e073934f30f5
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
ccache version 3.7.2 [disabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/ccache:          3.7.2::gentoo
dev-util/cmake:           3.14.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            8.3.0-r1::gentoo, 9.2.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

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

gentoo-overlay
    location: /home/eteran/projects/gentoo-overlay
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -O2 -finline-functions -ftree-vectorize -fipa-cp-clone -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf /usr/share/sddm/scripts/Xsetup"
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="-march=skylake -O2 -finline-functions -ftree-vectorize -fipa-cp-clone -pipe -ggdb"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --exclude=sys-kernel/gentoo-sources"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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="-march=skylake -O2 -finline-functions -ftree-vectorize -fipa-cp-clone -pipe -ggdb"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=skylake -O2 -finline-functions -ftree-vectorize -fipa-cp-clone -pipe -ggdb"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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 alsa alsa-plugin amd64 apache2 autotools berkdb binary-drivers bluetooth branding bzip2 cairo cdda cgroups clang clangcodemodel clangstaticanalyzer cli cmake consolekit cppcheck crypt cups cxx dbus display-manager dns dri dri3 dts dvd dvdr elfutils emboss encode evdev exif fam farstream ffmpeg flac fontconfig fortran frei0r fuse gdbm gif git glamor gpm graph grub gstreamer http2 iconv icu inotify inspector ipv6 javafx jpeg json jumbo-build kde kdenlive lapack lcms ldap libnotify libtirpc llvm lm_sensors logrotate lz4 lzma mad melt minizip mng mp3 mp4 mpeg multilib mysql mysqli ncurses networkmanager nls nptl ogg opengl openmp otr pam pango pcre pdf php pm-utils png policykit postproc ppds pulseaudio python qt5 readline samba scripttools sdl seccomp sodium spell split-usr sqlite ssl startup-notification svg tcpd theora tiff tools truetype udev udisks unicode upower usb uuid v4l valgrind vorbis wallpapers widgets wifi winbind wireless wxwidgets x264 xattr xcb xml xv xvid zenmap zeroconf zip zlib" ABI_X86="64" 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" 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="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="evdev wacom keyboard mouse libinput synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="arm x86_64 mips" QEMU_USER_TARGETS="arm x86_64 mips" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965 nvidia" 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, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2019-10-20 17:19:46 UTC
How do you "switch"? Keep in mind that you are on amd64 (stable). clang/llvm-9 is not stable. So when you want to play with -9* stuff you have to keyword *everything* from that family. It's your responsibility to ensure that all requirements are satisfied. You are seeing downgrades because you haven't keyworded all required stuff. Now portage is forced to get at least one working clang/llvm environment set up. And for amd64 this is -8* at the moment...

You can't mix sys-devel/llvm, sys-devel/lld, sys-devel/clang... versions. When you want to use version 9.x you have to use version 9 for the _complete family_.
Comment 2 Evan Teran 2019-10-20 21:50:57 UTC
Well, the packages are slotted, so that means that they should be able to coexist at the same time, right?

I have the following package.keywords for clang/llvm:

=sys-devel/clang-9*                 ~amd64
=sys-devel/clang-common-9*          ~amd64
=sys-devel/clang-runtime-9*         ~amd64
=sys-devel/lld-9*                   ~amd64
=sys-devel/llvm-9*                  ~amd64
=sys-devel/llvm-common-9*           ~amd64
=sys-devel/llvmgold-9               ~amd64
=sys-libs/compiler-rt-9*            ~amd64
=sys-libs/compiler-rt-sanitizers-9* ~amd64
=sys-libs/libcxx-9*                 ~amd64
=sys-libs/libcxxabi-9*              ~amd64
=sys-libs/libomp-9*                 ~amd64

Which I believe covers all of the 9.x needs.

The way that I "switch", is by invoking directly, clang++-8, clang++-9, etc.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2019-10-21 00:42:17 UTC
> Well, the packages are slotted, so that means that they should be able to coexist at the same time, right?

Sure but have to make sure that you keyworded complete depgraph.

Run ebuild through `ebuild` command, i.e.

$ cd /var/db/repos/gentoo/mail-client/thunderbird
$ ebuild thunderbird-68.1.2.ebuild clean configure

You will get a message why slot 9 for example was ignored.
Comment 4 Evan Teran 2019-10-21 18:39:44 UTC
OK, I see what the problem is.

I'm using stable thunderbird-60.9.0, which doesn't account for clang-9. I'll bump thunderbird to the latest, it looks like it should handle it correctly.

Thanks for your time.
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2019-10-21 19:58:43 UTC
Oh, I forgot that thunderbird-60.x also uses clang. Will backport https://gitweb.gentoo.org/repo/gentoo.git/commit/mail-client/thunderbird?id=fae350e462db530ef871b04a5f335d3bd4ce2474. Thanks.
Comment 6 Larry the Git Cow gentoo-dev 2019-10-21 19:59:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5895431ddf8fbab3f4e7a6ccb6ccbacf567ab5a

commit d5895431ddf8fbab3f4e7a6ccb6ccbacf567ab5a
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-10-21 19:59:14 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-10-21 19:59:34 +0000

    mail-client/thunderbird: allow LLVM 9.x
    
    Closes: https://bugs.gentoo.org/698120
    Package-Manager: Portage-2.3.77, Repoman-2.3.17
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 mail-client/thunderbird/thunderbird-60.9.0.ebuild | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)