Firefox 122 on POWER


Right now during our relocation I'm not always in the same ZIP code as my T2, but we've still got to keep it up to date. To that end Firefox 122 is out with some UI improvements and new Web platform support.

A number of changes have occurred between Fx121 and Fx122 which improve our situation in OpenPOWER world, most notably being we no longer need to drag our WebRTC build changes around (and/or you can remove --disable-webrtc in your .mozconfig). However, on Fedora I needed to add ac_add_options --with-libclang-path=/usr/lib64 to my .mozconfigs (or ./mach build would fail during configuration because Rust bindgen could not find libclang.so), and I also needed to effectively fix bug 1865993 to get PGO builds to work again on Python 3.12, which Fedora 39 ships with. You may not need to do either of these things depending on your distro. There are separate weird glitches due to certain other components being deprecated in Python 3.12 that do not otherwise affect the build.

To that end, here is the updated PGO-LTO patch I'm using, as well as the current .mozconfigs:

Optimized

export CC=/usr/bin/gcc
export CXX=/usr/bin/g++

mk_add_options MOZ_MAKE_FLAGS="-j24" # or as you like
ac_add_options --enable-application=browser
ac_add_options --enable-optimize="-O3 -mcpu=power9 -fpermissive"
ac_add_options --enable-release
ac_add_options --enable-linker=bfd
ac_add_options --enable-lto=full
ac_add_options --without-wasm-sandboxed-libraries
ac_add_options --with-libclang-path=/usr/lib64
ac_add_options MOZ_PGO=1

export GN=/home/censored/bin/gn # if you haz
export RUSTC_OPT_LEVEL=2

Debug

export CC=/usr/bin/gcc
export CXX=/usr/bin/g++

mk_add_options MOZ_MAKE_FLAGS="-j24" # or as you like
ac_add_options --enable-application=browser
ac_add_options --enable-optimize="-Og -mcpu=power9 -fpermissive -DXXH_NO_INLINE_HINTS=1"
ac_add_options --enable-debug
ac_add_options --enable-linker=bfd
ac_add_options --without-wasm-sandboxed-libraries
ac_add_options --with-libclang-path=/usr/lib64

export GN=/home/censored/bin/gn # if you haz

Comments

  1. On Fedora 39, Firefox 122 has an annoying bug. The browser does not change state after loading a page, every page is in 'Loading...' state all the time. Of course, reloading the page from the graphic control is not possible. For some pages, the only way out is to clear the cache and restart the browser.

    ReplyDelete
  2. There is already update 122.0-5 on Fedora 39 but unfortunately, the browser still does not properly support the "Refresh current page..." control. Also, the browser still crashes on some pages e.g. Dropbox.

    ReplyDelete
    Replies
    1. Can you try with (self-built) upstream Firefox? Does it happen even without any add-ons and plugins? Only on ppc64le?

      Delete
  3. Ebay-log in is crashing here on firefox 122

    ReplyDelete
    Replies
    1. Interesting. I'm not seeing that on my self build. Are you using the Fedora one?

      Delete
    2. A version of Firefox 122.0.1 appeared in Fedora 39, this one does not crash on DropBox :-)

      Delete

Post a Comment

Comments are subject to moderation. Be nice.