Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 912805 - www-client/firefox-116.0.3: Directory (modules/desktop_capture/desktop_capture_gn) registered multiple times on ppc64le
Summary: www-client/firefox-116.0.3: Directory (modules/desktop_capture/desktop_captur...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-22 07:30 UTC by darkbasic
Modified: 2023-08-23 11:37 UTC (History)
0 users

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


Attachments
build.log (build.log,48.27 KB, text/plain)
2023-08-22 07:30 UTC, darkbasic
Details
build.log.gz (firefox-116-build.log.gz,712.59 KB, application/gzip)
2023-08-23 10:23 UTC, darkbasic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darkbasic 2023-08-22 07:30:16 UTC
0:31.54 js/src> creating ./config.data
 0:31.58 Creating config.status
 0:32.48 Reticulating splines...
 0:33.19  0:00.80 W File already read. Skipping: /var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/intl/components/moz.build
 0:33.84  0:01.45 W File already read. Skipping: /var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/gfx/angle/targets/angle_common/moz.build
 0:36.50 Traceback (most recent call last):
 0:36.50   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1086, in read_mozbuild
 0:36.50     for s in self._read_mozbuild(
 0:36.50   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1220, in _read_mozbuild
 0:36.50     raise SandboxValidationError(
 0:36.50 mozbuild.frontend.reader.SandboxValidationError:
 0:36.50 ==============================
 0:36.50 FATAL ERROR PROCESSING MOZBUILD FILE
 0:36.50 ==============================
 0:36.50 
 0:36.50 The error occurred while processing the following file or one of the files it includes:
 0:36.50 
 0:36.50     /var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/third_party/libwebrtc/moz.build
 0:36.50 
 0:36.50 The error occurred when validating the result of the execution. The reported error is:
 0:36.50 
 0:36.50     Directory (modules/desktop_capture/desktop_capture_gn) registered multiple times
 0:36.50 
 0:36.50 
 0:36.50 
 0:36.50 During handling of the above exception, another exception occurred:
 0:36.50 
 0:36.50 Traceback (most recent call last):
 0:36.50   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/configure.py", line 345, in <module>
 0:36.50     sys.exit(main(sys.argv))
 0:36.50              ^^^^^^^^^^^^^^
 0:36.50   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/configure.py", line 156, in main
 0:36.50     return config_status(config)
 0:36.50            ^^^^^^^^^^^^^^^^^^^^^
 0:36.50   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/configure.py", line 294, in config_status
 0:36.50     return config_status(args=[], **sanitized_config)
 0:36.50            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:36.50   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/config_status.py", line 152, in config_status
 0:36.50     definitions = list(definitions)
 0:36.50                   ^^^^^^^^^^^^^^^^^
 0:36.50   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/emitter.py", line 144, in emit
 0:36.50     for out in output:
 0:36.50   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 914, in read_topsrcdir
 0:36.50     for r in self.read_mozbuild(path, self.config):
 0:36.50   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1092, in read_mozbuild
 0:36.50     raise bre
 0:36.50   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1086, in read_mozbuild
 0:36.50     for s in self._read_mozbuild(
 0:36.50   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1250, in _read_mozbuild
 0:36.51     for res in self.read_mozbuild(
 0:36.51   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1092, in read_mozbuild
 0:36.51     raise bre
 0:36.51   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1086, in read_mozbuild
 0:36.51     for s in self._read_mozbuild(
 0:36.51   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1250, in _read_mozbuild
 0:36.51     for res in self.read_mozbuild(
 0:36.51   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1092, in read_mozbuild
 0:36.51     raise bre
 0:36.51   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1086, in read_mozbuild
 0:36.51     for s in self._read_mozbuild(
 0:36.51   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1250, in _read_mozbuild
 0:36.51     for res in self.read_mozbuild(
 0:36.51   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1092, in read_mozbuild
 0:36.51     raise bre
 0:36.51   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1086, in read_mozbuild
 0:36.51     for s in self._read_mozbuild(
 0:36.51   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1250, in _read_mozbuild
 0:36.51     for res in self.read_mozbuild(
 0:36.51   File "/var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/python/mozbuild/mozbuild/frontend/reader.py", line 1110, in read_mozbuild
 0:36.51     raise BuildReaderError(
 0:36.51 mozbuild.frontend.reader.BuildReaderError:
 0:36.51 ==============================
 0:36.51 FATAL ERROR PROCESSING MOZBUILD FILE
 0:36.51 ==============================
 0:36.51 
 0:36.51 The error occurred while processing the following file:
 0:36.51 
 0:36.52     /var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/third_party/libwebrtc/moz.build
 0:36.52 
 0:36.52 The error occurred when validating the result of the execution. The reported error is:
 0:36.52 
 0:36.52 
 0:36.52     ==============================
 0:36.52     FATAL ERROR PROCESSING MOZBUILD FILE
 0:36.52     ==============================
 0:36.52 
 0:36.52     The error occurred while processing the following file or one of the files it includes:
 0:36.52 
 0:36.52         /var/tmp/portage/www-client/firefox-116.0.3/work/firefox-116.0.3/third_party/libwebrtc/moz.build
 0:36.52 
 0:36.52     The error occurred when validating the result of the execution. The reported error is:
 0:36.52 
 0:36.52         Directory (modules/desktop_capture/desktop_capture_gn) registered multiple times
 0:36.52 
 0:36.52 
 0:36.52 
*** Fix above errors and then restart with "./mach build"

Reproducible: Always
Comment 1 darkbasic 2023-08-22 07:30:32 UTC
Created attachment 868447 [details]
build.log

# emerge --info
Portage 3.0.49 (python 3.11.4-final-0, default/linux/ppc64le/17.0/desktop/gnome/systemd/merged-usr, gcc-12, glibc-2.37-r3, 6.4.11-gentoo-dist ppc64le)
=================================================================
System uname: Linux-6.4.11-gentoo-dist-ppc64le-POWER9,_altivec_supported-with-glibc2.37
KiB Mem:    65402456 total,  12763736 free
KiB Swap:   16777212 total,  16767404 free
Timestamp of repository bobwya: Sat, 19 Aug 2023 18:32:32 +0000
Head commit of repository bobwya: fd5d0e042f9cb9aa4dd338da8191bfcef9a14880

Timestamp of repository gentoo: Tue, 22 Aug 2023 06:16:31 +0000
Head commit of repository gentoo: 82224636b07961da5100b77793586ae8227914aa

Timestamp of repository guru: Mon, 21 Aug 2023 12:46:36 +0000
Head commit of repository guru: 58d4bbb2970b639107fc98d740a5e5e6c900f5e0

Timestamp of repository pf4public: Mon, 21 Aug 2023 22:31:36 +0000
Head commit of repository pf4public: 5d9e1da159f01c46adeab3e82194ffe7f8635e8a

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
ccache version 4.8.2 [disabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.36.1-r3::gentoo
dev-lang/python:           3.10.12::gentoo, 3.11.4::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/ccache:           4.8.2::gentoo
dev-util/cmake:            3.26.5-r2::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-apps/systemd:          253.6::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230526::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:            15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

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

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000
    volatile: False
    sync-git-verify-commit-signature: yes

darkbasic
    location: /var/db/repos/darkbasic
    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

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

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="@FREE @FREE unRAR fping freedist Microsoft-vscode SSPL-1"
CBUILD="powerpc64le-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
CHOST="powerpc64le-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
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 -mcpu=power9 -mtune=power9"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 -mcpu=power9 -mtune=power9"
GENTOO_MIRRORS="https://gentoo.mirror.garr.it/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j32"
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 a52 aac acl alsa bluetooth branding btrfs bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gpm grub gstreamer gtk gui iconv icu introspection ipv6 jpeg keyring lcms libnotify mad mng mp3 mp4 mpeg nautilus ncurses networkmanager nls nptl ogg opencl opengl openmp pam pango pcre pdf pipewire png policykit ppc64 ppds pulseaudio qt5 readline screencast sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff tracker truetype udev udisks unicode upower usb vaapi vorbis vpx vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zeroconf zlib" 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_PPC="altivec vsx vsx2 vsx3" 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" 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="postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" QEMU_SOFTMMU_TARGETS="ppc ppc64 i386 x86_64 arm aarch64" QEMU_USER_TARGETS="ppc ppc64 i386 x86_64 arm aarch64" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeon" 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 Joonas Niilola gentoo-dev 2023-08-22 18:16:34 UTC
https://www.talospace.com/2023/08/firefox-116-on-power.html could you try with the updated libwebrtc patch here?
Comment 3 darkbasic 2023-08-23 10:23:13 UTC
Created attachment 868519 [details]
build.log.gz

The patch fixes compilation but unfortunately it still fails on the install phase:

27:20.70 W 15 compiler warnings present.
27:22.00 W Overall system resources - Wall time: 1639s; CPU: 0%; Read bytes: 0; Write bytes: 0; Read time: 0; Write time: 0
27:23.34 W (suppressed 11 warnings in third-party code)
27:23.34 W (suppressed 3 warnings in /var/tmp/portage/www-client/firefox-116.0.3/work/firefox_build/dist/include/mozilla)
27:23.34 W warning: /usr/lib/gcc/powerpc64le-unknown-linux-gnu/12/include/g++-v12/bits/atomic_base.h:618:34 [-Wstringop-overflow=] '__atomic_fetch_add_4' writing 4 bytes into a region of size 0 overflows the destination
To view resource usage of the build, run |mach resource-usage|.
27:23.34 We know it took a while, but your build finally finished successfully!
27:23.34 If you are building Firefox often, SCCache can save you a lot of time. You can learn more here: https://firefox-source-docs.mozilla.org/setup/configuring_build_options.html#sccache
To take your build for a test drive, run: |mach run|
For more information on what to do now, see https://firefox-source-docs.mozilla.org/setup/contributing_code.html
>>> Source compiled.
>>> Test phase [not enabled]: www-client/firefox-116.0.3

>>> Install www-client/firefox-116.0.3 into /var/tmp/portage/www-client/firefox-116.0.3/image
 0:01.66 /usr/bin/gmake -C . -j32 -s -w install
 0:01.76 gmake: Entering directory '/var/tmp/portage/www-client/firefox-116.0.3/work/firefox_build'
 0:01.77 gmake[1]: Entering directory '/var/tmp/portage/www-client/firefox-116.0.3/work/firefox_build/browser/installer'
 0:08.99 Generating XPT artifacts archive (firefox-116.0.3.en-US.linux-powerpc64le.xpt_artifacts.zip)
 0:10.33 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-116.0.3/work/firefox_build/browser/installer'
 0:10.33 gmake: Leaving directory '/var/tmp/portage/www-client/firefox-116.0.3/work/firefox_build'
!!! doexe: /var/tmp/portage/www-client/firefox-116.0.3/work/firefox_build/dist/bin/vaapitest does not exist
 * ERROR: www-client/firefox-116.0.3::gentoo failed (install phase):
 *   doexe failed
Comment 4 Joonas Niilola gentoo-dev 2023-08-23 10:32:56 UTC
I see,

# Hardware-accelerated video decode with VAAPI and V4L2 on Linux
# ==============================================================
@depends(target, toolkit_gtk) 
def vaapi(target, toolkit_gtk):
    # VAAPI is mostly used on x86(-64) but is sometimes used on ARM/ARM64 SOCs.
    if target.cpu in ("arm", "aarch64", "x86", "x86_64") and toolkit_gtk:
        return True


@depends(target, toolkit_gtk)
def v4l2(target, toolkit_gtk):
    # V4L2 decode is only used in GTK/Linux and generally only appears on
    # embedded SOCs.
    if target.cpu in ("arm", "aarch64", "riscv64") and toolkit_gtk:
        return True
Comment 5 Larry the Git Cow gentoo-dev 2023-08-23 11:37:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=916dd4eb232a525e3d0eabebda202b5dfc51c175

commit 916dd4eb232a525e3d0eabebda202b5dfc51c175
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-08-23 11:30:29 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-08-23 11:30:29 +0000

    www-client/firefox: ppc64 fixes on rapid (116.0)
    
    Closes: https://bugs.gentoo.org/912805
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/Manifest               |  2 +-
 www-client/firefox/firefox-116.0.3.ebuild | 16 ++++++++++++----
 2 files changed, 13 insertions(+), 5 deletions(-)