Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 866293 - www-client/firefox-104: libxul.so: hidden symbol `_ZN6webrtc15DesktopCapturer20CreateScreenCapturerERKNS_21DesktopCaptureOptionsE' isn't defined
Summary: www-client/firefox-104: libxul.so: hidden symbol `_ZN6webrtc15DesktopCapturer...
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: 2022-08-24 08:37 UTC by darkbasic
Modified: 2022-08-30 08:26 UTC (History)
3 users (show)

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


Attachments
firefox-104-build.log.xz (build.log.xz,540.67 KB, application/x-xz)
2022-08-24 08:40 UTC, darkbasic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darkbasic 2022-08-24 08:37:40 UTC
Since Firefox 103 I cannot compile it on ppc64le anymore: both Firefox 103 and 104 give me the same error:

35:03.03    Compiling ipcclientcerts-static v0.1.0 (/var/tmp/portage/www-client/firefox-104.0/work/firefox-104.0/security/manager/ssl/ipcclientcerts)
35:03.03      Running `CARGO=/usr/lib/rust/1.62.1/bin/cargo-1.62.1 CARGO_CRATE_NAME=ipcclientcerts_static CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/firefox-104.0/work/firefox-104.0/security/manager/ssl/ipcclientcerts CARGO_PKG_AUTHORS='Dana Keeler <dkeeler@mozilla.com>' CARGO_PKG_DESCRIPTION='' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='' CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=ipcclientcerts-static CARGO_PKG_REPOSITORY='' CARGO_PKG_VERSION=0.1.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=1 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' CARGO_PRIMARY_PACKAGE=1 LD_LIBRARY_PATH='/var/tmp/portage/www-client/firefox-104.0/work/firefox_build/release/deps:/usr/lib/rust/1.62.1/lib' /usr/bin/rustc --crate-name ipcclientcerts_static --edition=2018 security/manager/ssl/ipcclientcerts/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type staticlib --emit=dep-info,link -C opt-level=2 -C panic=abort -C embed-bitcode=no -C metadata=9a182b6ec33527bb -C extra-filename=-9a182b6ec33527bb --out-dir /var/tmp/portage/www-client/firefox-104.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps --target powerpc64le-unknown-linux-gnu -C linker=/var/tmp/portage/www-client/firefox-104.0/work/firefox-104.0/build/cargo-linker -L dependency=/var/tmp/portage/www-client/firefox-104.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps -L dependency=/var/tmp/portage/www-client/firefox-104.0/work/firefox_build/release/deps --extern byteorder=/var/tmp/portage/www-client/firefox-104.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps/libbyteorder-2e7927eab6e689cc.rlib --extern once_cell=/var/tmp/portage/www-client/firefox-104.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps/libonce_cell-49ac8c294604e7f3.rlib --extern pkcs11=/var/tmp/portage/www-client/firefox-104.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps/libpkcs11-eaf70ac2cb856cf4.rlib --extern rsclientcerts=/var/tmp/portage/www-client/firefox-104.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps/librsclientcerts-76b83cb84838ca5c.rlib --extern sha2=/var/tmp/portage/www-client/firefox-104.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps/libsha2-4549273fed3bc499.rlib --cap-lints warn -C codegen-units=1 -L native=/var/tmp/portage/www-client/firefox-104.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/build/libloading-2d69a492a142e25e/out`
35:06.42 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: /var/tmp/portage/www-client/firefox-104.0/work/firefox_build/toolkit/library/build/../../../dom/media/systemservices/Unified_cpp_systemservices0.o: in function `webrtc::DesktopCaptureImpl::Init() [clone .part.0]':
35:06.42 Unified_cpp_systemservices0.cpp:(.text._ZN6webrtc18DesktopCaptureImpl4InitEv.part.0+0x3c): undefined reference to `webrtc::DesktopCaptureOptions::CreateDefault()'
35:06.42 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: Unified_cpp_systemservices0.cpp:(.text._ZN6webrtc18DesktopCaptureImpl4InitEv.part.0+0x74): undefined reference to `webrtc::DesktopCaptureOptions::~DesktopCaptureOptions()'
35:06.43 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: Unified_cpp_systemservices0.cpp:(.text._ZN6webrtc18DesktopCaptureImpl4InitEv.part.0+0xbc): undefined reference to `webrtc::DesktopCapturer::CreateScreenCapturer(webrtc::DesktopCaptureOptions const&)'
35:06.43 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: Unified_cpp_systemservices0.cpp:(.text._ZN6webrtc18DesktopCaptureImpl4InitEv.part.0+0x12c): undefined reference to `webrtc::DesktopAndCursorComposer::DesktopAndCursorComposer(std::unique_ptr<webrtc::DesktopCapturer, std::default_delete<webrtc::DesktopCapturer> >, webrtc::DesktopCaptureOptions const&)'
35:06.43 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: Unified_cpp_systemservices0.cpp:(.text._ZN6webrtc18DesktopCaptureImpl4InitEv.part.0+0x1ac): undefined reference to `webrtc::DesktopCapturer::CreateWindowCapturer(webrtc::DesktopCaptureOptions const&)'
35:06.43 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: Unified_cpp_systemservices0.cpp:(.text._ZN6webrtc18DesktopCaptureImpl4InitEv.part.0+0x1e8): undefined reference to `webrtc::DesktopCapturer::CreateTabCapturer(webrtc::DesktopCaptureOptions const&)'
35:06.43 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: /var/tmp/portage/www-client/firefox-104.0/work/firefox_build/toolkit/library/build/../../../dom/media/systemservices/Unified_cpp_systemservices0.o: in function `webrtc::DesktopDeviceInfoImpl::InitializeScreenList()':
35:06.43 Unified_cpp_systemservices0.cpp:(.text._ZN6webrtc21DesktopDeviceInfoImpl20InitializeScreenListEv+0x38): undefined reference to `webrtc::DesktopCaptureOptions::CreateDefault()'
35:06.43 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: Unified_cpp_systemservices0.cpp:(.text._ZN6webrtc21DesktopDeviceInfoImpl20InitializeScreenListEv+0x48): undefined reference to `webrtc::DesktopCapturer::CreateScreenCapturer(webrtc::DesktopCaptureOptions const&)'
35:06.43 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: Unified_cpp_systemservices0.cpp:(.text._ZN6webrtc21DesktopDeviceInfoImpl20InitializeScreenListEv+0x54): undefined reference to `webrtc::DesktopCaptureOptions::~DesktopCaptureOptions()'
35:06.43 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: /var/tmp/portage/www-client/firefox-104.0/work/firefox_build/toolkit/library/build/../../../dom/media/systemservices/Unified_cpp_systemservices0.o: in function `webrtc::DesktopDeviceInfoImpl::InitializeWindowList()':
35:06.43 Unified_cpp_systemservices0.cpp:(.text._ZN6webrtc21DesktopDeviceInfoImpl20InitializeWindowListEv+0x38): undefined reference to `webrtc::DesktopCaptureOptions::CreateDefault()'
35:06.43 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: Unified_cpp_systemservices0.cpp:(.text._ZN6webrtc21DesktopDeviceInfoImpl20InitializeWindowListEv+0x48): undefined reference to `webrtc::DesktopCapturer::CreateWindowCapturer(webrtc::DesktopCaptureOptions const&)'
35:06.43 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: Unified_cpp_systemservices0.cpp:(.text._ZN6webrtc21DesktopDeviceInfoImpl20InitializeWindowListEv+0x54): undefined reference to `webrtc::DesktopCaptureOptions::~DesktopCaptureOptions()'
35:09.03 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: /var/tmp/portage/www-client/firefox-104.0/work/firefox_build/toolkit/library/build/../../../dom/media/systemservices/Unified_cpp_systemservices1.o: in function `mozilla::TabCapturerWebrtc::~TabCapturerWebrtc()':
35:09.03 Unified_cpp_systemservices1.cpp:(.text._ZN7mozilla17TabCapturerWebrtcD2Ev[_ZN7mozilla17TabCapturerWebrtcD5Ev]+0x58): undefined reference to `webrtc::DesktopCapturer::~DesktopCapturer()'
35:09.03 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: Unified_cpp_systemservices1.cpp:(.text._ZN7mozilla17TabCapturerWebrtcD2Ev[_ZN7mozilla17TabCapturerWebrtcD5Ev]+0xac): undefined reference to `webrtc::DesktopCapturer::~DesktopCapturer()'
35:09.03 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: /var/tmp/portage/www-client/firefox-104.0/work/firefox_build/toolkit/library/build/../../../dom/media/systemservices/Unified_cpp_systemservices1.o: in function `mozilla::TabCapturerWebrtc::~TabCapturerWebrtc()':
35:09.03 Unified_cpp_systemservices1.cpp:(.text._ZN7mozilla17TabCapturerWebrtcD0Ev[_ZN7mozilla17TabCapturerWebrtcD5Ev]+0x58): undefined reference to `webrtc::DesktopCapturer::~DesktopCapturer()'
35:09.03 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: Unified_cpp_systemservices1.cpp:(.text._ZN7mozilla17TabCapturerWebrtcD0Ev[_ZN7mozilla17TabCapturerWebrtcD5Ev]+0xbc): undefined reference to `webrtc::DesktopCapturer::~DesktopCapturer()'
35:09.03 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: /var/tmp/portage/www-client/firefox-104.0/work/firefox_build/toolkit/library/build/../../../dom/media/systemservices/Unified_cpp_systemservices1.o: in function `mozilla::TabCapturer::OnFrame(mozilla::dom::ImageBitmap*)':
35:09.03 Unified_cpp_systemservices1.cpp:(.text._ZN7mozilla11TabCapturer7OnFrameEPNS_3dom11ImageBitmapE+0x8c): undefined reference to `webrtc::BasicDesktopFrame::BasicDesktopFrame(webrtc::DesktopSize)'
35:09.03 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: Unified_cpp_systemservices1.cpp:(.text._ZN7mozilla11TabCapturer7OnFrameEPNS_3dom11ImageBitmapE+0x160): undefined reference to `webrtc::DesktopFrame::CopyPixelsFrom(unsigned char const*, int, webrtc::DesktopRect const&)'
35:09.03 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: /var/tmp/portage/www-client/firefox-104.0/work/firefox_build/toolkit/library/build/../../../dom/media/systemservices/Unified_cpp_systemservices1.o:(.data.rel.ro.local._ZTVN7mozilla17TabCapturerWebrtcE[_ZTVN7mozilla17TabCapturerWebrtcE]+0x28): undefined reference to `webrtc::DesktopCapturer::SetSharedMemoryFactory(std::unique_ptr<webrtc::SharedMemoryFactory, std::default_delete<webrtc::SharedMemoryFactory> >)'
35:09.04 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: /var/tmp/portage/www-client/firefox-104.0/work/firefox_build/toolkit/library/build/../../../dom/media/systemservices/Unified_cpp_systemservices1.o:(.data.rel.ro.local._ZTVN7mozilla17TabCapturerWebrtcE[_ZTVN7mozilla17TabCapturerWebrtcE]+0x38): undefined reference to `webrtc::DesktopCapturer::SetExcludedWindow(long)'
35:10.39 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: libxul.so: hidden symbol `_ZN6webrtc15DesktopCapturer20CreateScreenCapturerERKNS_21DesktopCaptureOptionsE' isn't defined
35:10.39 /usr/lib/gcc/powerpc64le-unknown-linux-gnu/11.3.0/../../../../powerpc64le-unknown-linux-gnu/bin/ld.bfd: final link failed: bad value
35:10.55 collect2: error: ld returned 1 exit status
35:10.55 gmake[4]: *** [/var/tmp/portage/www-client/firefox-104.0/work/firefox-104.0/config/rules.mk:540: libxul.so] Error 1
35:10.55 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-104.0/work/firefox_build/toolkit/library/build'
35:10.55 gmake[3]: *** [/var/tmp/portage/www-client/firefox-104.0/work/firefox-104.0/config/recurse.mk:72: toolkit/library/build/target] Error 2
35:10.55 gmake[3]: *** Waiting for unfinished jobs....
35:10.60     Finished release [optimized] target(s) in 24.73s
35:10.84 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-104.0/work/firefox_build/security/manager/ssl/ipcclientcerts'
35:10.84 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-104.0/work/firefox_build'
35:10.84 gmake[2]: *** [/var/tmp/portage/www-client/firefox-104.0/work/firefox-104.0/config/recurse.mk:34: compile] Error 2
35:10.84 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-104.0/work/firefox_build'
35:10.84 gmake[1]: *** [/var/tmp/portage/www-client/firefox-104.0/work/firefox-104.0/config/rules.mk:361: default] Error 2
35:10.84 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-104.0/work/firefox_build'
35:10.84 gmake: *** [client.mk:63: build] Error 2
35:10.84 11 compiler warnings present.

Reproducible: Always
Comment 1 darkbasic 2022-08-24 08:40:44 UTC
Created attachment 800752 [details]
firefox-104-build.log.xz

talos2 ~ # emerge --info
Portage 3.0.30 (python 3.10.6-final-0, default/linux/ppc64le/17.0/desktop/gnome/systemd, gcc-11.3.0, glibc-2.35-r8, 5.18.18-gentoo-dist ppc64le)
=================================================================
System uname: Linux-5.18.18-gentoo-dist-ppc64le-POWER9,_altivec_supported-with-glibc2.35
KiB Mem:    65536108 total,  30053456 free
KiB Swap:   16777212 total,  16771020 free
Timestamp of repository gentoo: Wed, 24 Aug 2022 07:30:01 +0000
Head commit of repository gentoo: c057371975b3005ac16ea33e0091456eb3c2d71c
Timestamp of repository guru: Wed, 24 Aug 2022 05:02:54 +0000
Head commit of repository guru: 6bfd365b2c31f9019c07307a98bce789cfb428fa

sh bash 5.1_p16-r1
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16-r1::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           3.10.6_p2::gentoo
dev-lang/rust:             1.62.1::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.3::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1

darkbasic
    location: /var/db/repos/darkbasic
    masters: gentoo

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

pf4public
    location: /var/db/repos/pf4public
    masters: gentoo

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="@FREE @FREE unRAR fping"
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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 32"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
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.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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 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 gstreamer gtk gui iconv icu introspection ipv6 jpeg lcms libglvnd libnotify libsecret mad mng mp3 mp4 mpeg nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppc64 ppds pulseaudio qt5 readline screencast sdl seccomp spell split-usr ssl startup-notification svg systemd tiff tracker truetype udev udisks unicode upower usb vaapi vorbis vpx vulkan wayland wxwidgets x264 xattr xcb xml xv xvid zeroconf zlib" ADA_TARGET="gnat_2020" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="ppc ppc64 i386 x86_64" QEMU_USER_TARGETS="ppc ppc64 i386 x86_64" RUBY_TARGETS="ruby27" USERLAND="GNU" 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, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, 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 tt_1 2022-08-24 09:13:43 UTC
can you please share your emerge -pv dev-lang/rust with me? and emerge -pv firefox would be helpfull too. 

I did have a similar error on armv7 with firefox-103.0.2, and still trying to establish the cause
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-08-25 02:11:47 UTC
Yeah, we've had some references to it being hosed in #gentoo-powerpc. Not sure if it's been reported upstream by anybody though.

You can work around it by disabling webrtc.
Comment 4 Joonas Niilola gentoo-dev 2022-08-25 04:14:42 UTC
Similar issue: https://bugzilla.redhat.com/show_bug.cgi?id=2113850

Fix, I guess: https://src.fedoraproject.org/rpms/firefox/pull-request/45#request_diff
->
https://src.fedoraproject.org/rpms/firefox/pull-request/45.patch

But looking at Fedoras firefox spec they apply all kinds of patches for ppc64 and arm so I wonder what else we need to make compiling work.

You can see their commit history:
https://src.fedoraproject.org/rpms/firefox/commits/rawhide
(which is a bit messy compared to ours, e.g. looks like there's 6 related commits to ppc64 & arm build fixes)
Comment 5 Joonas Niilola gentoo-dev 2022-08-25 05:09:33 UTC
https://bugzilla.mozilla.org/show_bug.cgi?id=1775202
Comment 6 darkbasic 2022-08-25 09:56:56 UTC
The patch worked fine, thanks.

Any reason why it cannot be included in the Gentoo ebuild?
Comment 7 darkbasic 2022-08-25 09:58:47 UTC
Btw AFAIK there are two issues here: the one I had with webrtc and another one with gcc: https://www.talospace.com/2022/07/firefox-102-on-power.html?showComment=1661394699680#c589198799960471430

clang plus the webrtc patch does the trick, didn't try with gcc though.
Comment 8 Piotr Kubaj 2022-08-25 12:37:02 UTC
Building with clang seems to work, but it's masked on ~ppc64 and needs to be manually unmasked. Can you unmask it in Portage since it seems to work?
Comment 9 Larry the Git Cow gentoo-dev 2022-08-28 06:42:09 UTC
The bug has been closed via the following commit(s):

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

commit 0b410a903fc205eed7d1e30eb40d59c7c5920400
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2022-08-28 06:38:46 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-08-28 06:38:46 +0000

    www-client/firefox: fix 104.0 on ~ppc64
    
    Closes: https://bugs.gentoo.org/866293
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-client/firefox/Manifest             | 2 +-
 www-client/firefox/firefox-104.0.ebuild | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit 0a13e229d64e8bd2a581c28cbb7568e15ca8b1fa
Author:     Joonas Niilola <juippis@gentoo.org>
AuthorDate: 2022-08-28 06:40:40 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-08-28 06:40:40 +0000

    profiles/arch/powerpc/ppc64: unmask www-client/firefox[clang] for <104
    
     - linked bug report says it's working at least for 104, upstream fixed
       somewhere?
    
    Bug: https://bugs.gentoo.org/866293
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 profiles/arch/powerpc/ppc64/64le/package.use.mask | 2 +-
 profiles/arch/powerpc/ppc64/64ul/package.use.mask | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 10 Joonas Niilola gentoo-dev 2022-08-28 06:43:17 UTC
(In reply to darkbasic from comment #6)
> The patch worked fine, thanks.
> 
> Any reason why it cannot be included in the Gentoo ebuild?

Because I wasn't aware it was needed, and I don't have a ppc64 machine to test it on. So feedback was important here!

The upstream bug report says 104 is affected, but no mention about 102esr. Do you think we need to include this patch in 102esr too?
Comment 11 darkbasic 2022-08-28 07:34:34 UTC
> The upstream bug report says 104 is affected, but no mention about 102esr. Do you think we need to include this patch in 102esr too?

102 is the last version which doesn't need the patch to fix the webrtc issue. I think it also used to compile fine with gcc, but I'm not sure because I use clang.

103 definitely needs the patch though.
Comment 12 darkbasic 2022-08-29 07:23:32 UTC
I've just tried 104 with gcc and it builds as well, so I'm not sure why some people have issues with gcc.
Comment 13 Joonas Niilola gentoo-dev 2022-08-30 08:26:07 UTC
(In reply to darkbasic from comment #11)
> 
> 103 definitely needs the patch though.

We don't have 103 anymore in the tree, and it isn't supported anymore by upstream either. So 103 isn't a problem. Hopefully the issue can be fixed upstream asap though.