Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909724 - www-client/firefox-115.0[clang,pgo]: LLVM Profile Error: Failed to write file "default_24387_random_1577311168127381117_0.profraw": Broken pipe
Summary: www-client/firefox-115.0[clang,pgo]: LLVM Profile Error: Failed to write file...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-05 07:15 UTC by Kostadin Shishmanov
Modified: 2024-02-24 07:57 UTC (History)
1 user (show)

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


Attachments
build log compressed with xz (firefox.log.xz,539.57 KB, application/x-xz)
2023-07-05 07:15 UTC, Kostadin Shishmanov
Details
/var/tmp/portage/www-client/firefox-115/temp/environment (environment,237.68 KB, text/plain)
2023-07-05 07:16 UTC, Kostadin Shishmanov
Details
build log compressed with xz (firefox.log.xz,550.78 KB, application/x-xz)
2023-08-01 14:13 UTC, Kostadin Shishmanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kostadin Shishmanov 2023-07-05 07:15:04 UTC
Created attachment 865148 [details]
build log compressed with xz

I am getting a bunch of these errors during the profiling phase of firefox, I think they've started happening with this release, pretty sure I haven't seen them before. I don't know if they are harmless or not, thought i should raise a bug anyway to make sure.

LLVM Profile Error: Failed to write file "default_24387_random_1577311168127381117_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24387_random_2428510905428979370_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24387_random_11209735272486475010_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24387_random_7386420086373065007_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24387_random_1971493760237642638_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24387_random_3426718776489651378_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24387_random_16745329148469669040_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24387_random_15114725186654397647_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24387_random_11839774936309158122_0.profraw": Broken pipe
Comment 1 Kostadin Shishmanov 2023-07-05 07:15:29 UTC
Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr, gcc-13, glibc-2.37-r3, 6.4.1-gentoo-thp x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.4.1-gentoo-thp-x86_64-13th_Gen_Intel-R-_Core-TM-_i5-13600KF-with-glibc2.37
KiB Mem:    16254520 total,   4773792 free
KiB Swap:   33031160 total,  24041304 free
Timestamp of repository gentoo: Tue, 04 Jul 2023 17:46:58 +0000
Head commit of repository gentoo: 6e1ae07755406d8539200254d6741366a55cc981

Timestamp of repository guru: Tue, 04 Jul 2023 17:31:52 +0000
Head commit of repository guru: 24956889789c03219da076754d9c69a10924d1de

Timestamp of repository kde: Sun, 02 Jul 2023 22:02:15 +0000
Head commit of repository kde: f6cf095d8ee91d6bc79ab7fc3518c538a20499af

Timestamp of repository mv: Mon, 03 Jul 2023 12:01:55 +0000
Head commit of repository mv: aec9472da82bee204de48c5e356e602d92a0a854

Timestamp of repository steam-overlay: Sun, 02 Jul 2023 15:32:30 +0000
Head commit of repository steam-overlay: 301e948a8983d54430c42621a58c8c9ccdc6231c

Timestamp of repository thegreatmcpain: Tue, 04 Jul 2023 17:31:54 +0000
Head commit of repository thegreatmcpain: 3e95bea048468f029129073b582616e376d48e56

sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0::gentoo
dev-lang/python:           3.11.4::gentoo
dev-lang/rust:             1.70.0::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.34::gentoo
sys-apps/systemd:          253.5::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo
sys-devel/gcc:             13.1.1_p20230527::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.4::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::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

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

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

mv
    location: /var/db/repos/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe -flto=auto -fno-plt -fno-semantic-interposition -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
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="-march=native -O3 -pipe -flto=auto -fno-plt -fno-semantic-interposition -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
DISTDIR="/var/cache/distfiles"
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="-march=native -O3 -pipe -flto=auto -fno-plt -fno-semantic-interposition -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance 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=native -O3 -pipe -flto=auto -fno-plt -fno-semantic-interposition -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/     http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/     http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
LEX="flex"
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="-C target-cpu=native -C opt-level=2"
SHELL="/bin/bash"
USE="X aac acl acpi activities amd64 branding bzip2 cairo cdr clang cli crypt dbus declarative dri dvdr encode exif flac fortran gdbm gif gtk gui iconv icu jpeg kde kwallet lcms libnotify libtirpc llvm-libunwind lto mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf pgo pipewire plasma png policykit ppds pulseaudio qml qt5 readline screencast sdl seccomp semantic-desktop sound ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vaapi vulkan wayland widgets wxwidgets x264 xattr xcb xft xml xv zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" 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 sha 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="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" 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="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby32" 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, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

