Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 830923 - www-client/firefox-95.0.1-r1: cannot build with pgo, LLVM error
Summary: www-client/firefox-95.0.1-r1: cannot build with pgo, LLVM error
Status: RESOLVED UPSTREAM
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-01-10 14:11 UTC by Vitaly Zdanevich
Modified: 2023-07-05 07:54 UTC (History)
1 user (show)

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


Attachments
build.log Firefox 96 with clang (build.log.7z,831.56 KB, application/x-7z-compressed)
2022-01-12 15:58 UTC, Vitaly Zdanevich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Zdanevich 2022-01-10 14:11:17 UTC
Tail of the build log:

114:11.55 ld.lld: warning: Linking two modules of different target triples: '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/toolkit/library/build/../../../layout/style/Unified_cpp_layout_style4.o' is 'x86_64-pc-linux-gnu' whereas '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/x86_64-unknown-linux-gnu/release/libgkrust.a(style-f04672e24120959a.style.25050218-cgu.0.rcgu.o at 128573986)' is 'x86_64-unknown-linux-gnu'
114:11.58 ld.lld: warning: Linking two modules of different target triples: '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/toolkit/library/build/../../../layout/xul/Unified_cpp_layout_xul1.o' is 'x86_64-pc-linux-gnu' whereas '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/x86_64-unknown-linux-gnu/release/libgkrust.a(style-f04672e24120959a.style.25050218-cgu.0.rcgu.o at 128573986)' is 'x86_64-unknown-linux-gnu'
114:11.60 ld.lld: warning: Linking two modules of different target triples: '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/toolkit/library/build/../../../modules/libpref/Unified_cpp_modules_libpref0.o' is 'x86_64-pc-linux-gnu' whereas '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/x86_64-unknown-linux-gnu/release/libgkrust.a(style-f04672e24120959a.style.25050218-cgu.0.rcgu.o at 128573986)' is 'x86_64-unknown-linux-gnu'
114:11.61 ld.lld: warning: Linking two modules of different target triples: '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/toolkit/library/build/../../../parser/htmlparser/Unified_cpp_parser_htmlparser0.o' is 'x86_64-pc-linux-gnu' whereas '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/x86_64-unknown-linux-gnu/release/libgkrust.a(style-f04672e24120959a.style.25050218-cgu.0.rcgu.o at 128573986)' is 'x86_64-unknown-linux-gnu'
114:11.63 ld.lld: warning: Linking two modules of different target triples: '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/toolkit/library/build/../../../tools/profiler/Unified_cpp_tools_profiler0.o' is 'x86_64-pc-linux-gnu' whereas '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/x86_64-unknown-linux-gnu/release/libgkrust.a(style-f04672e24120959a.style.25050218-cgu.0.rcgu.o at 128573986)' is 'x86_64-unknown-linux-gnu'
114:11.64 ld.lld: warning: Linking two modules of different target triples: '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/toolkit/library/build/../../../xpcom/ds/Unified_cpp_xpcom_ds0.o' is 'x86_64-pc-linux-gnu' whereas '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/x86_64-unknown-linux-gnu/release/libgkrust.a(style-f04672e24120959a.style.25050218-cgu.0.rcgu.o at 128573986)' is 'x86_64-unknown-linux-gnu'
114:11.65 ld.lld: warning: Linking two modules of different target triples: '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/toolkit/library/build/../../../xpcom/ds/Unified_cpp_xpcom_ds1.o' is 'x86_64-pc-linux-gnu' whereas '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/x86_64-unknown-linux-gnu/release/libgkrust.a(style-f04672e24120959a.style.25050218-cgu.0.rcgu.o at 128573986)' is 'x86_64-unknown-linux-gnu'
114:11.66 ld.lld: warning: Linking two modules of different target triples: '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/toolkit/library/build/../../../xpcom/string/Unified_cpp_xpcom_string0.o' is 'x86_64-pc-linux-gnu' whereas '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/x86_64-unknown-linux-gnu/release/libgkrust.a(style-f04672e24120959a.style.25050218-cgu.0.rcgu.o at 128573986)' is 'x86_64-unknown-linux-gnu'
114:50.58 ld.lld: warning: Linking two modules of different target triples: '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/x86_64-unknown-linux-gnu/release/libgkrust.a(nsstring-8011e0c0045e868f.nsstring.6b326450-cgu.0.rcgu.o at 158258314)' is 'x86_64-unknown-linux-gnu' whereas '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/toolkit/library/build/../../../dom/media/Unified_cpp_dom_media2.o' is 'x86_64-pc-linux-gnu'
115:09.42 LLVM ERROR: Cannot select: intrinsic %llvm.x86.aesni.aesenc
115:09.42 PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
115:09.42 Stack dump:
115:09.42 0.	Running pass 'Function Pass Manager' on module '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/x86_64-unknown-linux-gnu/release/libgkrust.a(wgpu_hal-c6e346897e5c03de.wgpu_hal.ed2f4fe8-cgu.0.rcgu.o at 22003878)'.
115:09.42 1.	Running pass 'X86 DAG->DAG Instruction Selection' on function '@"_ZN9hashbrown3raw5inner17RawTable$LT$T$GT$14reserve_rehash17ha4764dca237dc774E"'
115:09.46  #0 0x00007f388fc82472 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x8b4472)
115:09.46  #1 0x00007f388fc80024 llvm::sys::RunSignalHandlers() (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x8b2024)
115:09.46  #2 0x00007f388fc801a6 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x8b21a6)
115:09.46  #3 0x00007f388f01a6c0 (/lib64/libc.so.6+0x386c0)
115:09.47  #4 0x00007f388f01a63e raise (/lib64/libc.so.6+0x3863e)
115:09.47  #5 0x00007f388f004536 abort (/lib64/libc.so.6+0x22536)
115:09.47  #6 0x00007f388fbc1caa llvm::report_fatal_error(llvm::Twine const&, bool) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x7f3caa)
115:09.47  #7 0x00007f388fbc1e2e (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x7f3e2e)
115:09.47  #8 0x00007f389048963a llvm::SelectionDAGISel::CannotYetSelect(llvm::SDNode*) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x10bb63a)
115:09.47  #9 0x00007f389048d233 llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*, unsigned char const*, unsigned int) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x10bf233)
115:09.47 #10 0x00007f389187b96e (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x24ad96e)
115:09.47 #11 0x00007f3890488227 llvm::SelectionDAGISel::DoInstructionSelection() (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x10ba227)
115:09.47 #12 0x00007f3890490b8b llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x10c2b8b)
115:09.47 #13 0x00007f3890493963 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x10c5963)
115:09.47 #14 0x00007f389049583e llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x10c783e)
115:09.47 #15 0x00007f3891885de9 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x24b7de9)
115:09.47 #16 0x00007f388fffd19f (/usr/lib/llvm/13/lib64/libLLVM-13.so+0xc2f19f)
115:09.47 #17 0x00007f388fdb6db3 llvm::FPPassManager::runOnFunction(llvm::Function&) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x9e8db3)
115:09.47 #18 0x00007f388fdb6fc3 llvm::FPPassManager::runOnModule(llvm::Module&) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x9e8fc3)
115:09.47 #19 0x00007f388fdb7754 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x9e9754)
115:09.47 #20 0x00007f3891212710 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x1e44710)
115:09.47 #21 0x00007f389121330f (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x1e4530f)
115:09.47 #22 0x00007f3891213f33 llvm::lto::thinBackend(llvm::lto::Config const&, unsigned int, std::function<std::unique_ptr<llvm::lto::NativeObjectStream, std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>, llvm::Module&, llvm::ModuleSummaryIndex const&, llvm::StringMap<std::unordered_set<unsigned long, std::hash<unsigned long>, std::equal_to<unsigned long>, std::allocator<unsigned long> >, llvm::MallocAllocator> const&, llvm::DenseMap<unsigned long, llvm::GlobalValueSummary*, llvm::DenseMapInfo<unsigned long>, llvm::detail::DenseMapPair<unsigned long, llvm::GlobalValueSummary*> > const&, llvm::MapVector<llvm::StringRef, llvm::BitcodeModule, llvm::DenseMap<llvm::StringRef, unsigned int, llvm::DenseMapInfo<llvm::StringRef>, llvm::detail::DenseMapPair<llvm::StringRef, unsigned int> >, std::vector<std::pair<llvm::StringRef, llvm::BitcodeModule>, std::allocator<std::pair<llvm::StringRef, llvm::BitcodeModule> > > >*, std::vector<unsigned char, std::allocator<unsigned char> > const&) (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x1e45f33)
115:09.47 #23 0x00007f38911fb5c8 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x1e2d5c8)
115:09.47 #24 0x00007f38911ff5bb (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x1e315bb)
115:09.47 #25 0x00007f388fc1a921 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x84c921)
115:09.47 #26 0x00007f388fbfa219 (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x82c219)
115:09.47 #27 0x00007f388eef6628 __pthread_once_slow pthread_once.c:0:0
115:09.47 #28 0x00007f388fc1bf7d (/usr/lib/llvm/13/lib64/libLLVM-13.so+0x84df7d)
115:09.47 #29 0x00007f388eeeed4e start_thread pthread_create.c:0:0
115:09.47 #30 0x00007f388f0d9faf __clone (/lib64/libc.so.6+0xf7faf)
115:09.57 clang-13: error: unable to execute command: Aborted
115:09.57 clang-13: error: linker command failed due to signal (use -v to see invocation)
115:09.57 gmake[4]: *** [/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox-95.0.1/config/rules.mk:531: libxul.so] Error 254
115:09.57 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build/toolkit/library/build'
115:09.57 gmake[3]: *** [/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox-95.0.1/config/recurse.mk:72: toolkit/library/build/target] Error 2
115:09.57 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build'
115:09.57 gmake[2]: *** [/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox-95.0.1/config/recurse.mk:34: compile] Error 2
115:09.57 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build'
115:09.57 gmake[1]: *** [/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox-95.0.1/config/rules.mk:352: default] Error 2
115:09.57 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox_build'
115:09.57 gmake: *** [client.mk:63: build] Error 2
115:09.57 146 compiler warnings present.
 * ERROR: www-client/firefox-95.0.1-r1::gentoo failed (compile phase):
 *   Failed to run './mach build --verbose'
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 5216:  Called virtx './mach' 'build' '--verbose'
 *   environment, line 6519:  Called die
 * The specific snippet of code:
 *       [[ ${retval} -ne 0 ]] && die "Failed to run '$@'";
 * 
 * If you need support, post the output of `emerge --info '=www-client/firefox-95.0.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-client/firefox-95.0.1-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-client/firefox-95.0.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-95.0.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox-95.0.1'
 * S: '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox-95.0.1'

>>> Failed to emerge www-client/firefox-95.0.1-r1, Log file:

>>>  '/var/tmp/portage/www-client/firefox-95.0.1-r1/temp/build.log'

 * Messages for package www-client/firefox-95.0.1-r1:

 * ERROR: www-client/firefox-95.0.1-r1::gentoo failed (compile phase):
 *   Failed to run './mach build --verbose'
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 5216:  Called virtx './mach' 'build' '--verbose'
 *   environment, line 6519:  Called die
 * The specific snippet of code:
 *       [[ ${retval} -ne 0 ]] && die "Failed to run '$@'";
 * 
 * If you need support, post the output of `emerge --info '=www-client/firefox-95.0.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-client/firefox-95.0.1-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-client/firefox-95.0.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-95.0.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox-95.0.1'
 * S: '/var/tmp/portage/www-client/firefox-95.0.1-r1/work/firefox-95.0.1'

