Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933495 - www-client/firefox build fails with rust 1.78.0: platform_intrinsics: feature has been removed
Summary: www-client/firefox build fails with rust 1.78.0: platform_intrinsics: feature...
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: 2024-06-03 21:01 UTC by Konstantin Sobolev
Modified: 2024-06-11 05:01 UTC (History)
2 users (show)

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


Attachments
firefox-126.0.1 build.log (build.log.gz,235.76 KB, application/gzip)
2024-06-03 21:02 UTC, Konstantin Sobolev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Sobolev 2024-06-03 21:01:41 UTC
both firefox-115.11.0 and 126.0.1 fail with 

    8 0:20.79 error[E0557]: feature has been removed
    8 0:20.79    --> /var/tmp/portage/www-client/firefox-115.11.0/work/firefox-115.11.0/third_party/rust/packed_simd/src/lib.rs:218:5
    8 0:20.79     |
    8 0:20.79 218 |     platform_intrinsics,
    8 0:20.79     |     ^^^^^^^^^^^^^^^^^^^ feature has been removed
    8 0:20.79     |
    8 0:20.79     = note: SIMD intrinsics use the regular intrinsics ABI now

there are more errors after it. Full build log attached

Portage 3.0.63 (python 3.12.3-final-0, default/linux/amd64/23.0/desktop/plasma, gcc-14, glibc-2.39-r6, 6.6.30-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-6.6.30-gentoo-x86_64-x86_64-AMD_Ryzen_9_5900X_12-Core_Processor-with-glibc2.39
KiB Mem:    65782416 total,  18469512 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 03 Jun 2024 17:00:00 +0000
Head commit of repository gentoo: 767f77e083609b7feea866cee66697b22e396e7e
Timestamp of repository Case_Of: Sun, 26 May 2024 11:05:10 +0000
Head commit of repository Case_Of: 60767698a77583736bacd2a9105171d25c1a4d3f

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
distcc 3.4 x86_64-pc-linux-gnu [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.0-r1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           3.11.9::gentoo, 3.12.3::gentoo
dev-lang/rust:             1.77.1::gentoo
dev-lang/rust-bin:         1.78.0::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             14.1.1_p20240518::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::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-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes

Case_Of
    location: /var/db/repos/Case_Of
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/Case_Of.git
    masters: gentoo
    volatile: False

crossdev
    location: /var/db/repos/localrepo-crossdev
    masters: gentoo
    priority: 10
    volatile: False

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs=24 --load-average=24"
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="-O2 -pipe -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ https://mirror.leaseweb.com/gentoo/ http://gentoo.gossamerhost.com"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en ru"
MAKEOPTS="-j24"
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="X a52 aac acl acpi activities alsa amd64 branding bzip2 cairo cdda cet crypt cups dbus declarative device-mapper djvu dri dts dvd dvdr elogind encode evdev exif ffmpeg flac fontconfig gdbm gif git glamor gpm graphite gtk gtk2 gui iconv icu initramfs inotify ipv6 jpeg kde kdesu kwallet lcms libnotify libtirpc lm-sensors lspclient lvm mad matroska metalink mng mp3 mp4 mpeg mpris mtp multilib ncurses networkmanager nls offensive ogg opengl openmp pam pango pcre pdf pgo pipewire plasma png policykit postproc ppds pulseaudio python qml qt5 raw readline samba screencast sdl seccomp semantic-desktop sftp sound spell ssh ssl sslv2 sslv3 startup-notification svg systray terminal test-rust tiff touchpad truetype udev udisks unicode upower usb vim-syntax vorbis vulkan wayland widgets wifi wxwidgets x264 x265 xattr xcb xft xinerama xml xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="aggregation python cpu rrdtool" CPU_FLAGS_X86="abm adx aes avx avx2 bmi bmi2 lflushopt clwb clzero cx16 f16c fma fma3 fsgsbase fxsr lzcnt mmx mmxext movbe mwaitx pclmul popcnt pku prfchw rdpid rdrand rdseed sahf sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-32 efi-64 pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_12 python3_11" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="nvidia virtualbox" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Konstantin Sobolev 2024-06-03 21:02:28 UTC
Created attachment 895015 [details]
firefox-126.0.1 build.log
Comment 2 cyrillic 2024-06-04 01:30:34 UTC
Same problem (and solution) as bug 933372
Comment 3 Joonas Niilola gentoo-dev 2024-06-04 06:06:12 UTC
Have you done something weird to bypass the ebuild rust restriction? The ebuild should force usage of a working rust implementation. So undo whatever you did and try again.
Comment 4 Konstantin Sobolev 2024-06-04 15:46:32 UTC
No, I didn't do anything to the ebuild
Comment 5 Joonas Niilola gentoo-dev 2024-06-04 15:52:11 UTC
I see,

dev-lang/rust:             1.77.1::gentoo
dev-lang/rust-bin:         1.78.0::gentoo

Hmm so I guess it's still possible to have different versions installed like this and fulfill the requirements.
Comment 6 cyrillic 2024-06-05 01:15:41 UTC
I don't know of a way for the ebuild to choose which rust implementation is used when more than one is installed.

Perhaps it would be good for rust and rust-bin to block each other so that this situation could be avoided.
Comment 7 Konstantin Sobolev 2024-06-05 01:38:59 UTC
yeah, unmerging dev-lang/rust-bin-1.78.0 has fixed it
Comment 8 Larry the Git Cow gentoo-dev 2024-06-11 05:01:32 UTC
The bug has been closed via the following commit(s):

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

commit ffa7da20cc3e9cb6d024de944f95c0a216cff8ad
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2024-06-11 05:01:00 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-06-11 05:01:00 +0000

    www-client/firefox: add 127.0
    
    Closes: https://bugs.gentoo.org/933702
    Closes: https://bugs.gentoo.org/933869
    Closes: https://bugs.gentoo.org/933495
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/Manifest             |  101 +++
 www-client/firefox/firefox-127.0.ebuild | 1417 +++++++++++++++++++++++++++++++
 2 files changed, 1518 insertions(+)