www-client/firefox-115.0::gentoo was built with the following:
USE="X clang dbus gmp-autoupdate jumbo-build lto openh264 pgo pulseaudio screencast system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-png system-webp telemetry wayland -debug -eme-free -geckodriver -hardened -hwaccel -jack -libproxy (-selinux) -sndio (-system-python-libs) (-valgrind) -wifi" ABI_X86="(64)" L10N="-ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fur -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sc -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW"
CFLAGS="-march=native -pipe -fno-plt -fno-semantic-interposition"
CXXFLAGS="-march=native -pipe -fno-plt -fno-semantic-interposition"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox keepwork 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"
LDFLAGS="-fuse-ld=lld -rtlib=compiler-rt -unwindlib=libunwind -Wl,-O2,--as-needed -Wl,--compress-debug-sections=zlib -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags"
Comment 2 Kostadin Shishmanov 2023-07-05 07:16:29 UTC
Created attachment 865149 [details]
/var/tmp/portage/www-client/firefox-115/temp/environment
Comment 3 Joonas Niilola gentoo-dev 2023-07-07 06:51:42 UTC
Anything in dmesg?
Comment 4 Kostadin Shishmanov 2023-07-07 08:44:32 UTC
Nothing in dmesg, got these messages in journalctl when the profiling started, but I don't know if they are related.

Jul 07 11:37:00 gentoo dbus-daemon[35227]: [session uid=250 pid=23398] Activating service name='org.freedesktop.portal.Desktop' requested by ':1.0' (uid=250 pid=23304 comm="/var/tmp/portage/www-client/firefox-115.0/work/fir")
Jul 07 11:37:00 gentoo dbus-daemon[35227]: [session uid=250 pid=23398] Activating service name='org.freedesktop.portal.Documents' requested by ':1.1' (uid=250 pid=23403 comm="/usr/libexec/xdg-desktop-portal")
Jul 07 11:37:00 gentoo dbus-daemon[35227]: [session uid=250 pid=23398] Activating service name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.2' (uid=250 pid=23409 comm="/usr/libexec/xdg-document-portal")
Jul 07 11:37:00 gentoo dbus-daemon[35227]: [session uid=250 pid=23398] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore'
Jul 07 11:37:00 gentoo dbus-daemon[35227]: [session uid=250 pid=23398] Successfully activated service 'org.freedesktop.portal.Documents'
Jul 07 11:37:00 gentoo org.freedesktop.portal.Documents[35249]: fusermount3: mount failed: Operation not permitted
Jul 07 11:37:00 gentoo org.freedesktop.portal.Documents[35236]: error: fuse init failed: Can't mount path /var/tmp/portage/www-client/firefox-115.0/temp/run/doc
Jul 07 11:37:00 gentoo xdg-desktop-por[35230]: Failed to load RealtimeKit property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.RealtimeKit1 was not provided by any .service files
Jul 07 11:37:00 gentoo xdg-desktop-por[35230]: Failed to load RealtimeKit property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.RealtimeKit1 was not provided by any .service files
Jul 07 11:37:00 gentoo xdg-desktop-por[35230]: Failed to load RealtimeKit property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.RealtimeKit1 was not provided by any .service files
Jul 07 11:37:00 gentoo dbus-daemon[35227]: [session uid=250 pid=23398] Activating service name='org.freedesktop.impl.portal.desktop.kde' requested by ':1.1' (uid=250 pid=23403 comm="/usr/libexec/xdg-desktop-portal")
Jul 07 11:37:00 gentoo dbus-daemon[35227]: [session uid=250 pid=23398] Successfully activated service 'org.freedesktop.impl.portal.desktop.kde'
Jul 07 11:37:00 gentoo xdg-desktop-por[35230]: Failed connect to PipeWire: Couldn't connect to PipeWire
Jul 07 11:37:00 gentoo dbus-daemon[35227]: [session uid=250 pid=23398] Successfully activated service 'org.freedesktop.portal.Desktop'
Comment 5 Kostadin Shishmanov 2023-07-07 10:11:02 UTC
I tested both 114.0 and 113.0.2 and it seems to be happening there too. Going to try and figure out what has changed. The build itself completes fine, and I haven't noticed any runtime crashes or failures, so this isn't very urgent to fix.
Comment 6 Larry the Git Cow gentoo-dev 2023-08-01 10:04:32 UTC
The bug has been referenced in the following commit(s):

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

commit 1fd128403bb5b3b4619b07e4964f7dfff635f41c
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-08-01 10:03:51 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-08-01 10:04:27 +0000

    www-client/firefox: add 116.0
    
    Closes: https://bugs.gentoo.org/910689
    Bug: https://bugs.gentoo.org/910290
    Closes: https://bugs.gentoo.org/888055
    Bug: https://bugs.gentoo.org/909724
    Closes: https://bugs.gentoo.org/904354
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/Manifest             |  101 +++
 www-client/firefox/firefox-116.0.ebuild | 1466 +++++++++++++++++++++++++++++++
 2 files changed, 1567 insertions(+)
