Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 955990 - www-client/firefox-138.0.3 fails to build on arm64 with clang
Summary: www-client/firefox-138.0.3 fails to build on arm64 with clang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-15 10:49 UTC by James Calligeros
Modified: 2025-05-15 15:54 UTC (History)
1 user (show)

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


Attachments
build.log (build.log.xz,605.53 KB, application/x-xz)
2025-05-15 10:53 UTC, James Calligeros
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Calligeros 2025-05-15 10:49:23 UTC
Firefox fails to build on arm64, seemingly due to issues with the vendored highway NEON routines

Reproducible: Always

Steps to Reproduce:
1. Try to build Firefox 138.0.3 on an arm64 device with clang
2. Observe that many errors referencing highway's NEON routines are generated
Actual Results:  
Build fails

Expected Results:  
Build succeeds

Portage 3.0.68 (python 3.13.3-final-0, default/linux/arm64/23.0/desktop/plasma/systemd, gcc-15, glibc-2.41-r2, 6.14.4-asahi-1 aarch64)
=================================================================
System uname: Linux-6.14.4-asahi-1-aarch64-with-glibc2.41
KiB Mem:    32720784 total,   6755568 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Thu, 15 May 2025 07:15:01 +0000
Head commit of repository gentoo: 9de0c8f02fe06028a5871605844292224ffd143f
Head commit of repository asahi: 92bd14a8832d9fecff8fddd3feeda9f56dc09db7

Timestamp of repository kde: Fri, 10 Jan 2025 18:03:50 +0000
Head commit of repository kde: 2b46ace6e6a22b2d9f69f78056d71b1f77a207b0

sh bash 5.2_p37-r3
ld GNU ld (Gentoo 2.44 p1) 2.44.0
distcc 3.4 aarch64-unknown-linux-gnu [disabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37-r3::gentoo
dev-build/autoconf:        2.72-r1::gentoo
dev-build/automake:        1.17-r2::gentoo
dev-build/cmake:           3.31.7-r1::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.8.0::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.2::gentoo
dev-lang/python:           3.13.3::gentoo, 3.13.3-r100::gentoo, 3.14.0_beta1::gentoo
dev-lang/rust-bin:         1.86.0-r1::gentoo
llvm-core/clang:           19.1.7::gentoo, 20.1.4::gentoo
llvm-core/lld:             19.1.7::gentoo, 20.1.4::gentoo
llvm-core/llvm:            19.1.7::gentoo, 20.1.4::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-apps/systemd:          257.5::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             15.1.0::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.14::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r2::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-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

asahi
    location: /home/james/asahi/asahi-overlay
    sync-type: git
    sync-uri: https://github.com/chadmed/asahi-overlay
    masters: gentoo
    volatile: True

crossdev
    location: /var/db/repos/crossdev
    masters: gentoo
    volatile: False

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

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/arm64/binpackages/17.0/arm64

ACCEPT_KEYWORDS="arm64 ~arm64"
ACCEPT_LICENSE="@FREE"
AR="llvm-ar"
CBUILD="aarch64-unknown-linux-gnu"
CC="clang"
CFLAGS="-mcpu=apple-m2 -fPIC -O3 -pipe -mbranch-protection=standard -flto=thin"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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"
CXX="clang++"
CXXFLAGS="-mcpu=apple-m2 -fPIC -O3 -pipe -mbranch-protection=standard -flto=thin"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="-a --jobs=6 --load-average=12 --keep-going=y"
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="-O3 -fPIC -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks export-pms-vars fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -fPIC -pipe"
GENTOO_MIRRORS="https://mirror.aarnet.edu.au/pub/gentoo/"
LANG="en_AU.utf8"
LDFLAGS="-fuse-ld=lld -unwindlib=libunwind -rtlib=compiler-rt -Wl,--as-needed          -Wl,-O3 -pie -Wl,-zrelro -Wl,-zpack-relative-relocs -Wl,--undefined-version"
LEX="flex"
MAKEOPTS="-j12 -l12"
NM="llvm-nm"
OBJCOPY="llvm-objcopy"
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"
RANLIB="llvm-ranlib"
RUSTFLAGS="-C opt-level=3 -C target-cpu=apple-m2"
SHELL="/bin/bash"
USE="a52 aac acl acpi activities alsa arm64 avahi bluetooth branding bzip2 cairo cdda cdr clang crypt cups dbus declarative dri dts dvdr encode exif flac gdbm gif gpm gui iconv icu ipv6 iwd jpeg kde kf6compat kwallet lcms libnotify libtirpc libunwind lv2 mad mng mp3 mp4 mpeg ncurses networkmanager nls ogg opengl pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt6 readline samba screencast sdl seccomp semantic-desktop sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb v4l v4l2 vorbis vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv xvid zeroconf zlib zstd" ADA_TARGET="gcc_14" 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_ARM="edsp neon vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v8" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" 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="postgres17" PYTHON_SINGLE_TARGET="python3_13" PYTHON_TARGETS="python3_13" QEMU_USER_TARGETS="aarch64" RUBY_TARGETS="ruby32" VIDEO_CARDS="asahi honeykrisp virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, ARFLAGS, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 James Calligeros 2025-05-15 10:53:53 UTC
Created attachment 928846 [details]
build.log
Comment 2 Larry the Git Cow gentoo-dev 2025-05-15 15:54:13 UTC
The bug has been closed via the following commit(s):

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

commit 29d3c228fb860b14954e2c23074d9865680a60e0
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2025-05-15 15:53:07 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2025-05-15 15:54:10 +0000

    www-client/firefox: update jpeg-xl patch on 138.0.3
    
    The previous patch wasn't complete enough, and jxl support got enabled by some
    condition in all cases. It is properly controlled by the "jpeg-xl" use flag
    now. If you built 138.0.3 succesfully before this update, you should have jxl
    support in your Firefox. Enable it via "image.jxl.enabled" about:config setting.
    
    Closes: https://bugs.gentoo.org/955990
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/Manifest               | 2 +-
 www-client/firefox/firefox-138.0.3.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)