Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913224 - www-client/firefox-117.0: FATAL ERROR PROCESSING third_party/libwebrtc/moz.build on ppc64
Summary: www-client/firefox-117.0: FATAL ERROR PROCESSING third_party/libwebrtc/moz.bu...
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-29 20:10 UTC by darkbasic
Modified: 2023-09-06 07:48 UTC (History)
1 user (show)

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


Attachments
build.log (firefox-117-build.log,47.96 KB, text/plain)
2023-08-29 20:11 UTC, darkbasic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darkbasic 2023-08-29 20:10:55 UTC
0:30.57 Creating config.status
 0:31.60 Reticulating splines...
 0:32.42  0:00.92 W File already read. Skipping: /var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/intl/components/moz.build
 0:33.09  0:01.60 W File already read. Skipping: /var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/gfx/angle/targets/angle_common/moz.build
 0:35.77 Traceback (most recent call last):
 0:35.77   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1086, in read_mozbuild
 0:35.78     for s in self._read_mozbuild(
 0:35.78   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1220, in _read_mozbuild
 0:35.78     raise SandboxValidationError(
 0:35.78 mozbuild.frontend.reader.SandboxValidationError:
 0:35.78 ==============================
 0:35.78 FATAL ERROR PROCESSING MOZBUILD FILE
 0:35.78 ==============================
 0:35.78 
 0:35.78 The error occurred while processing the following file or one of the files it includes:
 0:35.78 
 0:35.78     /var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/third_party/libwebrtc/moz.build
 0:35.78 
 0:35.78 The error occurred when validating the result of the execution. The reported error is:
 0:35.78 
 0:35.78     Directory (modules/desktop_capture/desktop_capture_gn) registered multiple times
 0:35.78 
 0:35.78 
 0:35.78 
 0:35.78 During handling of the above exception, another exception occurred:
 0:35.78 
 0:35.78 Traceback (most recent call last):
 0:35.78   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/configure.py", line 329, in <module>
 0:35.78     sys.exit(main(sys.argv))
 0:35.78              ^^^^^^^^^^^^^^
 0:35.78   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/configure.py", line 156, in main
 0:35.78     return config_status(config)
 0:35.78            ^^^^^^^^^^^^^^^^^^^^^
 0:35.78   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/configure.py", line 278, in config_status
 0:35.78     return config_status(args=[], **sanitized_config)
 0:35.78            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/config_status.py", line 152, in config_status
 0:35.79     definitions = list(definitions)
 0:35.79                   ^^^^^^^^^^^^^^^^^
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/emitter.py", line 144, in emit
 0:35.79     for out in output:
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 914, in read_topsrcdir
 0:35.79     for r in self.read_mozbuild(path, self.config):
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1092, in read_mozbuild
 0:35.79     raise bre
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1086, in read_mozbuild
 0:35.79     for s in self._read_mozbuild(
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1250, in _read_mozbuild
 0:35.79     for res in self.read_mozbuild(
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1092, in read_mozbuild
 0:35.79     raise bre
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1086, in read_mozbuild
 0:35.79     for s in self._read_mozbuild(
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1250, in _read_mozbuild
 0:35.79     for res in self.read_mozbuild(
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1092, in read_mozbuild
 0:35.79     raise bre
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1086, in read_mozbuild
 0:35.79     for s in self._read_mozbuild(
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1250, in _read_mozbuild
 0:35.79     for res in self.read_mozbuild(
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1092, in read_mozbuild
 0:35.79     raise bre
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1086, in read_mozbuild
 0:35.79     for s in self._read_mozbuild(
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1250, in _read_mozbuild
 0:35.79     for res in self.read_mozbuild(
 0:35.79   File "/var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/python/mozbuild/mozbuild/frontend/reader.py", line 1110, in read_mozbuild
 0:35.79     raise BuildReaderError(
 0:35.79 mozbuild.frontend.reader.BuildReaderError:
 0:35.79 ==============================
 0:35.79 FATAL ERROR PROCESSING MOZBUILD FILE
 0:35.79 ==============================
 0:35.79 
 0:35.79 The error occurred while processing the following file:
 0:35.79 
 0:35.79     /var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/third_party/libwebrtc/moz.build
 0:35.79 
 0:35.79 The error occurred when validating the result of the execution. The reported error is:
 0:35.79 
 0:35.79 
 0:35.80     ==============================
 0:35.80     FATAL ERROR PROCESSING MOZBUILD FILE
 0:35.80     ==============================
 0:35.80 
 0:35.80     The error occurred while processing the following file or one of the files it includes:
 0:35.80 
 0:35.80         /var/tmp/portage/www-client/firefox-117.0/work/firefox-117.0/third_party/libwebrtc/moz.build
 0:35.80 
 0:35.80     The error occurred when validating the result of the execution. The reported error is:
 0:35.80 
 0:35.80         Directory (modules/desktop_capture/desktop_capture_gn) registered multiple times
 0:35.80 
 0:35.80 
 0:35.80 
*** Fix above errors and then restart with "./mach build"
Comment 1 darkbasic 2023-08-29 20:11:33 UTC
Created attachment 869007 [details]
build.log

# emerge --info
Portage 3.0.49 (python 3.11.5-final-0, default/linux/ppc64le/17.0/desktop/gnome/systemd/merged-usr, gcc-12, glibc-2.37-r3, 6.4.12-gentoo-dist ppc64le)
=================================================================
System uname: Linux-6.4.12-gentoo-dist-ppc64le-POWER9,_altivec_supported-with-glibc2.37
KiB Mem:    65402456 total,  10218872 free
KiB Swap:   16777212 total,  16710388 free
Timestamp of repository bobwya: Wed, 23 Aug 2023 07:46:58 +0000
Head commit of repository bobwya: 107b0cb81507e3b82d3b85d0525a43e8cc493d0b

Timestamp of repository gentoo: Tue, 29 Aug 2023 19:35:05 +0000
Head commit of repository gentoo: 8404de6b3e4f060014f27ae9c02f83d8eb5367ca

Timestamp of repository guru: Tue, 29 Aug 2023 15:50:53 +0000
Head commit of repository guru: c67087f15d04115b3bed7bd32a4f93a9147bd77a

Timestamp of repository pf4public: Tue, 29 Aug 2023 15:50:58 +0000
Head commit of repository pf4public: b0ab88335eba2e2316a7381af4259dd719970d81

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.13::gentoo, 3.11.5::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-09-01 18:50:12 UTC
*sigh*. I really think disabling webrtc on ppc64 is the way to go. Otherwise looks like the patch needs to be rebased every 1-2 releases. 

I see https://www.talospace.com/2023/09/firefox-117-on-power.html they haven't updated the patch for everyone either.
Comment 3 Joonas Niilola gentoo-dev 2023-09-01 19:18:57 UTC
Or please update the patch, paste it here and I'll update the tarball. It looks rather simple.
Comment 4 darkbasic 2023-09-02 07:48:53 UTC
Uhm... it looks like the webrtc patch didn't change according to talosspace: https://www.talospace.com/2023/09/firefox-117-on-power.html

About disabling webrtc, that would make Firefox pointless for me. I wouldn't do that, especially now that a proper webrtc fix is supposed to land mainline sometimes soon.
Comment 5 darkbasic 2023-09-04 08:33:55 UTC
I confirm you ended up using the old firefox 114 libwebrtc patches for 117 instead of the ones from firefox 116.
Comment 6 Joonas Niilola gentoo-dev 2023-09-04 11:35:48 UTC
Sorry I don't understand. Did you swap the patch from 116 to the old patch from 114? Or did you have the same patch applied twice? 

I now also noticed you're using ccache. Anyway, did you solve this on your own? Is there something that I need to update?
Comment 7 darkbasic 2023-09-04 12:58:50 UTC
I'm saying that instead of carrying over the old firefox 116 webrtc patch you mistakenly resurrected the old 114 patch and thus it doesn't compile. Firefox 116 libwebrtc patch works fine on 117. clang's ppc64 patch doesn't apply anymore, but I got rid of it since I couldn't compile 116 with clang either.
Comment 8 Joonas Niilola gentoo-dev 2023-09-04 14:15:57 UTC
Uuh... how did that happen I wonder :P 

I'll update it tonight or tomorrow morning, thanks for noticing!
Comment 9 Larry the Git Cow gentoo-dev 2023-09-05 06:33:20 UTC
The bug has been closed via the following commit(s):

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

commit bdacb6a0d8143275063aa5ec1e7f632c13d3b25a
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2023-09-05 06:32:41 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2023-09-05 06:32:41 +0000

    www-client/firefox: update the ppc64 webrtc patch on 117.0
    
    Closes: https://bugs.gentoo.org/913224
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/Manifest             | 2 +-
 www-client/firefox/firefox-117.0.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-05 15:19:48 UTC
*** Bug 913674 has been marked as a duplicate of this bug. ***