Comment 7 Kostadin Shishmanov 2023-08-01 14:13:37 UTC
Created attachment 866800 [details]
build log compressed with xz

Still reproducible on 116.0

JavaScript error: resource://gre/modules/XULStore.sys.mjs, line 60: Error: Can't find profile directory.
00:16:33.683 [types/wlr_compositor.c:673] New wlr_surface 0x55b8708eda10 (res 0x55b8708f9ba0)
LLVM Profile Error: Failed to write file "default_23515_random_1577279282290175613_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_23515_random_2428506507382468266_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_23515_random_5082634827426364674_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_23515_random_7386420086373065007_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_23515_random_1971472868441924494_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_23515_random_3426718776489651378_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_23515_random_16745329148469669040_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_23515_random_15114772497870841039_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_23515_random_11839867337169170666_0.profraw": Broken pipe
Copying profile data....
/mnt/tmp/portage/www-client/firefox-116.0/work/firefox_build/instrumented
tar: Cowardly refusing to create an empty archive
Try 'tar --help' or 'tar --usage' for more information.
tar: instrumented/profdata.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
16:37.20 W Clobber not needed.
Comment 8 Joonas Niilola gentoo-dev 2023-08-01 16:19:38 UTC
I'll try to take a look at the log later this week, usually these mozilla bumps keeps me busy for few days.
Comment 9 Joonas Niilola gentoo-dev 2023-08-11 07:03:28 UTC
This kind of hints to dbus issues, but I can't see anything concrete to be sure. What wayland DE/WM you use? (I would guess KDE based on journalctl). Does dbus work correctly?
Comment 10 Kostadin Shishmanov 2023-08-11 12:27:52 UTC
It is KDE. How would I found out if the issue is indeed dbus related?
Comment 11 Joonas Niilola gentoo-dev 2023-08-12 17:00:31 UTC
After thinking about it, it's probably unrelated. I can't think how portage's process would interfere with your user's dbus session. Does it work better with -clang use flag (ie when compiling with gcc)?

I don't really see anything obvious. You should ask upstream perhaps if gcc doesn't work for you better.
Comment 12 Kostadin Shishmanov 2023-08-12 17:06:35 UTC
(In reply to Joonas Niilola from comment #11)
> After thinking about it, it's probably unrelated. I can't think how
> portage's process would interfere with your user's dbus session. Does it
> work better with -clang use flag (ie when compiling with gcc)?
> 
> I don't really see anything obvious. You should ask upstream perhaps if gcc
> doesn't work for you better.

gcc works perfectly with pgo and lto
Comment 13 Joonas Niilola gentoo-dev 2023-08-12 17:09:15 UTC
I wonder if your llvm/clang is somehow a bit broken, although I have no clue how to verify that. Your system-wide, eh, unorthodox *FLAGS could cause that I guess :)
Comment 14 Kostadin Shishmanov 2023-08-12 17:13:59 UTC
(In reply to Joonas Niilola from comment #13)
> I wonder if your llvm/clang is somehow a bit broken, although I have no clue
> how to verify that. Your system-wide, eh, unorthodox *FLAGS could cause that
> I guess :)

I have a separate file in /etc/portage/env for an llvm/clang bootstrap and they are more sane there :D

COMMON_FLAGS="-march=native -O2 -pipe -flto=thin"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"

CC="clang"
CXX="clang++"
AR="llvm-ar"
NM="llvm-nm"
RANLIB="llvm-ranlib"
OBJCOPY="llvm-objcopy"
OBJDUMP="llvm-objdump"
READELF="llvm-readelf"
STRIP="llvm-strip"

LDFLAGS="-fuse-ld=lld -Wl,-O2,--as-needed"
Comment 15 Joonas Niilola gentoo-dev 2023-08-31 11:16:42 UTC
So done with the latest bumps and I've observed that at least in 115esr and 117 with +clang I get the same error. It only _looks_ to error-out on some subset of an area, js engine I'd guess, but profiling generally seems to work even with that error. The output differences with gcc and clang are huge, but I guess that's just because clang is more visible. I really have no idea if gcc "works any better", and why it does if yes. 

I kind of wished some distribution who logs their builds used clang to build firefox so we'd get a comparison :) but I guess I'll try to contact upstream about it. I did find old bug with this issue, but it's supposed to be solved so will need to take another look. It's a pretty hard subject when toolchain is involved.
Comment 16 Kostadin Shishmanov 2023-08-31 11:21:12 UTC
Looks like it happens on arch too: https://reproducible.archlinux.org/api/v0/builds/500286/log