Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 933372 - dev-lang/spidermonkey-115.11.0 fails to build with dev-lang/rust-1.78.0: firefox-115.11.0/third_party/rust/packed_simd/src/lib.rs:218:5 platform_intrinsics feature has been removed
Summary: dev-lang/spidermonkey-115.11.0 fails to build with dev-lang/rust-1.78.0: fire...
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-01 16:37 UTC by Johannes Penßel
Modified: 2024-06-03 04:59 UTC (History)
4 users (show)

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


Attachments
build log (dev-lang:spidermonkey-115.11.0:20240601-160524.log,705.69 KB, text/x-log)
2024-06-01 16:37 UTC, Johannes Penßel
Details
build.log (build.log.xz,135.70 KB, application/x-xz)
2024-06-02 21:53 UTC, Alex Buell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Penßel 2024-06-01 16:37:34 UTC
Created attachment 894874 [details]
build log

dev-lang/spidermonkey depends on the third-party crate "packed_simd", which is no longer actively maintained. It is not possible to build this crate with rust-1.78.0 and higher. Upstream issue:

https://github.com/rust-lang/packed_simd/issues/360

Currently, spidermonkey-115.11.0.ebuild only restricts to <dev-lang/rust-1.78.0 if USE=clang is disabled. The build fails even if this requirement is satisfied.
Comment 1 Johannes Penßel 2024-06-01 16:38:31 UTC
Portage 3.0.64 (python 3.12.3-final-0, default/linux/amd64/23.0/no-multilib/systemd, gcc-14, glibc-2.39-r7, 6.9.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.9.3-gentoo-x86_64-12th_Gen_Intel-R-_Core-TM-_i5-1240P-with-glibc2.39
KiB Mem:    32706096 total,  15143984 free
KiB Swap:   25165816 total,  25165816 free
Timestamp of repository gentoo: Sat, 01 Jun 2024 15:03:59 +0000
Head commit of repository gentoo: c72a613ead71f45fdccbb77d0e7530463f8a2afb

Timestamp of repository guru: Fri, 31 May 2024 15:18:48 +0000
Head commit of repository guru: 1996569124791d0f391d60f140545afde3ef3840

Timestamp of repository steam-overlay: Mon, 20 May 2024 17:23:25 +0000
Head commit of repository steam-overlay: 3aa8d3201d7bce32a1a0fffdf4afd9dbd0583048

sh bash 5.2_p26-r3
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r3::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.29.3::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-lang/perl:             5.38.2-r6::gentoo
dev-lang/python:           3.11.9-r1::gentoo, 3.12.3-r1::gentoo
dev-lang/rust:             1.78.0::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.7::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo, 18.1.6::gentoo
sys-devel/gcc:             14.1.1_p20240518::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo, 18.1.6::gentoo
sys-devel/llvm:            17.0.6::gentoo, 18.1.6::gentoo
sys-kernel/linux-headers:  6.9::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r7::gentoo
Repositories:

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

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

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

local
    location: /var/db/repos/local
    masters: gentoo
    priority: 10
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -Wall -g1 -fno-omit-frame-pointer -march=x86-64-v3 -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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 -Wall -g1 -fno-omit-frame-pointer -march=x86-64-v3 -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --binpkg-respect-use=y --with-bdeps=y --rebuilt-binaries=y --buildpkg-exclude 'acct-*/* sys-kernel/*-sources virtual/* */*-bin sec-keys/*'"
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"
F77FLAGS="-O2 -pipe -Wall -g1 -fno-omit-frame-pointer -march=x86-64-v3 -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
FCFLAGS="-O2 -pipe -Wall -g1 -fno-omit-frame-pointer -march=x86-64-v3 -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news nodoc noinfo parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -Wall -g1 -fno-omit-frame-pointer -march=x86-64-v3 -flto=auto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="/usr/share/locale/a* /usr/share/locale/b* /usr/share/locale/c* /usr/share/locale/da* /usr/share/locale/dv* /usr/share/locale/dz* /usr/share/locale/ee* /usr/share/locale/el* /usr/share/locale/en_C* /usr/share/locale/en_A* /usr/share/locale/eo* /usr/share/locale/es* /usr/share/locale/et* /usr/share/locale/eu* /usr/share/locale/f* /usr/share/locale/g* /usr/share/locale/h* /usr/share/locale/i* /usr/share/locale/j* /usr/share/locale/k* /usr/share/locale/la /usr/share/locale/lg /usr/share/locale/li /usr/share/locale/ln /usr/share/locale/lo /usr/share/locale/lt* /usr/share/locale/lv* /usr/share/locale/m* /usr/share/locale/n* /usr/share/locale/o* /usr/share/locale/p* /usr/share/locale/q* /usr/share/locale/r* /usr/share/locale/s* /usr/share/locale/t* /usr/share/locale/u* /usr/share/locale/v* /usr/share/locale/w* /usr/share/locale/x* /usr/share/locale/y* /usr/share/locale/z* /usr/share/man/a* /usr/share/man/b* /usr/share/man/c* /usr/share/man/da* /usr/share/man/es* /usr/share/man/f* /usr/share/man/h* /usr/share/man/i* /usr/share/man/j* /usr/share/man/p* /usr/share/man/r* /usr/share/man/t*"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--build-id=sha1"
LEX="flex"
LINGUAS="en en_GB en_US de de_DE"
MAKEOPTS="-j16"
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"
RUSTFLAGS="-Ctarget-cpu=x86-64-v3 -Clink-arg=-Wl,-z,pack-relative-relocs -Clink-arg=-Wl,--build-id=sha1 -Copt-level=3 -Cdebuginfo=1 -Cforce-frame-pointers=yes -Ccodegen-units=1"
SHELL="/bin/zsh"
USE="X a52 aac acl acpi alsa amd64 apparmor audit bluetooth branding bzip2 cairo caps cdda cdr cet colord crypt cups dbus dri dts dvd dvdr eds encode evo exif flac flatpak gdbm gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gui iconv icu introspection io-uring ios ipv6 jpeg jpegxl keyring lcms libnotify libtirpc lto mad mng mp3 mp4 mpeg nautilus ncurses networkmanager nls ogg opencl opengl openmp pam pango pcre pdf pgo pipewire png policykit ppds pulseaudio readline sdl seccomp secureboot sound spell ssl startup-notification stemmer svg sysprof systemd test-rust tiff tpm tracker truetype udev udisks uki ukify unicode unwind upower usb vaapi verify-sig vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid 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="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" 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-64 pc coreboot" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US en-GB de de-DE" 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_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby33" VIDEO_CARDS="amdgpu intel radeonsi" 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, FC, GCOV, GPROF, 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, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 cyrillic 2024-06-01 17:00:49 UTC
The easy fix is to just comment-out that part from src_configure()

        #if ! use x86 && [[ ${CHOST} != armv*h* ]] ; then
        #       mozconfig_add_options_ac '' --enable-rust-simd
        #fi

I do this for firefox and spidermonkey, and then rust-1.78 works just fine.
Comment 3 Larry the Git Cow gentoo-dev 2024-06-02 05:06:20 UTC
The bug has been closed via the following commit(s):

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

commit 91e98551c62d8d9987c8403c0c76309d4ed0f4b4
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2024-06-02 05:05:31 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-06-02 05:05:31 +0000

    dev-lang/spidermonkey: disable rust-simd on 115.11.0
    
     - we always end up disabling rust-simd at some point due to it always
       breaking with newer rust versions.
    
    Closes: https://bugs.gentoo.org/933372
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-lang/spidermonkey/spidermonkey-115.11.0.ebuild | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-02 21:44:23 UTC
A user was confused because it was the same revision and it made me realise that while they were confused, we probably should revbump in future for this. It changes the installed code and it may well e.g. regress performance.

Is it worth it to work with newer Rust? Yes, probably, but it's confusing if the same version behaves differently based on when you built it (=> should revbump).

(Also, can we drop the <virtual/rust-1.78 dep with that change now?)
Comment 5 Alex Buell 2024-06-02 21:53:24 UTC
Created attachment 894966 [details]
build.log
Comment 6 Alex Buell 2024-06-02 22:50:53 UTC
(In reply to Alex Buell from comment #5)
> Created attachment 894966 [details]
> build.log

Never mind, it was pointed out I was dancing with the wolves using rust 1.78.0. All sorted now, thanks, using stable rust-bin.
Comment 7 Joonas Niilola gentoo-dev 2024-06-03 04:59:21 UTC
(In reply to Sam James from comment #4)
> A user was confused because it was the same revision and it made me realise
> that while they were confused, we probably should revbump in future for
> this. It changes the installed code and it may well e.g. regress performance.
> 
> Is it worth it to work with newer Rust? Yes, probably, but it's confusing if
> the same version behaves differently based on when you built it (=> should
> revbump).

Correct, but I'd argue you want rust-simd enabled if possible. I get your point though, and SM isn't really a big package to compile unless you enable tests.


> 
> (Also, can we drop the <virtual/rust-1.78 dep with that change now?)

It was dropped in a follow-up commit - just forgot tag this bug with it.