Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 901353 - =www-client/firefox-111.0 failed to build with clang lto pgo
Summary: =www-client/firefox-111.0 failed to build with clang lto pgo
Status: RESOLVED UPSTREAM
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: 2023-03-15 16:11 UTC by Mike Limansky
Modified: 2023-04-15 06:19 UTC (History)
4 users (show)

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


Attachments
build.log (build.log.gz,743.65 KB, application/gzip)
2023-03-15 16:13 UTC, Mike Limansky
Details
build.log gcc (build.log.gz,945.37 KB, application/gzip)
2023-03-17 21:42 UTC, Mike Limansky
Details
firefox-111.0-r1.ebuild (firefox-111.0-r1.ebuild,39.39 KB, application/octet-stream)
2023-04-04 12:42 UTC, Joonas Niilola
Details
log for build with --disable-release/--disable-official-branding (www-client:firefox-111.0-r0:20230405-101851.log.bz2,425.88 KB, application/x-bzip)
2023-04-05 10:35 UTC, Zentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Limansky 2023-03-15 16:11:34 UTC
Firefox fail to build:

LLVM Profile Error: Failed to write file "default_22264_random_1971493760237642638_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_22264_random_15724346368485885106_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_22264_random_16745329148469669040_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_22264_random_15114685529060226255_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_22264_random_11839787001946007786_0.profraw": Broken pipe
Firefox exited with code 245 during profiling
Error running mach:

    ['build', '--verbose']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file build| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

subprocess.CalledProcessError: Command '['/var/tmp/portage/www-client/firefox-111.0/work/firefox_build/_virtualenvs/build/bin/python', '/var/tmp/portage/www-client/firefox-111.0/work/firefox-111.0/build/pgo/profileserver.py']' returned non-zero exit status 245.

Reproducible: Always
Comment 1 Mike Limansky 2023-03-15 16:13:51 UTC
Created attachment 857851 [details]
build.log

Full build log is attached.
Comment 2 Dinsdale 2023-03-16 20:25:49 UTC
Same thing is happening on my system.  The compilation never finishes so I have to CTRL-C the build.
Comment 3 Joonas Niilola gentoo-dev 2023-03-17 09:39:33 UTC
Anything in dmesg? I've noticed with GCC it may "hang" or seem like it's not doing anything for few minutes, but it usually resumes on its own. 

If my amdgpu driver has crashed, then there have been a lot of issues compiling with pgo. So please check your dmesg and/or reboot and try compiling. I managed to build PGO with 111.0 here so I'd rather eliminate these possibilities before trying with your use flag, which look pretty sane. emerge --info could be helpful too to spot something, like a weird dep.
Comment 4 Mike Limansky 2023-03-17 09:45:11 UTC
Here is my emerge --info output. I'll try to compile it again later, to check dmesg output, but I've never faced with firefox building issues on this box with other versions. I suppose my case and hanging are the different bugs. 

