Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 876849 - www-client/firefox-105.0.2[pgo] - fusermount3: mount failed: Operation not permitted
Summary: www-client/firefox-105.0.2[pgo] - fusermount3: mount failed: Operation not pe...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-12 09:40 UTC by Michael Egger
Modified: 2022-10-14 13:04 UTC (History)
1 user (show)

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


Attachments
emerge_info (file_876849.txt,7.39 KB, text/plain)
2022-10-12 09:40 UTC, Michael Egger
Details
build.log (build.tar.gz,658.00 KB, application/gzip)
2022-10-12 09:46 UTC, Michael Egger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Egger 2022-10-12 09:40:57 UTC
Created attachment 823703 [details]
emerge_info

Starting with firefox 105.0.2 the build fails in the PGO phase. This is always reproducible with X and wayland,
I suspect this is related to xdg-desktop-portal as journal shows dbus activations and fuser mounts. The build log isnt very verbose however:

$ journalctl -e
...
org.freedesktop.portal.Documents[266084]: fusermount3: mount failed: Operation not permitted
org.freedesktop.portal.Documents[266073]: error: fuse init failed: Can't mount path /var/tmp/portage/www-client/firefox-105.0.2/temp/run/doc
dbus-daemon[266065]: [session uid=250 pid=29004] Activating service name='org.freedesktop.impl.portal.desktop.gtk' requested by ':1.1' (uid=250 pid=29009 comm="/usr/libexec/xdg-desktop-portal")
dbus-daemon[266065]: [session uid=250 pid=29004] Successfully activated service 'org.freedesktop.impl.portal.desktop.gtk'
dbus-daemon[266065]: [session uid=250 pid=29004] Activating service name='org.freedesktop.impl.portal.desktop.kde' requested by ':1.1' (uid=250 pid=29009 comm="/usr/libexec/xdg-desktop-portal")
dbus-daemon[266065]: [session uid=250 pid=29004] Successfully activated service 'org.freedesktop.impl.portal.desktop.kde'
dbus-daemon[266065]: [session uid=250 pid=29004] Activating service name='org.freedesktop.secrets' requested by ':1.1' (uid=250 pid=29009 comm="/usr/libexec/xdg-desktop-portal")
gnome-keyring-daemon[266097]: couldn't access control socket: /var/tmp/portage/www-client/firefox-105.0.2/temp/run/keyring/control: No such file or directory
gnome-keyring-daemon[266097]: discover_other_daemon: 0
gnome-keyring-d[266097]: couldn't access control socket: /var/tmp/portage/www-client/firefox-105.0.2/temp/run/keyring/control: No such file or directory
dbus-daemon[266065]: [session uid=250 pid=29004] Successfully activated service 'org.freedesktop.secrets'
dbus-daemon[266065]: [session uid=250 pid=29004] Successfully activated service 'org.freedesktop.portal.Desktop'
systemd[1]: Started Process Core Dump (PID 266178/UID 0).
systemd-coredump[266179]: Resource limits disable core dumping for process 266011 (firefox).
systemd-coredump[266179]: Process 266011 (firefox) of user 250 dumped core.
systemd[1]: systemd-coredump@99-266178-0.service: Deactivated successfully.
systemd[1]: Started Process Core Dump (PID 266189/UID 0).
systemd-coredump[266190]: Resource limits disable core dumping for process 266010 (python).
systemd-coredump[266190]: Process 266010 (python) of user 250 dumped core.
systemd[1]: systemd-coredump@100-266189-0.service: Deactivated successfully.
...


FUSE is enabled within the kernel and should be readable by portage (250):

$ zcat /proc/config.gz | grep FUSE
CONFIG_FUSE_FS=y

$ ls -la /dev/fuse
crw-rw-rw- 1 root root 10, 229 Oct 12 09:55 /dev/fuse


$ emerge --info firefox
www-client/firefox-105.0.1::gentoo was built with the following:
USE="X clang dbus gmp-autoupdate hwaccel lto openh264 pgo pulseaudio system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp wayland -debug -eme-free -geckodriver -hardened -jack -libproxy -screencast (-selinux) -sndio -system-png (-system-python-libs) -wifi" ABI_X86="(64)" L10N="de -ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -dsb -el -en-CA -en-GB -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -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 -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"
CXXFLAGS="-march=native -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live ccache cgroup clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-log strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
LDFLAGS="-fuse-ld=mold -unwindlib=libunwind -Wl,-O2 -Wl,-z,relro,-z,now -Wl,--as-needed -Wl,--compress-debug-sections=zlib -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags"

$ emerge --info xdg-desktop-portal
sys-apps/xdg-desktop-portal-1.15.0::gentoo was built with the following:
USE="systemd -geolocation -screencast" ABI_X86="(64)"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live cgroup clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-log strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Comment 1 Michael Egger 2022-10-12 09:46:38 UTC
Created attachment 823705 [details]
build.log
Comment 2 Michael Egger 2022-10-12 09:54:09 UTC
$ emerge --info fuse

sys-fs/fuse-2.9.9-r2::gentoo was built with the following:
USE="-examples -static-libs" ABI_X86="(64)"
CFLAGS="-march=native -O3 -pipe -fno-strict-aliasing"
CXXFLAGS="-march=native -O3 -pipe -fno-strict-aliasing"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live cgroup clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-log strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
LDFLAGS="-Wl,-O2 -Wl,-z,relro,-z,now -Wl,--as-needed"


sys-fs/fuse-3.12.0::gentoo was built with the following:
USE="suid -test" ABI_X86="(64) -32 (-x32)"
FEATURES="protect-owned assume-digests binpkg-dostrip buildpkg-live merge-sync strict unknown-features-warn config-protect-if-modified xattr usersandbox cgroup unmerge-orphans news sandbox parallel-fetch clean-logs distlocks nodoc binpkg-multi-instance split-log buildpkg usersync ebuild-locks fixlafiles unmerge-logs preserve-libs network-sandbox multilib-strict pid-sandbox userpriv binpkg-logs qa-unresolved-soname-deps sfperms binpkg-docompress strict-keepdir ipc-sandbox userfetch"
LDFLAGS="-Wl,-O2 -Wl,-z,relro,-z,now -Wl,--as-needed"
Comment 3 Joonas Niilola gentoo-dev 2022-10-14 06:49:30 UTC
Always try without (s)ccache first if build fails.

If you have these "rather aggressive" flags enabled system-wide it could also be that some of your system libraries are broken, or not compatible with Firefox. If the build fails after disabling ccache, try to also disable the system-* use flags. 

Unfortunately there's not much we can do about ccache issues.
Comment 4 Michael Egger 2022-10-14 12:12:20 UTC
Disabling ccache for www-client/firefox indeed fixed the issue.
Thanks for the quick response and sorry for the noise,
I will deactive ccache and all system-* USE flags next time before filing a bug.
Comment 5 Joonas Niilola gentoo-dev 2022-10-14 13:04:00 UTC
Glad to hear it worked!