Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 872527 - www-client/firefox-105: build failure on ppc64 (FlacDecoder.cpp:20:44: error: no match for 'operator&&')
Summary: www-client/firefox-105: build failure on ppc64 (FlacDecoder.cpp:20:44: error:...
Status: RESOLVED FIXED
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: PATCH
Depends on:
Blocks:
 
Reported: 2022-09-23 12:13 UTC by darkbasic
Modified: 2022-09-24 05:49 UTC (History)
1 user (show)

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


Attachments
build.log.xz (from OP) (build.log.xz,284.46 KB, application/x-xz)
2022-09-24 00:45 UTC, Sam James
Details
gyakovlev-fixed-flac.patch (file_872527.txt,1.12 KB, patch)
2022-09-24 00:48 UTC, Sam James
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description darkbasic 2022-09-23 12:13:57 UTC
19:23.76      Running `CARGO=/usr/lib/rust/1.62.1/bin/cargo-1.62.1 CARGO_CRATE_NAME=gkrust CARGO_MANIFEST_DIR=/var/tmp/portage/www-client/firefox-105.0/work/firefox-105.0/toolkit/library/rust CARGO_PKG_AUTHORS='nobody@mozilla.org' CARGO_PKG_DESCRIPTION='Rust code for libxul' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MPL-2.0 CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=gkrust 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-105.0/work/firefox_build/release/deps:/usr/lib/rust/1.62.1/lib' /usr/bin/rustc --crate-name gkrust toolkit/library/rust/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=f0c18ffa10cd4dcb -C extra-filename=-f0c18ffa10cd4dcb --out-dir /var/tmp/portage/www-client/firefox-105.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps --target powerpc64le-unknown-linux-gnu -C linker=/var/tmp/portage/www-client/firefox-105.0/work/firefox-105.0/build/cargo-linker -L dependency=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps -L dependency=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/release/deps --extern gkrust_shared=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps/libgkrust_shared-07c737407242bf91.rlib --extern lmdb_sys=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps/liblmdb_sys-b542775756dc5b1b.rlib --extern mozglue_static=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps/libmozglue_static-2f6388a052c0d82a.rlib --extern mozilla_central_workspace_hack=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps/libmozilla_central_workspace_hack-d2803cdf8b90f0ea.rlib --extern swgl=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/deps/libswgl-4094025a9d70e238.rlib --cap-lints warn -C codegen-units=1 -L native=/usr/lib64 -L native=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/build/audioipc-6a3bf7feae5a7ab9/out -L native=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/build/audioipc2-f61c0610c6e9d9f1/out -L native=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/build/lmdb-rkv-sys-60d6ee0caa5ddd27/out -L native=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/build/mozglue-static-269dff67d76b65d5/out -L native=/usr/lib64 -L native=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/dist/bin -L native=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/security/nss/lib/nss/nss_nss3 -L native=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/security/nss/lib/ssl/ssl_ssl3 -L native=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/config/external/nspr/pr -L native=/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/powerpc64le-unknown-linux-gnu/release/build/swgl-da7c20075c87d8aa/out`
19:24.16     Finished release [optimized] target(s) in 17m 47s
19:24.63 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-105.0/work/firefox_build/toolkit/library/rust'
19:24.63 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-105.0/work/firefox_build'
19:24.63 gmake[2]: *** [/var/tmp/portage/www-client/firefox-105.0/work/firefox-105.0/config/recurse.mk:34: compile] Error 2
19:24.63 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-105.0/work/firefox_build'
19:24.63 gmake[1]: *** [/var/tmp/portage/www-client/firefox-105.0/work/firefox-105.0/config/rules.mk:361: default] Error 2
19:24.63 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-105.0/work/firefox_build'
19:24.63 gmake: *** [client.mk:63: build] Error 2
19:24.63 11 compiler warnings present.
 * ERROR: www-client/firefox-105.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 122:  Called src_compile
 *   environment, line 5317:  Called die
 * The specific snippet of code:
 *       ${virtx_cmd} ./mach build --verbose || die
 * 
 * If you need support, post the output of `emerge --info '=www-client/firefox-105.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-client/firefox-105.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-client/firefox-105.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-105.0/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/firefox-105.0/work/firefox-105.0'
 * S: '/var/tmp/portage/www-client/firefox-105.0/work/firefox-105.0'

I tried with both gcc and clang, same issue.

Reproducible: Always




Portage 3.0.36 (python 3.10.6-final-0, default/linux/ppc64le/17.0/desktop/gnome/systemd, gcc-11.3.0, glibc-2.35-r8, 5.19.8-gentoo-dist ppc64le)
=================================================================
System uname: Linux-5.19.8-gentoo-dist-ppc64le-POWER9,_altivec_supported-with-glibc2.35
KiB Mem:    65536092 total,  24543692 free
KiB Swap:   16777212 total,  16678496 free
Timestamp of repository gentoo: Fri, 23 Sep 2022 07:30:01 +0000
Head commit of repository gentoo: 39bbc04c7e8dfcd0e429d6655efb6766d6448949
Timestamp of repository guru: Wed, 21 Sep 2022 19:46:42 +0000
Head commit of repository guru: 4da6fe672e7a46cabd865dbf7ff7723b2fff2dd6

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.23.3::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-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

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 1 darkbasic 2022-09-23 12:20:11 UTC
I've tried to attach the build log but I get the following:

This site can’t be reached
The webpage at https://bugs.gentoo.org/attachment.cgi might be temporarily down or it may have moved permanently to a new web address.
ERR_ACCESS_DENIED

Here you can find the build log:
http://0x0.st/oWPy.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-24 00:44:52 UTC
(In reply to darkbasic from comment #1)
I think this is usually because your user doesn't own the build.log.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-24 00:45:44 UTC
Created attachment 813901 [details]
build.log.xz (from OP)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-24 00:46:43 UTC
8 3:49.44 In file included from Unified_cpp_dom_media_flac0.cpp:2:
8 3:49.45 /var/tmp/portage/www-client/firefox-105.0/work/firefox-105.0/dom/media/flac/FlacDecoder.cpp: In static member function 'static bool mozilla::FlacDecoder::IsEnabled()':
8 3:49.45 /var/tmp/portage/www-client/firefox-105.0/work/firefox-105.0/dom/media/flac/FlacDecoder.cpp:20:44: error: no match for 'operator&&' (operand types are 'mozilla::StripAtomic<mozilla::Atomic<bool, mozilla::Relaxed> >' {aka 'bool'} and 'mozilla::media::DecodeSupportSet' {aka 'mozilla::EnumSet<mozilla::media::DecodeSupport, long unsigned int>'})
8 3:49.45    20 |   return StaticPrefs::media_flac_enabled() &&
8 3:49.45       |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~
8 3:49.46       |                                         |
8 3:49.46       |                                         mozilla::StripAtomic<mozilla::Atomic<bool, mozilla::Relaxed> > {aka bool}
8 3:49.46    21 |          platform->SupportsMimeType("audio/flac"_ns);
8 3:49.46       |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8 3:49.47       |                                    |
8 3:49.47       |                                    mozilla::media::DecodeSupportSet {aka mozilla::EnumSet<mozilla::media::DecodeSupport, long unsigned int>}
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-09-24 00:48:04 UTC
Created attachment 813904 [details, diff]
gyakovlev-fixed-flac.patch

(In reply to Sam James from comment #4)
> 8 3:49.44 In file included from Unified_cpp_dom_media_flac0.cpp:2:
> 8 3:49.45
> /var/tmp/portage/www-client/firefox-105.0/work/firefox-105.0/dom/media/flac/
> FlacDecoder.cpp: In static member function 'static bool
> mozilla::FlacDecoder::IsEnabled()':
> 8 3:49.45
> /var/tmp/portage/www-client/firefox-105.0/work/firefox-105.0/dom/media/flac/
> FlacDecoder.cpp:20:44: error: no match for 'operator&&' (operand types are
> 'mozilla::StripAtomic<mozilla::Atomic<bool, mozilla::Relaxed> >' {aka
> 'bool'} and 'mozilla::media::DecodeSupportSet' {aka
> 'mozilla::EnumSet<mozilla::media::DecodeSupport, long unsigned int>'})
> 8 3:49.45    20 |   return StaticPrefs::media_flac_enabled() &&
> 8 3:49.45       |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~
> 8 3:49.46       |                                         |
> 8 3:49.46       |                                        
> mozilla::StripAtomic<mozilla::Atomic<bool, mozilla::Relaxed> > {aka bool}
> 8 3:49.46    21 |          platform->SupportsMimeType("audio/flac"_ns);
> 8 3:49.46       |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 8 3:49.47       |                                    |
> 8 3:49.47       |                                   
> mozilla::media::DecodeSupportSet {aka
> mozilla::EnumSet<mozilla::media::DecodeSupport, long unsigned int>}


[07:39:12]  <+gyakovlev> https://dpaste.com/9DGQ65CXY.txt
[07:39:24]  <+gyakovlev> here's our patch + freebsd's extra hunk applied
[07:39:50]  <+gyakovlev> basically changes 
[07:39:50]  <+gyakovlev> platform->SupportsMimeType("audio/flac"_ns);
[07:39:50]  <+gyakovlev> to
[07:39:50]  <+gyakovlev> (platform->SupportsMimeType("audio/flac"_ns) != media::DecodeSupport::Unsupported);
Comment 6 Georgy Yakovlev archtester gentoo-dev 2022-09-24 04:41:43 UTC
this is fixed in 105.0.1's patchset.

we've also added sqlite patc that will solve non-working history/bookmarks if built by clang.
Comment 7 Joonas Niilola gentoo-dev 2022-09-24 05:49:58 UTC
Yep, should be fixed in 105.0.1.
https://gitweb.gentoo.org/repo/gentoo.git/commit/www-client/firefox?id=a82c221f9acb89117deea8aaca1e50f5436b21f3

I'll handle ESR later.