Portage 3.0.44 (python 3.10.10-final-0, default/linux/amd64/17.1/desktop, gcc-12, glibc-2.36-r7, 6.1.12-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.1.12-gentoo-dist-x86_64-11th_Gen_Intel-R-_Core-TM-_i7-1185G7_@_3.00GHz-with-glibc2.36
KiB Mem:    32597576 total,  19371156 free
KiB Swap:   34494460 total,  34494460 free
Timestamp of repository gentoo: Fri, 17 Mar 2023 08:00:01 +0000
Head commit of repository gentoo: 1c920515908c847058478762c4cea21bb03fe662
Timestamp of repository haskell: Wed, 15 Mar 2023 20:16:48 +0000
Head commit of repository haskell: 14db778a4da5d74aa3d64c771d52520dd72507ad

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.10_p3::gentoo, 3.11.2_p2::gentoo
dev-lang/rust-bin:         1.66.1-r1::gentoo
dev-util/cmake:            3.25.2::gentoo
dev-util/meson:            1.0.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           15.0.7-r1::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r7::gentoo
Repositories:

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

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

myrepo
    location: /usr/local/portage
    masters: gentoo
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf"
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 /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
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 -O2 -pipe"
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 -O2 -pipe"
GENTOO_MIRRORS="https://ftp.linux.org.tr/gentoo/"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j8"
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/fish"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdr cli crypt cups dbus dri dts dvdr elogind encode exif flac fortran gdbm gif gtk gui iconv icu ipv6 jpeg lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp sound spell split-usr ssl startup-notification svg test-rust tiff truetype udev udisks unicode upower usb vaapi vorbis wxwidgets x264 xattr xcb xft xml xv xvid zlib" 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 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="ru en" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby30" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" 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, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 5 Mike Limansky 2023-03-17 13:00:19 UTC
Found this in dmesg:

[ 5675.532327] traps: MediaTrackGrph[26562] general protection fault ip:7f107287c6d0 sp:7f105e7eb638 error:0 in libxul.so[7f106f64c000+7c5b000]
Comment 6 Mike Limansky 2023-03-17 21:42:45 UTC
Created attachment 858137 [details]
build.log gcc

Similar error reproduced with gcc instead of clang.
Comment 7 stealth 2023-03-18 00:42:11 UTC
i have the same thing but noticed in terminal something which doesn't seem to be shown in build.log:

ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.8-r1/work/alsa-lib-1.2.8/src/seq/seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: Permission denied

i don't believe i saw that on the previous versions

not sure if that is related to the libxul crash but i have tried building with addpredict /dev/snd and still that error shows i even tried adding the same env to alsa-lib incase it builds that too (never saw that directory in tmp though)

i disabled pgo for now
Comment 8 Marius Caldas 2023-03-18 01:25:58 UTC
I have the same problem, as described above. I'm on GCC-13 with LTO and PGO, and LLVM-15.

This is the console output:
------------------------------------------------------------
JavaScript error: resource://gre/modules/AsyncShutdown.sys.mjs, line 727: Error: Phase "profile-before-change" is finished, it is too late to register completion condition "OS.File: flush I/O queued before profileBeforeChange"
JavaScript error: resource://gre/modules/AsyncShutdown.sys.mjs, line 727: Error: Phase "profile-before-change" is finished, it is too late to register completion condition "OS.File: flush I/O queued before profileBeforeChange"
JavaScript error: resource://gre/modules/AsyncShutdown.sys.mjs, line 727: Error: Phase "profile-before-change" is finished, it is too late to register completion condition "OS.File: flush I/O queued before profileBeforeChange"
JavaScript error: resource://gre/modules/AsyncShutdown.sys.mjs, line 727: Error: Phase "profile-before-change" is finished, it is too late to register completion condition "OS.File: flush I/O queued before profileBeforeChange"
JavaScript error: resource://gre/modules/AsyncShutdown.sys.mjs, line 727: Error: Phase "profile-before-change" is finished, it is too late to register completion condition "OS.File: flush I/O queued before profileBeforeChange"
LLVM Profile Error: Failed to write file "default_26696_random_7725264523215634045_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_26696_random_8576899695048558250_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_26696_random_11165794516796716290_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_26696_random_1971493760237642638_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_26696_random_15724346368485885106_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_26696_random_16745329148469669040_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_26696_random_15114641579732581583_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_26696_random_11839816702720698602_0.profraw": Broken pipe
Firefox exited with code 245 during profiling
Error running mach:

    ['build', '--verbose']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file build| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.
------------------------------------------------------------------

This is the dmesg output:
------------------------------------------------------------------
[349031.919616] traps: MediaTrackGrph[17765] general protection fault ip:7fb0277b9760 sp:7fb0120fa678 error:0 in libxul.so[7fb02462f000+7f90000]
[350496.326873] traps: MediaTrackGrph[31532] general protection fault ip:7f111bfb9760 sp:7f110667c678 error:0 in libxul.so[7f1118e2f000+7f90000]
------------------------------------------------------------------

With PGO disabled, the build completes successfully.
Comment 9 Joonas Niilola gentoo-dev 2023-03-20 15:03:39 UTC
Well I can't reproduce, building with pgo works with both gcc and clang here. Someone should report this upstream and link a bug to track the status.

www-client/firefox X clang dbus -debug -eme-free -geckodriver gmp-autoupdate -hardened -hwaccel -jack -libproxy lto openh264 pgo pulseaudio -screencast -sndio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx -system-png system-webp -wayland wifi

And

www-client/firefox X -clang dbus -debug -eme-free -geckodriver gmp-autoupdate -hardened -hwaccel -jack -libproxy lto openh264 pgo pulseaudio -screencast -sndio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx -system-png system-webp -wayland wifi

passed.
Comment 10 Mike Limansky 2023-03-20 15:25:30 UTC
Here is my use flags which fail:

[ebuild   R   ~] www-client/firefox-111.0:rapid::gentoo  USE="X clang dbus gmp-autoupdate lto openh264 pgo* pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp wifi -debug -eme-free -geckodriver -hardened -hwaccel -jack -libproxy -screencast (-selinux) -sndio -system-png (-system-python-libs) -wayland" L10N="ru -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 -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" 0 KiB

I temporary diabled pgo, it builds and works fine.

I'm not sure if it is related, but I use pipewire instead of pulseaudio on this laptop, however it wasn't affect previous version, so probably it's not the root cause.
Comment 11 Zentoo 2023-03-21 22:57:13 UTC
Same problem Here:

My USE flags:
[ebuild     U  ] www-client/firefox-111.0:rapid::gentoo [109.0.1:rapid::gentoo] USE="X clang dbus gmp-autoupdate hwaccel lto openh264 pgo system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp -debug -eme-free -geckodriver -hardened -jack -libproxy -pulseaudio -screencast (-selinux) -sndio -system-png (-system-python-libs) -wayland -wifi" L10N="fr -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 -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"

Dmesg:
[60604.285667] traps: MediaTrackGrph[1424] general protection fault ip:7ff1c1d67800 sp:7ff1a1956638 error:0 in libxul.so[7ff1be9d3000+8527000]
[63627.834242] traps: MediaTrackGrph[31539] general protection fault ip:7fdc85210800 sp:7fdc62278638 error:0 in libxul.so[7fdc81e7c000+8527000]

Notes:
- if relevant, I'm using alsa for audio
- compile fine without USE flag pgo
Comment 12 Emre AKYUZ 2023-04-01 18:51:29 UTC
I have a different error with clang + lto + pgo use flags enabled without PGO it builds fine:

>>> Install www-client/firefox-111.0 into /var/tmp/portage/www-client/firefox-111.0/image
 0:00.37 /usr/bin/gmake -C . -j16 -s -w install
 0:00.39 gmake: Entering directory '/var/tmp/portage/www-client/firefox-111.0/work/firefox_build'
 0:00.39 gmake[1]: Entering directory '/var/tmp/portage/www-client/firefox-111.0/work/firefox_build/browser/installer'
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:48: Missing file(s): bin/dictionaries/*
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:49: Missing file(s): bin/browser/localization/*
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:50: Missing file(s): bin/localization/*
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:52: Missing file(s): bin/fonts/*
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:54: Missing file(s): bin/hyphenation/*
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:55: Missing file(s): bin/browser/defaults/preferences/firefox-l10n.js
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:72: Missing file(s): bin/dependentlibs.list
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:89: Missing file(s): bin/libxul.so
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:94: Missing file(s): bin/plugin-container
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:107: Missing file(s): bin/libmozgtk.so
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:109: Missing file(s): bin/libmozwayland.so
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:138: Missing file(s): bin/firefox-bin
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:139: Missing file(s): bin/firefox
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:141: Missing file(s): bin/application.ini
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:145: Missing file(s): bin/platform.ini
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:147: Missing file(s): bin/libmozsqlite3.so
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:149: Missing file(s): bin/liblgpllibs.so
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:151: Missing file(s): bin/libmozavutil.so
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:152: Missing file(s): bin/libmozavcodec.so
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:173: Missing file(s): bin/browser/components/BrowserComponents.manifest
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:174: Missing file(s): bin/components/toolkitsearch.manifest
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:175: Missing file(s): bin/components/extensions.manifest
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:179: Missing file(s): bin/components/ProcessSingleton.manifest
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:180: Missing file(s): bin/components/SyncComponents.manifest
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:181: Missing file(s): bin/components/servicesComponents.manifest
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:182: Missing file(s): bin/components/servicesSettings.manifest
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:183: Missing file(s): bin/components/cryptoComponents.manifest
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:184: Missing file(s): bin/components/TelemetryStartup.manifest
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:186: Missing file(s): bin/components/Push.manifest
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:188: Missing file(s): bin/components/antitracking.manifest
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:190: Missing file(s): bin/components/l10n-registry.manifest
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:191: Missing file(s): bin/browser/components/l10n-registry.manifest
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:195: Missing file(s): bin/chrome/remote
 0:00.64 error: $SRCDIR/browser/installer/package-manifest.in:196: Missing file(s): bin/chrome/remote.manifest
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:200: Missing file(s): bin/components/extensions-toolkit.manifest
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:201: Missing file(s): bin/browser/components/extensions-browser.manifest
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:204: Missing file(s): bin/browser/modules/*
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:205: Missing file(s): bin/modules/*
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:206: Missing file(s): bin/browser/actors/*
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:207: Missing file(s): bin/actors/*
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:220: Missing file(s): bin/browser/chrome.manifest
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:221: Missing file(s): bin/browser/chrome/browser
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:222: Missing file(s): bin/browser/chrome/browser.manifest
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:223: Missing file(s): bin/chrome/pdfjs.manifest
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:224: Missing file(s): bin/chrome/pdfjs/*
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:225: Missing file(s): bin/chrome/toolkit
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:226: Missing file(s): bin/chrome/toolkit.manifest
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:228: Missing file(s): bin/browser/chrome/icons/default/default16.png
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:229: Missing file(s): bin/browser/chrome/icons/default/default32.png
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:230: Missing file(s): bin/browser/chrome/icons/default/default48.png
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:231: Missing file(s): bin/browser/chrome/icons/default/default64.png
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:232: Missing file(s): bin/browser/chrome/icons/default/default128.png
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:234: Missing file(s): bin/browser/features/*
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:237: Missing file(s): bin/browser/chrome/devtools-startup
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:238: Missing file(s): bin/browser/chrome/devtools-startup.manifest
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:241: Missing file(s): bin/browser/chrome/devtools
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:242: Missing file(s): bin/browser/chrome/devtools.manifest
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:243: Missing file(s): bin/browser/defaults/preferences/debugger.js
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:257: Missing file(s): bin/browser/defaults/preferences/firefox.js
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:258: Missing file(s): bin/browser/defaults/preferences/firefox-branding.js
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:259: Missing file(s): bin/greprefs.js
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:260: Missing file(s): bin/defaults/autoconfig/prefcalls.js
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:261: Missing file(s): bin/browser/defaults/permissions
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:263: Missing file(s): bin/browser/defaults/settings/last_modified.json
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:264: Missing file(s): bin/browser/defaults/settings/blocklists
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:265: Missing file(s): bin/browser/defaults/settings/main
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:266: Missing file(s): bin/browser/defaults/settings/security-state
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:271: Missing file(s): bin/defaults/pref/channel-prefs.js
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:277: Missing file(s): bin/defaults/backgroundtasks/backgroundtasks.js
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:279: Missing file(s): bin/browser/defaults/backgroundtasks/backgroundtasks_browser.js
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:284: Missing file(s): bin/res/EditorOverride.css
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:285: Missing file(s): bin/res/contenteditable.css
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:286: Missing file(s): bin/res/designmode.css
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:287: Missing file(s): bin/res/table-add-column-after-active.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:288: Missing file(s): bin/res/table-add-column-after-hover.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:289: Missing file(s): bin/res/table-add-column-after.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:290: Missing file(s): bin/res/table-add-column-before-active.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:291: Missing file(s): bin/res/table-add-column-before-hover.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:292: Missing file(s): bin/res/table-add-column-before.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:293: Missing file(s): bin/res/table-add-row-after-active.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:294: Missing file(s): bin/res/table-add-row-after-hover.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:295: Missing file(s): bin/res/table-add-row-after.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:296: Missing file(s): bin/res/table-add-row-before-active.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:297: Missing file(s): bin/res/table-add-row-before-hover.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:298: Missing file(s): bin/res/table-add-row-before.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:299: Missing file(s): bin/res/table-remove-column-active.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:300: Missing file(s): bin/res/table-remove-column-hover.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:301: Missing file(s): bin/res/table-remove-column.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:302: Missing file(s): bin/res/table-remove-row-active.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:303: Missing file(s): bin/res/table-remove-row-hover.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:304: Missing file(s): bin/res/table-remove-row.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:305: Missing file(s): bin/res/grabber.gif
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:309: Missing file(s): bin/res/fonts/*
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:310: Missing file(s): bin/res/dtd/*
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:311: Missing file(s): bin/res/language.properties
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:312: Missing file(s): bin/res/locale/layout/HtmlForm.properties
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:313: Missing file(s): bin/res/locale/layout/MediaDocument.properties
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:314: Missing file(s): bin/res/locale/layout/xmlparser.properties
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:315: Missing file(s): bin/res/locale/dom/dom.properties
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:321: Missing file(s): bin/contentaccessible/*
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:324: Missing file(s): bin/res/svg.css
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:328: Missing file(s): bin/chrome/layoutdebug
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:329: Missing file(s): bin/chrome/layoutdebug.manifest
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:355: Missing file(s): bin/chrome/pippki
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:356: Missing file(s): bin/chrome/pippki.manifest
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:366: Missing file(s): bin/libipcclientcerts.so
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:371: Missing file(s): bin/libmozsandbox.so
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:420: Missing file(s): bin/pingsender
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:429: Missing file(s): bin/components/terminator.manifest
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:440: Missing file(s): bin/gmp-clearkey/0.1/libclearkey.so
 0:00.65 error: $SRCDIR/browser/installer/package-manifest.in:441: Missing file(s): bin/gmp-clearkey/0.1/manifest.json
 0:00.65 error: $OBJDIR/browser/installer/locale-manifest.in:4: Missing file(s): bin/browser/chrome/en-US
 0:00.65 error: $OBJDIR/browser/installer/locale-manifest.in:5: Missing file(s): bin/browser/chrome/en-US.manifest
 0:00.65 error: $OBJDIR/browser/installer/locale-manifest.in:6: Missing file(s): bin/chrome/en-US
 0:00.65 error: $OBJDIR/browser/installer/locale-manifest.in:7: Missing file(s): bin/chrome/en-US.manifest
 0:00.65 Traceback (most recent call last):
 0:00.65   File "/var/tmp/portage/www-client/firefox-111.0/work/firefox-111.0/toolkit/mozapps/installer/packager.py", line 295, in <module>
 0:00.65     main()
 0:00.65   File "/var/tmp/portage/www-client/firefox-111.0/work/firefox-111.0/toolkit/mozapps/installer/packager.py", line 222, in main
 0:00.65     with errors.accumulate():
 0:00.65   File "/usr/lib/python3.11/contextlib.py", line 144, in __exit__
 0:00.65     next(self.gen)
 0:00.65   File "/var/tmp/portage/www-client/firefox-111.0/work/firefox-111.0/python/mozbuild/mozpack/errors.py", line 130, in accumulate
 0:00.65     raise AccumulatedErrors()
 0:00.65 mozpack.errors.AccumulatedErrors
 0:00.66 gmake[1]: *** [/var/tmp/portage/www-client/firefox-111.0/work/firefox-111.0/toolkit/mozapps/installer/packager.mk:25: stage-package] Error 1
 0:00.66 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-111.0/work/firefox_build/browser/installer'
 0:00.66 gmake: *** [/var/tmp/portage/www-client/firefox-111.0/work/firefox-111.0/browser/build.mk:15: install] Error 2
 0:00.66 gmake: Leaving directory '/var/tmp/portage/www-client/firefox-111.0/work/firefox_build'
 * ERROR: www-client/firefox-111.0::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_install
 *   environment, line 5383:  Called die
 * The specific snippet of code:
 *       DESTDIR="${D}" ./mach install || die;
Comment 13 Joonas Niilola gentoo-dev 2023-04-03 06:41:28 UTC
(In reply to emreakyuz from comment #12)
> I have a different error with clang + lto + pgo use flags enabled without
> PGO it builds fine:
> 
> >>> Install www-client/firefox-111.0 into /var/tmp/portage/www-client/firefox-111.0/image

That looks weird, I doubt it's related to the issues above. Could you open a new bug with full build.log and emerge --info? You can compress the build.log file with xz -9 or something alike.
Comment 14 Emre AKYUZ 2023-04-03 10:57:14 UTC
(In reply to Joonas Niilola from comment #13)
> (In reply to emreakyuz from comment #12)
> > I have a different error with clang + lto + pgo use flags enabled without
> > PGO it builds fine:
> > 
> > >>> Install www-client/firefox-111.0 into /var/tmp/portage/www-client/firefox-111.0/image
> 
> That looks weird, I doubt it's related to the issues above. Could you open a
> new bug with full build.log and emerge --info? You can compress the
> build.log file with xz -9 or something alike.

Hi, I did it with all the details: https://bugs.gentoo.org/903710
Comment 15 Joonas Niilola gentoo-dev 2023-04-04 12:42:34 UTC
Created attachment 859514 [details]
firefox-111.0-r1.ebuild
Comment 16 Joonas Niilola gentoo-dev 2023-04-04 12:43:49 UTC
Could someone brave enough try that? 

--- ./firefox-111.0.ebuild	2023-04-04 07:35:48.507691213 -0000
+++ firefox-111.0-r1.ebuild	2023-04-04 12:06:07.344761133 -0000
@@ -742,7 +742,7 @@
 	mozconfig_add_options_ac '' --enable-project=browser
 
 	# Set Gentoo defaults
-	export MOZILLA_OFFICIAL=1
+	# export MOZILLA_OFFICIAL=1
 
 	mozconfig_add_options_ac 'Gentoo default' \
 		--allow-addon-sideload \
@@ -757,8 +757,8 @@
 		--disable-wmf-cdm \
 		--enable-negotiateauth \
 		--enable-new-pass-manager \
-		--enable-official-branding \
-		--enable-release \
+		--disable-official-branding \
+		--disable-release \
 		--enable-system-ffi \
 		--enable-system-pixman \
 		--enable-system-policies \


BE WARY though, I believe this will have some effect on your profiles! Take backups before launching firefox.
Comment 17 Zentoo 2023-04-05 10:35:02 UTC
Created attachment 859536 [details]
log for build with  --disable-release/--disable-official-branding
Comment 18 Zentoo 2023-04-05 10:36:46 UTC
(In reply to Joonas Niilola from comment #16)
> Could someone brave enough try that? 
> 
> --- ./firefox-111.0.ebuild	2023-04-04 07:35:48.507691213 -0000
> +++ firefox-111.0-r1.ebuild	2023-04-04 12:06:07.344761133 -0000
> @@ -742,7 +742,7 @@
>  	mozconfig_add_options_ac '' --enable-project=browser
>  
>  	# Set Gentoo defaults
> -	export MOZILLA_OFFICIAL=1
> +	# export MOZILLA_OFFICIAL=1
>  
>  	mozconfig_add_options_ac 'Gentoo default' \
>  		--allow-addon-sideload \
> @@ -757,8 +757,8 @@
>  		--disable-wmf-cdm \
>  		--enable-negotiateauth \
>  		--enable-new-pass-manager \
> -		--enable-official-branding \
> -		--enable-release \
> +		--disable-official-branding \
> +		--disable-release \
>  		--enable-system-ffi \
>  		--enable-system-pixman \
>  		--enable-system-policies \
> 
> 
> BE WARY though, I believe this will have some effect on your profiles! Take
> backups before launching firefox.

I've try it right now but emerge doesn't succeed.
I've add the corresponding log for build with --disable-release/--disable-official-branding  as attachment.
Comment 19 Larry the Git Cow gentoo-dev 2023-04-11 05:14:36 UTC
The bug has been referenced in the following commit(s):

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

commit 8483d1122b4c093c8a8886de70774332c81b626a
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-04-11 05:11:03 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-04-11 05:12:58 +0000

    www-client/firefox: add 112.0
    
     - include dont-crash-on-wayland-log-handler.patch from upstream bug #1826583,
     - remove "accessibility.typeaheadfind" from our default prefs.
    
    Bug: https://bugs.gentoo.org/902149
    Bug: https://bugs.gentoo.org/903710
    Bug: https://bugs.gentoo.org/901353
    Bug: https://bugs.gentoo.org/904072
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/Manifest                      |  101 ++
 www-client/firefox/files/gentoo-default-prefs.js |    1 -
 www-client/firefox/firefox-112.0.ebuild          | 1379 ++++++++++++++++++++++
 3 files changed, 1480 insertions(+), 1 deletion(-)
Comment 20 Joonas Niilola gentoo-dev 2023-04-11 05:24:55 UTC
Again, all of my test runs were successful. I _hope_ something in upstream has fixed it. Seems like there were some nvidia and intel related gpu updates for this version, so please try again with 112.0. 

Although I could ask if it _still_ works with 110 or esr, is it about the system, or the updated code?
Comment 21 Mike Limansky 2023-04-11 10:08:45 UTC
Hi,

  I've successfully installed Firefox 112 with clang, pgo and lto enabled.
Comment 22 Zentoo 2023-04-12 08:07:05 UTC
I confirm too that www-client/firefox-112.0 emerge and works fine with USE="lto pgo"
Comment 23 Joonas Niilola gentoo-dev 2023-04-15 06:19:29 UTC
Thanks for confirming! Glad to see it was resolved by upstream.