Building firefox on ppc64 fails with "(no error message)" - the last commands refer to libgkrust.a versions 119 and 120 had this error, 118 was not affected Reproducible: Always Steps to Reproduce: 1. emerge firefox Actual Results: 31:01.59 /var/tmp/portage/www-client/firefox-120.0.1/work/firefox_build/srcdirs/firefox-120.0.1-60a9e72e3bc6/_virtualenvs/build/bin/python -m mozbuild.action.check_binary --networking /var/tmp/portage/www-client/firefox-120.0.1/work/firefox_build/powerpc64le-unknown-linux-gnu/release/libgkrust.a 31:04.93 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-120.0.1/work/firefox_build/toolkit/library/rust' 31:04.93 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-120.0.1/work/firefox_build' 31:04.93 gmake[2]: *** [/var/tmp/portage/www-client/firefox-120.0.1/work/firefox-120.0.1/config/recurse.mk:34: compile] Error 2 31:04.93 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-120.0.1/work/firefox_build' 31:04.93 gmake[1]: *** [/var/tmp/portage/www-client/firefox-120.0.1/work/firefox-120.0.1/config/rules.mk:361: default] Error 2 31:04.93 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-120.0.1/work/firefox_build' 31:04.93 gmake: *** [client.mk:60: build] Error 2 31:04.93 W 0 compiler warnings present. * ERROR: www-client/firefox-120.0.1::gentoo failed (compile phase): * (no error message) * * Call stack: * ebuild.sh, line 136: Called src_compile * environment, line 5431: 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-120.0.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=www-client/firefox-120.0.1::gentoo'`. * The complete build log is located at '/var/log/portage/build/www-client:firefox-120.0.1:20231207-052744.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/www-client/firefox-120.0.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-120.0.1/temp/environment'. * Working directory: '/var/tmp/portage/www-client/firefox-120.0.1/work/firefox-120.0.1' * S: '/var/tmp/portage/www-client/firefox-120.0.1/work/firefox-120.0.1' Portage 3.0.56 (python 3.11.6-final-0, default/linux/ppc64le/17.0/desktop/plasma/systemd/merged-usr, gcc-13, glibc-2.37-r7, 6.1.57-gentoo-ppc64le ppc64le) ================================================================= System uname: Linux-6.1.57-gentoo-ppc64le-ppc64le-POWER9,_altivec_supported-with-glibc2.37 KiB Mem: 197164976 total, 112587548 free KiB Swap: 33554428 total, 26523736 free Timestamp of repository gentoo: Thu, 07 Dec 2023 03:45:01 +0000 Head commit of repository gentoo: d73842d77cb579135e6c50ecd09e083b9f683f8b sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.40 p7) 2.40.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 2.7.18_p16-r1::gentoo, 3.11.6::gentoo, 3.12.0_p1::gentoo dev-lang/rust: 1.71.1::gentoo dev-util/cmake: 3.27.7::gentoo dev-util/meson: 1.2.3::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/sandbox: 2.38::gentoo sys-apps/systemd: 254.5-r1::gentoo sys-devel/autoconf: 2.13-r7::gentoo, 2.71-r6::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.40-r9::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_p20230825::gentoo, 13.2.1_p20230826::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::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-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 ACCEPT_KEYWORDS="ppc64" ACCEPT_LICENSE="@FREE" CBUILD="powerpc64le-unknown-linux-gnu" CFLAGS="-Og -pipe -mcpu=power9 -mtune=power9 -g -ggdb" 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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-Og -pipe -mcpu=power9 -mtune=power9 -g -ggdb" 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="-Og -pipe -mcpu=power9 -mtune=power9 -g -ggdb" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-Og -pipe -mcpu=power9 -mtune=power9 -g -ggdb" GENTOO_MIRRORS=" https://mirrors.dotsrc.org/gentoo/ https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ " LANG="C.UTF8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="--jobs=24 --load-average=32" 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 activities alsa bash-completion branding brotli bzip2 cairo caps cdda cdr cli crypt cryptsetup dbus declarative device-mapper dri dts dvd dvdr encode exif firewalld flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg jpeg2k kde kwallet lcms libnotify lto lvm lz4 lzma lzo mad mng mp3 mp4 mpeg ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppc64 ppds pulseaudio qml qt5 readline screencast sdl seccomp semantic-desktop smartcard sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vaapi verify-sig vorbis vulkan wayland webp widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib zram zstd" ADA_TARGET="gnat_2021" AMDGPU_TARGETS="gfx1012" 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" L10N="en en-GB eo et" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF PowerPC" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_12" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeon ast fbdev" 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
Please include the full build.log (compressed if necessary)
Created attachment 878173 [details] Log of failed build
The same error is also present on firefox 121.0 (I ran the build with MAKEOPTS=-j1 this time so that the error was easier to spot in the log.)
231:03.24 In file included from Unified_cpp_dom_media_flac0.cpp:2: 231:03.25 /var/tmp/portage/www-client/firefox-121.0/work/firefox-121.0/dom/media/flac/FlacDecoder.cpp: In static member function 'static bool mozilla::FlacDecoder::IsEnabled()': 231:03.25 /var/tmp/portage/www-client/firefox-121.0/work/firefox-121.0/dom/media/flac/FlacDecoder.cpp:21:80: error: 'Unsupported' is not a member of 'mozilla::media::DecodeSupport' 231:03.25 21 | (platform->SupportsMimeType("audio/flac"_ns) != media::DecodeSupport::Unsupported); 231:03.25 | ^~~~~~~~~~~ 231:07.90 gmake[4]: *** [/var/tmp/portage/www-client/firefox-121.0/work/firefox-121.0/config/rules.mk:690: Unified_cpp_dom_media_flac0.o] Error 1 231:07.91 gmake[4]: Leaving directory '/var/tmp/portage/www-client/firefox-121.0/work/firefox_build/dom/media/flac' 231:07.91 gmake[3]: *** [/var/tmp/portage/www-client/firefox-121.0/work/firefox-121.0/config/recurse.mk:72: dom/media/flac/target-objects] Error 2 231:07.92 gmake[3]: Leaving directory '/var/tmp/portage/www-client/firefox-121.0/work/firefox_build' 231:07.92 gmake[2]: *** [/var/tmp/portage/www-client/firefox-121.0/work/firefox-121.0/config/recurse.mk:34: compile] Error 2 231:07.92 gmake[2]: Leaving directory '/var/tmp/portage/www-client/firefox-121.0/work/firefox_build' 231:07.92 gmake[1]: *** [/var/tmp/portage/www-client/firefox-121.0/work/firefox-121.0/config/rules.mk:361: default] Error 2 231:07.92 gmake[1]: Leaving directory '/var/tmp/portage/www-client/firefox-121.0/work/firefox_build' 231:07.93 gmake: *** [client.mk:60: build] Error 2 231:07.93 W 0 compiler warnings present.
Created attachment 880233 [details, diff] Remove use of removed media::DecodeSupport::Unsupported This patch should fix the use of the removed media::DecodeSupport::Unsupported and enable firefox to build.
What ffmpeg version are you using?
> What ffmpeg version are you using? I have media-video/ffmpeg-4.4.4-r8 - it is being held back from upgrade to 6.0 by a conflict with media-video/vlc See the following excerpt from `emerge -puDv @world`: WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict: media-video/ffmpeg:0 (media-video/ffmpeg-6.0-r10:0/58.60.60::gentoo, ebuild scheduled for merge) USE="X alsa bzip2 dav1d encode gnutls gpl iconv jpeg2k lcms lzma mp3 network opengl postproc pulseaudio sdl svg threads truetype vaapi verify-sig vorbis vulkan webp x264 xvid zlib (-amf) -amr -amrenc (-appkit) -bluray -bs2b -cdio -chromaprint -chromium -codec2 -cpudetection (-cuda) -debug -doc -fdk -flite -fontconfig (-frei0r) -fribidi -gcrypt -gme -gmp -gsm -hardcoded-tables -iec61883 -ieee1394 -jack -jpegxl -kvazaar -ladspa -libaom -libaribb24 -libass -libcaca -libdrm -libilbc -libplacebo -librtmp -libsoxr -libtesseract -libv4l -libxml2 -lv2 (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug (-nvenc) -openal (-opencl) -openh264 -openssl -opus -oss -pic (-qsv) -rav1e -rubberband -samba -snappy -sndio -speex -srt -ssh -static-libs -svt-av1 -test -theora -twolame -v4l (-vdpau) -vidstab (-vmaf) -vpx -x265 -zeromq -zimg -zvbi" CPU_FLAGS_PPC="altivec vsx vsx2" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" conflicts with >=media-video/ffmpeg-4.4:0/56.58.58=[encode,threads,vaapi] required by (media-video/mpv-0.37.0:0/2::gentoo, installed) USE="X alsa cdda cli drm dvd egl iconv jpeg lcms libmpv opengl pipewire pulseaudio uchardet vaapi vulkan wayland xv zlib (-aqua) -archive -bluray (-coreaudio) -debug (-dvb) -gamepad -jack -javascript -libcaca -lua (-mmal) (-nvenc) -openal (-raspberry-pi) -rubberband -sdl (-selinux) -sixel -sndio -test -tools (-vdpau) -zimg" LUA_SINGLE_TARGET="(lua5-1) (-luajit)" PYTHON_SINGLE_TARGET="python3_11 -python3_10 (-python3_12)" ^^^^^^^^^^^^ media-video/ffmpeg:0/56.58.58= required by (kde-plasma/kpipewire-5.27.10:5/5::gentoo, installed) USE="-debug -test" ^^^^^^^^^^^^ media-video/ffmpeg:0/56.58.58= required by (kde-frameworks/kfilemetadata-5.113.0:5/5.113::gentoo, installed) USE="epub exif ffmpeg pdf taglib -debug -doc -mobi -test" ^^^^^^^^^^^^ >=media-video/ffmpeg-3.1.3:0/56.58.58=[postproc,vaapi] required by (media-video/vlc-3.0.18-r3:0/5-9::gentoo, installed) USE="X a52 alsa dbus dts dvbpsi dvd encode ffmpeg flac gcrypt gui jpeg libnotify libsamplerate mad mp3 mpeg ncurses ogg png pulseaudio ssl svg truetype udev vaapi wayland x264 xml -aom -archive -aribsub -bidi -bluray -cddb -chromaprint -chromecast -dav1d -dc1394 -debug (-directx) -faad -fdk -fluidsynth -fontconfig -gme -gstreamer -ieee1394 -jack -kate -keyring -libass -libcaca -libtar -libtiger -linsys (-lirc) -live -lua -macosx-notifications -matroska -modplug -mtp -musepack -nfs -omxil -optimisememory -opus -projectm -rdp -run-as-root -samba -sdl-image -sftp -shout -sid -skins -soxr -speex -srt -taglib -test -theora -tremor -twolame (-upnp) -v4l (-vdpau) -vnc -vpx -x265 -zeroconf -zvbi" CPU_FLAGS_PPC="altivec" LUA_SINGLE_TARGET="lua5-1" ^^^^^^^^^^^^ <media-video/ffmpeg-5 required by (media-video/vlc-3.0.18-r3:0/5-9::gentoo, installed) USE="X a52 alsa dbus dts dvbpsi dvd encode ffmpeg flac gcrypt gui jpeg libnotify libsamplerate mad mp3 mpeg ncurses ogg png pulseaudio ssl svg truetype udev vaapi wayland x264 xml -aom -archive -aribsub -bidi -bluray -cddb -chromaprint -chromecast -dav1d -dc1394 -debug (-directx) -faad -fdk -fluidsynth -fontconfig -gme -gstreamer -ieee1394 -jack -kate -keyring -libass -libcaca -libtar -libtiger -linsys (-lirc) -live -lua -macosx-notifications -matroska -modplug -mtp -musepack -nfs -omxil -optimisememory -opus -projectm -rdp -run-as-root -samba -sdl-image -sftp -shout -sid -skins -soxr -speex -srt -taglib -test -theora -tremor -twolame (-upnp) -v4l (-vdpau) -vnc -vpx -x265 -zeroconf -zvbi" CPU_FLAGS_PPC="altivec" LUA_SINGLE_TARGET="lua5-1" ^ ^ media-video/ffmpeg:0/56.58.58= required by (kde-apps/ffmpegthumbs-23.08.4:5/5::gentoo, installed) USE="-debug"
I tried re-merging vlc with USE=-ffmpeg and then upgrading ffmpeg to 6.0-r10 It didn't help - building Firefox still gives the same error.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=829245301b0f70f9a83e3ca69c88481c007dcca1 commit 829245301b0f70f9a83e3ca69c88481c007dcca1 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2024-01-09 12:21:29 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2024-01-09 12:24:22 +0000 www-client/firefox: add 121.0.1 - add a patch for ppc64 build failure, - add "experimental" wayland-proxy-load-balancer https://mastransky.wordpress.com/2023/12/22/wayland-proxy-load-balancer/ - remove llvm:15 support along with virtual/rust:0/llvm-15. Closes: https://bugs.gentoo.org/920706 Closes: https://bugs.gentoo.org/919418 Signed-off-by: Joonas Niilola <juippis@gentoo.org> www-client/firefox/Manifest | 101 ++ www-client/firefox/firefox-121.0.1.ebuild | 1455 +++++++++++++++++++++++++++++ 2 files changed, 1556 insertions(+)