Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910290 - www-client/firefox-115.0.2[pgo,wayland]: could not connect to wayland socket caused by WLR_RENDERER=vulkan
Summary: www-client/firefox-115.0.2[pgo,wayland]: could not connect to wayland socket ...
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-13 09:57 UTC by Kostadin Shishmanov
Modified: 2023-10-04 06:29 UTC (History)
2 users (show)

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


Attachments
build log compressed with xz (firefox.log.xz,343.02 KB, application/x-xz)
2023-07-13 09:57 UTC, Kostadin Shishmanov
Details
/var/tmp/portage/www-client/firefox-115.0.2/temp/environment (environment,236.98 KB, text/plain)
2023-07-13 09:58 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-13 09:57:31 UTC
Created attachment 865450 [details]
build log compressed with xz

I am using the sway WM and start my session with dbus-run-session sway.


USE flags for firefox: www-client/firefox-115.0.2:rapid::gentoo  USE="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 -X -debug -eme-free -geckodriver -hardened -hwaccel -jack -libproxy (-selinux) -sndio (-system-python-libs) (-valgrind) -wifi"


These messages appear right after the source gets configured. 

00:00:00.000 [backend/backend.c:297] Loading user-specified backends due to WLR_BACKENDS: headless
00:00:00.000 [backend/headless/backend.c:68] Creating headless backend
00:00:00.000 [render/wlr_renderer.c:363] Opening DRM render node '/dev/dri/renderD128'
00:00:00.000 [render/wlr_renderer.c:366] Failed to open '/dev/dri/renderD128': Permission denied
00:00:00.000 [util/env.c:25] Loading WLR_RENDERER option: vulkan
00:00:00.000 [render/wlr_renderer.c:271] Cannot create Vulkan renderer: no DRM FD available
00:00:00.000 [render/wlr_renderer.c:333] Could not initialize renderer
00:00:00.000 [tinywl/tinywl.c:843] failed to create wlr_renderer