See answer from LLVM about this issue https://github.com/llvm/llvm-project/issues/53097
Comment 1 Vitaly Zdanevich 2022-01-10 14:11:28 UTC
emerge --info:

Portage 3.0.28 (python 3.9.9-final-0, default/linux/amd64/17.1/no-multilib, gcc-11.2.0, glibc-2.33-r7, 5.15.11-gentoo+ x86_64)
=================================================================
System uname: Linux-5.15.11-gentoo+-x86_64-Intel-R-_Core-TM-_i7-3840QM_CPU_@_2.80GHz-with-glibc2.33
KiB Mem:    16097656 total,  12324292 free
KiB Swap:   15625212 total,  15625212 free
Timestamp of repository gentoo: Mon, 10 Jan 2022 06:15:01 +0000
Head commit of repository gentoo: 521892b1a9fc995d6c5fbd389542b1955e36bb9c
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p8::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           3.9.9-r1::gentoo, 3.10.0_p1-r1::gentoo
dev-lang/rust:             1.56.1::gentoo
dev-util/cmake:            3.21.4::gentoo
dev-util/meson:            0.59.4::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.0::gentoo
sys-devel/gcc:             11.2.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.0::gentoo
sys-devel/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r7::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @FREE ipw3945"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -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"
FCFLAGS="-O2 -march=native -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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="-O2 -march=native -pipe"
GENTOO_MIRRORS="http://ftp.byfly.by/pub/gentoo-distfiles/ http://mirror.yandex.ru/gentoo-distfiles/"
LANG="C.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"
RUSTFLAGS="-C target-cpu=native"
SHELL="/bin/bash"
USE="X acl alsa amd64 bzip2 cli crypt dri elogind eme-free ffmpeg flac fortran gdbm iconv jpeg libglvnd libinput libtirpc lto mp3 ncurses nls nptl opengl openmp opus pam pcre pgo png readline seccomp skins split-usr ssl tiff unicode v4l vaapi vpx webp xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2020" 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 f16c 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="x64" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 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, LINGUAS, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Joonas Niilola gentoo-dev 2022-01-12 08:07:06 UTC
Could you try with 96? Upstream had some llvm related fixes, although nothing that I'd directly link to this. If it doesn't work, can you provide a full build.log? E.g. compressed. 

Does it happen with both USE="clang" and USE="-clang"?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-12 08:24:58 UTC
Would need the full log please, even if compressed as juippis says (note that ansifilter-ing it will reduce the size), but note that this will be a LLVM or Clang bug, not a Firefox bug (just like how a gcc ICE is never the fault of the relevant package, even if it's invalid code).
Comment 4 Vitaly Zdanevich 2022-01-12 15:58:32 UTC
Created attachment 761974 [details]
build.log Firefox 96 with clang
Comment 5 Vitaly Zdanevich 2022-01-12 18:33:26 UTC
With -clang build for 96 is successful.
Comment 6 Henry 2022-01-21 12:59:12 UTC
I can confirm I have been dealing with this error for quite a long time now, can't remember since which firefox version. According to this freebsd bug (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255193), it may be related to the -march=native build option (although I get the same error disabling it). My CPU is a Sandy Bridge core-i7, so maybe the bug only appears in certain old machines and hence is not much frequent nowadays.
Comment 7 Joonas Niilola gentoo-dev 2023-07-05 07:54:47 UTC
Most likely fixed now.