Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 923054 - www-client/firefox-122.0[pgo] build fails during profiling stage if media-libs/mesa is built with USE=zink
Summary: www-client/firefox-122.0[pgo] build fails during profiling stage if media-lib...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 2 votes (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-27 17:09 UTC by Kostadin Shishmanov
Modified: 2024-03-26 12:34 UTC (History)
6 users (show)

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


Attachments
build log compressed with xz (build.log.xz,349.83 KB, application/x-xz)
2024-01-27 17:09 UTC, Kostadin Shishmanov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kostadin Shishmanov 2024-01-27 17:09:38 UTC
Created attachment 883319 [details]
build log compressed with xz

Firefox's build fails during the profiling phase if zink is enabled in mesa, the build finishes if media-libs/mesa is built with USE=-zink

started SP3 server on port 8000
00:21:40.403 [types/wlr_compositor.c:692] New wlr_surface 0x556779c8faa0 (res 0x556779c8cbe0)
00:21:40.403 [types/wlr_compositor.c:692] New wlr_surface 0x556779c8fe50 (res 0x556779c8e4b0)
console.warn: services.settings: Ignoring preference override of remote settings server
console.warn: services.settings: Allow by setting MOZ_REMOTE_SETTINGS_DEVTOOLS=1 in the environment
00:21:40.729 [types/wlr_compositor.c:692] New wlr_surface 0x556779c90ba0 (res 0x556779c90f50)
00:21:40.729 [types/wlr_compositor.c:692] New wlr_surface 0x556779c90f50 (res 0x556779c91300)
00:21:40.864 [types/wlr_compositor.c:692] New wlr_surface 0x556779c91770 (res 0x556779c91b20)
console.error: (new TypeError("NetworkError: Network request failed", "resource://services-settings/Utils.sys.mjs", 236))
console.error: (new TypeError("NetworkError: Network request failed", "resource://services-settings/Utils.sys.mjs", 236))
00:21:41.042 [types/wlr_compositor.c:692] New wlr_surface 0x556779c92840 (res 0x556779c92bf0)
00:21:41.042 [types/wlr_compositor.c:692] New wlr_surface 0x556779c92c80 (res 0x556779c93030)
00:21:41.082 [types/wlr_compositor.c:692] New wlr_surface 0x556779c93470 (res 0x556779c93820)
00:21:41.082 [types/wlr_compositor.c:692] New wlr_surface 0x556779c938b0 (res 0x556779c91b20)
00:21:41.091 [types/wlr_compositor.c:692] New wlr_surface 0x556779c946d0 (res 0x556779c94a80)
00:21:41.091 [types/wlr_compositor.c:692] New wlr_surface 0x556779c9cfb0 (res 0x556779c94ba0)
00:21:41.102 [types/wlr_compositor.c:692] New wlr_surface 0x556779c9d360 (res 0x556779c94c30)
00:21:41.149 [types/xdg_shell/wlr_xdg_surface.c:388] new xdg_surface 0x556779c9d710 (res 0x556779c9d830)
00:21:41.149 [types/wlr_compositor.c:692] New wlr_surface 0x556779c9e0c0 (res 0x556779c9e470)
console.error: (new TypeError("NetworkError: Network request failed", "resource://services-settings/Utils.sys.mjs", 236))
MESA: error: zink: could not create swapchain
console.error: ({})
00:21:41.311 [types/wlr_compositor.c:692] New wlr_surface 0x556779c9f7c0 (res 0x556779c9e8a0)
console.error: (new TypeError("NetworkError: Network request failed", "resource://services-settings/Utils.sys.mjs", 236))
console.error: (new TypeError("NetworkError: Network request failed", "resource://services-settings/Utils.sys.mjs", 236))
console.error: (new TypeError("NetworkError: Network request failed", "resource://services-settings/Utils.sys.mjs", 236))
console.error: (new TypeError("NetworkError: Network request failed", "resource://services-settings/Utils.sys.mjs", 236))
console.error: (new TypeError("NetworkError: Network request failed", "resource://services-settings/Utils.sys.mjs", 236))
console.error: (new TypeError("NetworkError: Network request failed", "resource://services-settings/Utils.sys.mjs", 236))
00:21:41.710 [types/wlr_compositor.c:692] New wlr_surface 0x556779ca4770 (res 0x556779ca4b20)
00:21:41.710 [types/wlr_compositor.c:692] New wlr_surface 0x556779ca4c40 (res 0x556779ca4ff0)
00:21:41.954 [types/wlr_compositor.c:692] New wlr_surface 0x556779ca5170 (res 0x556779c9d830)
MESA: error: zink: could not create swapchain
LLVM Profile Error: Failed to write file "default_24437_random_5256848434440365314_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24437_random_7386420086373065007_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24437_random_1971472868441924494_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24437_random_15725578585081851058_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24437_random_15499253829504269602_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24437_random_7975645164380870881_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24437_random_8966605819263749327_0.profraw": Broken pipe
LLVM Profile Error: Failed to write file "default_24437_random_5690289791782023402_0.profraw": Broken pipe
Firefox exited with code -11 during profile initialization
Error running mach:

    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-122.0/work/firefox_build/srcdirs/firefox-122.0-f2f704489059/_virtualenvs/build/bin/python', '/var/tmp/portage/www-client/firefox-122.0/work/firefox-122.0/build/pgo/profileserver.py']' returned non-zero exit status 245.

  File "/var/tmp/portage/www-client/firefox-122.0/work/firefox-122.0/python/mozbuild/mozbuild/build_commands.py", line 215, in build
    subprocess.check_call(pgo_cmd, cwd=instr.topobjdir, env=pgo_env)
  File "/usr/lib/python3.11/subprocess.py", line 413, in check_call
    raise CalledProcessError(retcode, cmd)
Comment 1 Kostadin Shishmanov 2024-01-27 17:09:47 UTC
Portage 3.0.61 (python 3.11.7-final-0, default/linux/amd64/23.0/desktop/plasma/systemd, gcc-14, glibc-2.38-r9, 6.7.2-gentoo-r1+ x86_64)
=================================================================
System uname: Linux-6.7.2-gentoo-r1+-x86_64-13th_Gen_Intel-R-_Core-TM-_i5-13600KF-with-glibc2.38
KiB Mem:    16232476 total,   4298580 free
KiB Swap:   16232444 total,  15737084 free
Timestamp of repository gentoo: Sat, 27 Jan 2024 14:48:11 +0000
Head commit of repository gentoo: 6c9df36f7d66ab072dc0e3f3e6b23f2f91cdc865

Timestamp of repository guru: Fri, 26 Jan 2024 10:48:04 +0000
Head commit of repository guru: cff4176fd6b57304896429274663b34e5dc93ec4

Timestamp of repository kde: Wed, 24 Jan 2024 11:48:07 +0000
Head commit of repository kde: 5a3bdbe353892d51a47859bbfa47420fe97ac354

Timestamp of repository steam-overlay: Wed, 17 Jan 2024 23:18:13 +0000
Head commit of repository steam-overlay: 1b2ecf815a1503215214a4a8fd21c09610c46991

sh bash 5.2_p26
ld GNU ld (Gentoo 2.41 p4) 2.41.0
ccache version 4.9 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r1::gentoo
dev-build/cmake:           3.28.1-r1::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.1-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.7::gentoo
dev-lang/rust:             1.74.1::gentoo
dev-util/ccache:           4.9::gentoo
sys-apps/baselayout:       2.14-r1::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.7-r1::gentoo
sys-devel/binutils:        2.41-r4::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240113-r1::gentoo, 14.0.1.9999::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            17.0.6::gentoo
sys-kernel/linux-headers:  6.7::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r9::gentoo
Repositories:

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

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

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

local
    location: /var/db/repos/local
    masters: gentoo
    eclass-overrides: local
    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
    eclass-overrides: local
    volatile: False

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64-v3 -O2 -pipe -fno-plt -flto=auto -ffat-lto-objects -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=x86-64-v3 -O2 -pipe -fno-plt -flto=auto -ffat-lto-objects -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing "
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS=" --buildpkg-exclude acct-* --buildpkg-exclude */*-bin"
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=x86-64-v3 -O2 -pipe -fno-plt -flto=auto -ffat-lto-objects -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 pkgdir-index-trusted 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=x86-64-v3 -O2 -pipe -fno-plt -flto=auto -ffat-lto-objects -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing "
GENTOO_MIRRORS="     https://mirror.telepoint.bg/gentoo      http://tux.rainside.sk/gentoo/     http://gentoo.mirror.root.lu/     ftp://tux.rainside.sk/gentoo/     http://ftp.vectranet.pl/gentoo/ "
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -flto=auto -ffat-lto-objects -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing"
LEX="flex"
MAKEOPTS="-j20"
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=x86-64-v3 -C opt-level=3 -C link-arg=-Wl,-z,relro -C link-arg=-Wl,-z,now -C link-arg=-Wl,-z,pack-relative-relocs -C link-arg=-fuse-ld=mold"
SHELL="/bin/bash"
USE="X aac acl acpi activities amd64 branding bzip2 cairo cdr crypt dbus declarative dri dvdr encode exif flac flatpak gdbm gif gtk gui hardened iconv icu jpeg kde kf6compat kwallet lcms libnotify libtirpc lzma mad mng mp3 mp4 mpeg multilib ncurses networkmanager nls ogg opengl pam pango pcre pdf pipewire plasma png policykit ppds pulseaudio qml qt5 readline screencast sdl seccomp 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_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="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 ssse3" 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" 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-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby33" 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, 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, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Bernard Cafarelli gentoo-dev 2024-01-28 09:15:24 UTC
An additional note, this was working with previous versions of mesa.
Downgrading to =media-libs/mesa-23.3.1, the build works (I think it was working also with 23.3.2).
But with 23.3.3 and current 23.3.4 this build failure happens
Comment 3 Petr Šabata 2024-01-29 13:27:14 UTC
I was noticing the same.  23.3.2 was the last one that worked.

Possibly related: After rebuilding mesa-23.3.4 with USE="-zink" and then verifying Firefox builds fine, no one can see me in Google Meet calls (they only see my avatar as if my video was muted) even though I can see myself in the corner just fine.  I feel like this started happening with this change, so I'll downgrade mesa to 23.3.1, with and without zink, and update here in case anyone's also affected by this weirdness.
Comment 4 Petr Šabata 2024-01-29 16:01:23 UTC
Looks like the runtime Meet issues are unrelated, apologies for the noise.
Comment 5 Larry the Git Cow gentoo-dev 2024-01-29 19:31:12 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=852d4ce6b426717d107849d8151b3dc2f1104d95

commit 852d4ce6b426717d107849d8151b3dc2f1104d95
Author:     Matt Turner <mattst88@gentoo.org>
AuthorDate: 2024-01-29 19:27:03 +0000
Commit:     Matt Turner <mattst88@gentoo.org>
CommitDate: 2024-01-29 19:31:08 +0000

    package.use.mask: Mask USE=zink on media-libs/mesa
    
    Bug: https://bugs.gentoo.org/919858
    Bug: https://bugs.gentoo.org/923054
    Signed-off-by: Matt Turner <mattst88@gentoo.org>

 profiles/default/linux/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)
Comment 6 Joonas Niilola gentoo-dev 2024-01-30 06:43:44 UTC
(In reply to Petr Šabata from comment #4)
> Looks like the runtime Meet issues are unrelated, apologies for the noise.

https://bugzilla.mozilla.org/show_bug.cgi?id=1875201#c16 check this bug, it may help you.
Comment 7 Petr Šabata 2024-01-30 14:49:34 UTC
(In reply to Joonas Niilola from comment #6)
> (In reply to Petr Šabata from comment #4)
> > Looks like the runtime Meet issues are unrelated, apologies for the noise.
> 
> https://bugzilla.mozilla.org/show_bug.cgi?id=1875201#c16 check this bug, it
> may help you.

Thank you; it seems like that could be culprit indeed.