Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 888625 - www-client/firefox-102.6.0: can't be compiled with sys-devel/clang:14, may be due to absence of virtual/rust:0/llvm-14
Summary: www-client/firefox-102.6.0: can't be compiled with sys-devel/clang:14, may be...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-27 10:47 UTC by zhaleks
Modified: 2023-07-19 06:23 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 zhaleks 2022-12-27 10:47:52 UTC
Hello.
Mozilla Firefox and Thunderbird can't be compiled if only sys-devel/clang:14 available.

Reproducible: Always

Steps to Reproduce:
1. Add thees into packages.mask.
>=sys-devel/clang-15
>=sys-devel/clang-common-15
>=sys-devel/clang-runtime-15
>=sys-devel/lld-15
>=sys-devel/llvm-15
>=sys-devel/llvm-common-15
>=sys-devel/llvmgold-15
2. emerge -uDN @world
3. emerge --depclean
4. emerge firefox
Actual Results:  
!!! All ebuilds that could satisfy "sys-devel/clang:15" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-devel/clang-15.0.6.9999::gentoo (masked by: package.mask, missing keyword)
- sys-devel/clang-15.0.6::gentoo (masked by: package.mask)
- sys-devel/clang-15.0.5::gentoo (masked by: package.mask)

(dependency required by "www-client/firefox-102.6.0::gentoo" [ebuild])
(dependency required by "firefox" [argument])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

Expected Results:  
Clean compilation.

Portage 3.0.41 (python 3.10.9-final-0, default/linux/amd64/17.1/desktop, gcc-11, glibc-2.36-r5, 5.15.80-gentoo x86_64)
=================================================================
System uname: Linux-5.15.80-gentoo-x86_64-Intel-R-_Core-TM-_i5-4300U_CPU_@_1.90GHz-with-glibc2.36
KiB Mem:     8048000 total,   2896648 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Mon, 26 Dec 2022 05:15:01 +0000
Head commit of repository gentoo: 771e1e46032df250e26b5b92278d050bc46ec20c
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.9::gentoo
dev-lang/rust-bin:         1.65.0::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.63.2-r1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             11.3.1_p20221209::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
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=x86-64 -O2 -pipe"
DISTDIR="/var/cache/distfiles"
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 XDG_STATE_HOME"
FCFLAGS="-march=x86-64 -O2 -pipe"
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 multilib-strict network-sandbox news 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="-march=x86-64 -O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j6"
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"
SHELL="/bin/bash"
USE="7zip X a52 aac acl acpi alsa amd64 archive bittorrent bluetooth branding btrfs bzip2 cairo cdda cdr cli client context crypt cups dbus dri dts dvd dvdr egl elogind encode exif ffmpeg firmware flac fortran gdbm gif git gles2 gpm gstreamer gtk gtk3 gui harfbuzz iconv icu importers inspector ipv6 jpeg lcms libglvnd libnotify libtirpc logrotate mad minizip mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ntp ogg opengl openmp opus oscar otr pam pango pcre pcsc-lite pdf png policykit postproc ppds pulseaudio rar rdp readline samba scanner script sdl seccomp sip smartcard sna sound spell spice split-usr ssl startup-notification svg synaptics test-rust theora tiff touchpad truetype tty-helpers udev udisks unicode upnp upower usb usbredir utils v4l vaapi vorbis vpx wayland wifi x264 xattr xcb xfce xml xv xvid zip zlib" ABI_X86="64" ADA_TARGET="gnat_2021" ALSA_CARDS="usb-audio hda-intel" 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="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand 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" INPUT_DEVICES="libinput synaptics" KERNEL="linux" L10N="en ru" 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" USERLAND="GNU" VIDEO_CARDS="intel i965" 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:  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, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Joonas Niilola gentoo-dev 2022-12-30 15:39:56 UTC
Yeah, does look like virtual/rust:0/llvm-14 was dropped from the tree :\ it should still work if you provide virtual/rust:0/llvm-14 on your own, e.g. from a local overlay or maybe package.providing it somehow. 

I guess you haven't updated your rust yet either, so you can maybe get past the BDEPEND check by either providing --nodeps to "emerge -uav firefox" or --with-build-deps=n to your "emerge -uavDN world" string.

I'm a bit hesitant to remove the virtual/rust:0/llvm-14 dep from the ebuild because there are people who very reluctantly update their rusts, even though they're usually full of important security fixes. 

And naturally if you just follow the suggested update path without package.masking the toolchain parts, everything should work fine too.
Comment 2 zhaleks 2022-12-31 09:03:15 UTC
Hello.
Thanks for your time.
Sorry, it not connected to the subject directly, but I used to use the Blender.
The Blender depends on media-libs/oidn.
media-libs/oidn depends on dev-lang/ispc, which hardcoded to <sys-devel/clang-15 itself.
So, I've masked whole <sys-devel/clang-15 stack to save compilation time and not to double llvm/clang ...
But that somehow involved whole llvm stack.
So, here some ridiculous chain. :-)
Sorry, I'm not a developer, nor a programmer, just an advanced Linux user, so might not see the whole picture.
I'm not understand why 14 and 15 branches can't be mixed.
And as I can see, this is not the Firefox/Thunderbird issue, rather then clang/llvm stack supporters within the Gentoo.
I've not tried a dummy virtual/rust:0/llvm-14 yet, I've compiled with the gcc, so the issue can be considered as solved, sort of.
How do you think, is that worth to address this issue to the clang/llvm Team?
As I can see lld:14 dependency is dropped too.
Happy upcoming Holidays, stay safe.
Comment 3 zhaleks 2022-12-31 09:04:00 UTC
Rust is up to date.
dev-lang/rust-bin:         1.65.0::gentoo
Comment 4 Joonas Niilola gentoo-dev 2022-12-31 12:22:42 UTC
(In reply to zhaleks from comment #2)

> I'm not understand why 14 and 15 branches can't be mixed.

On a system-level you can mix them, but what's important (and fragile) for Mozilla products is *rust*. The rust version you use has to be compiled with the same llvm stack that you use to compile your browser. So far we have created multiple (poor) workarounds trying to solve this issue in a user-friendly way, but there just doesn't seem to be a "perfect" solution yet. virtual/rust:0/llvm-* is a good one though.

Of course you set the "-clang" use flag to ignore all that. 


> Happy upcoming Holidays, stay safe.

Thanks, and you too!