And these are I think when the profiling starts:

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
[Parent 23264, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.943: invalid (NULL) pointer instance
[Parent 23264, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.943: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 23264, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.943: invalid (NULL) pointer instance
[Parent 23264, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.943: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 23264, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.943: invalid (NULL) pointer instance
[Parent 23264, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.943: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 23264, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.943: invalid (NULL) pointer instance
[Parent 23264, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.943: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 23264, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.943: invalid (NULL) pointer instance
[Parent 23264, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.943: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 23264, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.943: invalid (NULL) pointer instance
[Parent 23264, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.943: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 23264, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: invalid (NULL) pointer instance
[Parent 23264, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 23264, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: invalid (NULL) pointer instance
[Parent 23264, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 23264, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: invalid (NULL) pointer instance
[Parent 23264, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 23264, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: invalid (NULL) pointer instance
[Parent 23264, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 23264, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: invalid (NULL) pointer instance
[Parent 23264, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 23264, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: invalid (NULL) pointer instance
[Parent 23264, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
[Parent 23264, Main Thread] WARNING: invalid (NULL) pointer instance: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: invalid (NULL) pointer instance
[Parent 23264, Main Thread] WARNING: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed: 'glib warning', file /var/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/toolkit/xre/nsSigHandlers.cpp:167

(firefox:23264): GLib-GObject-CRITICAL **: 12:48:05.944: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
Crash Annotation GraphicsCriticalError: |[0][GFX1-]: glxtest: Could not connect to wayland socket (t=0.201931) [GFX1-]: glxtest: Could not connect to wayland socket

(firefox:23264): Gtk-WARNING **: 12:48:05.952: cannot open display:
Firefox exited with code -11 during profile initialization
Comment 1 Kostadin Shishmanov 2023-07-13 09:57:50 UTC
Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1/desktop/systemd/merged-usr, gcc-13, glibc-2.37-r3, 6.4.3-gentoo-thp-lto x86_64)
=================================================================
System uname: Linux-6.4.3-gentoo-thp-lto-x86_64-13th_Gen_Intel-R-_Core-TM-_i5-13600KF-with-glibc2.37
KiB Mem:    16243756 total,   7481532 free
KiB Swap:   33020920 total,  30264312 free
Timestamp of repository gentoo: Thu, 13 Jul 2023 08:47:04 +0000
Head commit of repository gentoo: e2665705cd460a5d2d370091f495c73d7c76d6b9

Timestamp of repository ace: Wed, 12 Jul 2023 06:31:47 +0000
Head commit of repository ace: 60a00fae601be991ede3bdf39e2aa16eeddfb7d2

Timestamp of repository brave-overlay: Fri, 07 Jul 2023 14:46:45 +0000
Head commit of repository brave-overlay: dbd8d3e0310dde70266f9e3dc6f319132e0a4b79

Timestamp of repository guru: Wed, 12 Jul 2023 09:01:48 +0000
Head commit of repository guru: 11ceed1327e9f91e43be8d14f82f68ba34808c93

Timestamp of repository kde: Tue, 11 Jul 2023 19:48:46 +0000
Head commit of repository kde: 09a8e97f7f5dc016cade6a9165f29d86bd930f1c

Head commit of repository librewolf: 676b38a78c43b7052ede05a7344ec20cabf47936

Timestamp of repository mv: Sun, 09 Jul 2023 16:46:40 +0000
Head commit of repository mv: 54b369bfa722af470716a8d53db22496b6c44f57

Timestamp of repository pf4public: Wed, 12 Jul 2023 23:31:44 +0000
Head commit of repository pf4public: 0d2674f5710abe6b3a41f685d8aeaa73cf1a7f3f

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

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.14::gentoo
sys-apps/sandbox:          2.36::gentoo
sys-apps/systemd:          253.6::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

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

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

librewolf
    location: /var/db/repos/librewolf
    sync-type: git
    sync-uri: https://gitlab.com/librewolf-community/browser/gentoo.git
    masters: gentoo
    volatile: False

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

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fno-plt -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="-O2 -pipe -fno-plt -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="-O2 -pipe -fno-plt -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="-O2 -pipe -fno-plt -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.utf8"
LDFLAGS="-Wl,-O1,--as-needed -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"
SHELL="/bin/bash"
USE="X aac acl acpi amd64 branding bzip2 cairo cdr clang cli crypt dbus dri dvdr encode exif flac fortran gdbm gif gtk gui iconv icu jpeg lcms libnotify libtirpc llvm-libunwind mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf pipewire png policykit ppds pulseaudio qt5 readline screencast sdl seccomp sound ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vaapi vulkan wayland 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, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Kostadin Shishmanov 2023-07-13 09:58:08 UTC
Created attachment 865451 [details]
/var/tmp/portage/www-client/firefox-115.0.2/temp/environment
Comment 3 Joonas Niilola gentoo-dev 2023-07-13 17:12:44 UTC
> cannot open display:

Hmmmm why do I remember sway having this problem exactly. If you have another wayland env installed, could you login there and try again? KDE for example.
Comment 4 Kostadin Shishmanov 2023-07-14 07:51:10 UTC
It's fine on KDE as you can see from my other bug, I just tested and the same thing happens on Hyprland, maybe it is related to the fact that they both use wlroots directly? That's an enormous guess tho.
Comment 5 Kostadin Shishmanov 2023-07-14 07:51:34 UTC
(In reply to Kostadin Shishmanov from comment #4)
> It's fine on KDE as you can see from my other bug, I just tested and the
> same thing happens on Hyprland, maybe it is related to the fact that they
> both use wlroots directly? That's an enormous guess tho.

Other bug: https://bugs.gentoo.org/909724
Comment 6 Joseph McElroy 2023-07-16 12:38:48 UTC
I encountered this bug when trying to rebuild firefox with the -X use flag on Hyprland. With the X flag enabled, firefox 115.0.2 built without issue for me. pgo was enabled in both cases.
Comment 7 Kostadin Shishmanov 2023-07-16 13:42:37 UTC
(In reply to Joseph McElroy from comment #6)
> I encountered this bug when trying to rebuild firefox with the -X use flag
> on Hyprland. With the X flag enabled, firefox 115.0.2 built without issue
> for me. pgo was enabled in both cases.

Works for me too after enabling the USE flag, but I still think it's a bug and should be fixed, considering they are going to make Wayland-only builds a thing with version 116.
Comment 8 Joonas Niilola gentoo-dev 2023-07-16 13:50:43 UTC
(In reply to Kostadin Shishmanov from comment #7)
> (In reply to Joseph McElroy from comment #6)
> > I encountered this bug when trying to rebuild firefox with the -X use flag
> > on Hyprland. With the X flag enabled, firefox 115.0.2 built without issue
> > for me. pgo was enabled in both cases.
> 
> Works for me too after enabling the USE flag, but I still think it's a bug
> and should be fixed, considering they are going to make Wayland-only builds
> a thing with version 116.

Wayland-only has been possible for over a year now, 
https://gitweb.gentoo.org/repo/gentoo.git/commit/www-client/firefox?id=1d0fae1958a7d239ab8d4877567074c026b92145

but they did make tons of bug fixes related to wayland-only OR X-only builds that landed in 116.

As to -X +wayland +pgo builds, I don't have a way to test it, so someone with wlroots-setup needs to figure it out and send a patch / tell me how to fix it. Or take it upstream.
Comment 9 Kostadin Shishmanov 2023-07-26 09:27:15 UTC
I've switched back to KDE, and these lines were still present:

00:00:00.000 [backend/backend.c:297] Loading user-specified backends due to WLR_BACKENDS: headless
00:00:00.000 [backend/headless/backend.c:68] Creating headless backend
00:00:00.000 [render/wlr_renderer.c:363] Opening DRM render node '/dev/dri/renderD128'
00:00:00.000 [render/wlr_renderer.c:366] Failed to open '/dev/dri/renderD128': Permission denied
00:00:00.000 [util/env.c:25] Loading WLR_RENDERER option: vulkan
00:00:00.000 [render/wlr_renderer.c:271] Cannot create Vulkan renderer: no DRM FD available
00:00:00.000 [render/wlr_renderer.c:333] Could not initialize renderer
00:00:00.000 [tinywl/tinywl.c:843] failed to create wlr_renderer

Then, I remembered that I have WLR_RENDERER=vulkan in my /etc/environment, so I removed it and now it instead says:

00:00:00.000 [backend/backend.c:297] Loading user-specified backends due to WLR_BACKENDS: headless
00:00:00.000 [backend/headless/backend.c:68] Creating headless backend
00:00:00.000 [render/wlr_renderer.c:363] Opening DRM render node '/dev/dri/renderD128'
00:00:00.000 [render/wlr_renderer.c:366] Failed to open '/dev/dri/renderD128': Permission denied
00:00:00.000 [render/wlr_renderer.c:271] Cannot create GLES2 renderer: no DRM FD available. Skipping!
00:00:00.000 [render/pixman/renderer.c:515] Creating pixman renderer
00:00:00.000 [render/allocator/allocator.c:121] Trying to create shm allocator
00:00:00.000 [render/allocator/shm.c:118] Created shm allocator
00:00:00.000 [xcursor/wlr_xcursor.c:243] Loaded cursor theme 'default' at size 24 (26 available cursors)
00:00:00.000 [backend/headless/backend.c:16] Starting headless backend
00:00:00.001 [tinywl/tinywl.c:985] Running Wayland compositor on WAYLAND_DISPLAY=wayland-0
00:00:00.001 [types/output/render.c:75] Choosing primary buffer format XR24 (0x34325258) for output 'HEADLESS-1'
00:00:00.001 [render/swapchain.c:105] Allocating new swapchain buffer
00:00:00.001 [render/pixman/renderer.c:120] Created pixman buffer 1280x720


But the build still failed:

00:21:51.615 [types/wlr_compositor.c:673] New wlr_surface 0x55b12a735780 (res 0x55b12a735ae0)
00:21:51.615 [types/wlr_compositor.c:673] New wlr_surface 0x55b12a735c00 (res 0x55b12a735f60)
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:52.497 [types/wlr_compositor.c:673] New wlr_surface 0x55b12a736d00 (res 0x55b12a73aee0)
00:21:52.497 [types/wlr_compositor.c:673] New wlr_surface 0x55b12a737060 (res 0x55b12a73afc0)
libEGL warning: failed to get driver name for fd 0

libEGL warning: MESA-LOADER: failed to retrieve device information

libEGL warning: failed to get driver name for fd 0

00:21:52.816 [types/wlr_compositor.c:673] New wlr_surface 0x55b12a737550 (res 0x55b12a7378b0)
00:21:53.438 [types/wlr_compositor.c:673] New wlr_surface 0x55b12a737940 (res 0x55b12a737ca0)
00:21:53.438 [types/wlr_compositor.c:673] New wlr_surface 0x55b12a737d30 (res 0x55b12a7378b0)
00:21:53.465 [types/wlr_compositor.c:673] New wlr_surface 0x55b12a738090 (res 0x55b12a737ca0)
00:21:53.632 [types/wlr_compositor.c:673] New wlr_surface 0x55b12a739060 (res 0x55b12a7393c0)
00:21:53.632 [types/wlr_compositor.c:673] New wlr_surface 0x55b12a7394e0 (res 0x55b12a739840)
00:21:53.639 [types/xdg_shell/wlr_xdg_surface.c:387] new xdg_surface 0x55b12a7398d0 (res 0x55b12a739a00)
00:21:53.640 [types/wlr_compositor.c:673] New wlr_surface 0x55b12a73a310 (res 0x55b12a73a670)
Redirecting call to abort() to mozalloc_abort

Exiting due to channel error.
00:21:53.744 [types/wlr_compositor.c:673] New wlr_surface 0x55b12a737ca0 (res 0x55b12a736c10)
00:21:53.744 [types/wlr_compositor.c:673] New wlr_surface 0x55b12a73a280 (res 0x55b12a734230)
Exiting due to channel error.
Firefox exited with code -11 during profile initialization
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 '['/mnt/tmp/portage/www-client/firefox-115.0.2/work/firefox_build/_virtualenvs/build/bin/python', '/mnt/tmp/portage/www-client/firefox-115.0.2/work/firefox-115.0.2/build/pgo/profileserver.py']' returned non-zero exit status 245.

I am going to poke a bit more at it and try and figure out what the issue is.
Comment 10 Larry the Git Cow gentoo-dev 2023-08-01 10:04:33 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 11 Joseph McElroy 2023-08-12 21:18:59 UTC
Attempted the same -X +wayland build with firefox 116 on Hyprland with WLR_RENDERER=vulkan earlier; the issue is still present.