Package Details: firedragon 1:11.26.0_1-1

Git Clone URL: https://aur.archlinux.org/firedragon.git (read-only, click to copy)
Package Base: firedragon
Description: Floorp fork build using custom branding and settings
Upstream URL: https://firedragon.garudalinux.org
Keywords: browser firedragon firefox floorp
Licenses: MPL2
Replaces: firedragon-next
Submitter: polyzen
Maintainer: dr460nf1r3 (FGD, garudalinux)
Last Packager: garudalinux
Votes: 23
Popularity: 0.022962
First Submitted: 2021-04-22 10:57 (UTC)
Last Updated: 2025-04-29 18:18 (UTC)

Dependencies (52)

Sources (3)

Pinned Comments

dr460nf1r3 commented on 2024-04-17 16:23 (UTC) (edited on 2024-04-17 16:26 (UTC) by dr460nf1r3)

Everyone can now participate in the general package update process! The process is almost entirely automated, these are the necessary steps:

  1. Create an MR with your changes to the source repo (the firedragon folder contains the files of this repo)
  2. Wait for a maintainer to review and merge it
  3. Done! When merging, the PKGBUILD will automatically be deployed to AUR via the CI pipeline.

FGD commented on 2024-02-03 22:31 (UTC)

We are finally there! After being frozen on version 119 and investing quite some time improving the app, Firedragon now has an entirely new base!

Please see the Announcement post:

https://forum.garudalinux.org/t/new-firedragon-major-version-is-out/34585

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 Next › Last »

Neko-san commented on 2021-11-30 02:02 (UTC) (edited on 2021-11-30 02:04 (UTC) by Neko-san)

Seems to be an unexpected LTO error going on:

13:41.29 toolkit/library/build/libxul.so
16:51.66 ld.lld: warning: Linking two modules of different target triples: '/build/firedragon/src/firefox-94.0.2/obj/x86_64-unknown-linux-gnu/release/libgkrust.a(gl.o at 367984618)' is 'x86_64-unknown-linux-gnu' whereas 'ld-temp.o' is 'x86_64-pc-linux-gnu'
16:53.51 ld.lld: warning: Linking two modules of different target triples: '/build/firedragon/src/firefox-94.0.2/obj/x86_64-unknown-linux-gnu/release/libgkrust.a(wrappers.o at 475807754)' is 'x86_64-unknown-linux-gnu' whereas 'ld-temp.o' is 'x86_64-pc-linux-gnu'
16:53.56 ld.lld: warning: Linking two modules of different target triples: '/build/firedragon/src/firefox-94.0.2/obj/x86_64-unknown-linux-gnu/release/libgkrust.a(mdb.o at 554103838)' is 'x86_64-unknown-linux-gnu' whereas 'ld-temp.o' is 'x86_64-pc-linux-gnu'
16:53.63 ld.lld: warning: Linking two modules of different target triples: '/build/firedragon/src/firefox-94.0.2/obj/x86_64-unknown-linux-gnu/release/libgkrust.a(midl.o at 554605362)' is 'x86_64-unknown-linux-gnu' whereas 'ld-temp.o' is 'x86_64-pc-linux-gnu'
17:18.71 fragment is larger than or outside of variable
17:26.56   call void @llvm.dbg.value(metadata i32 0, metadata !39456699, metadata !DIExpression(DW_OP_LLVM_fragment, 0, 32)), !dbg !39456700
17:26.59 !39456699 = !DILocalVariable(name: "s", scope: !39456694, file: !6030965, line: 1414, type: !3320370)
17:26.59 fragment is larger than or outside of variable
17:26.72   call void @llvm.dbg.value(metadata %class.nsISupports* ()* null, metadata !39456699, metadata !DIExpression(DW_OP_LLVM_fragment, 64, 64)), !dbg !39456700
17:26.72 !39456699 = !DILocalVariable(name: "s", scope: !39456694, file: !6030965, line: 1414, type: !3320370)
17:26.72 fragment is larger than or outside of variable
17:26.85   call void @llvm.dbg.value(metadata i32 %0, metadata !39456699, metadata !DIExpression(DW_OP_LLVM_fragment, 0, 32)), !dbg !39456700
17:26.85 !39456699 = !DILocalVariable(name: "s", scope: !39456694, file: !6030965, line: 1414, type: !3320370)
17:28.74 LLVM ERROR: Broken module found, compilation aborted!
17:28.77 PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
17:28.77 Stack dump:
17:28.77 0.     Program arguments: /usr/bin/ld.lld --eh-frame-hdr -m elf_x86_64 -shared -o libxul.so /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crti.o /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/crtbeginS.o -L/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0 -L/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/bin/../lib -L/lib -L/usr/lib -plugin-opt=mcpu=znver2 -plugin-opt=O3 -plugin-opt=-function-sections -plugin-opt=-data-sections -z defs -h libxul.so /build/firedragon/src/firefox-94.0.2/obj/toolkit/library/build/libxul_so.list -lpthread -O3 --sort-common --as-needed -z relro -z now -z noexecstack -z text -z relro -z nocopyreloc -Bsymbolic-functions --build-id=sha1 -rpath-link /build/firedragon/src/firefox-94.0.2/obj/dist/bin -rpath-link /usr/lib ../../../js/src/build/libjs_static.a /build/firedragon/src/firefox-94.0.2/obj/x86_64-unknown-linux-gnu/release/libgkrust.a ../../../security/sandbox/linux/libmozsandbox.so ../../../config/external/lgpllibs/liblgpllibs.so ../../../config/external/sqlite/libmozsqlite3.so ../../../widget/gtk/mozgtk/libmozgtk.so ../../../widget/gtk/mozwayland/libmozwayland.so --version-script symverscript -ldl -licui18n -licuuc -licudata -laom -ldav1d -lrt -lm -lX11 -lX11-xcb -lxcb -lXcomposite -lXcursor -lXdamage -lXext -lXfixes -lXi -lXrender -lpthread -ldl -lc -lffi -lplds4 -lplc4 -lnspr4 -lz -lssl3 -lsmime3 -lnss3 -lnssutil3 -lfreetype -lfontconfig -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgraphite2 -lwebpdemux -lwebp -levent -lvpx -lpixman-1 -ldbus-glib-1 -ldbus-1 -lxcb-shm -lXrandr -u__llvm_profile_runtime /usr/lib/clang/13.0.0/lib/linux/libclang_rt.profile-x86_64.a -lstdc++ -lm -lgcc_s -lgcc -lpthread -lc -lgcc_s -lgcc /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/crtendS.o /usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib64/crtn.o
17:30.11  #0 0x00007f460a01fc93 (/usr/bin/../lib/libLLVM-13.so+0xba2c93)
17:30.11  #1 0x00007f460a01d4a6 (/usr/bin/../lib/libLLVM-13.so+0xba04a6)
17:30.11  #2 0x00007f460946f870 __restore_rt sigaction.c:0:0
17:30.11  #3 0x00007f46090b6d22 raise (/usr/bin/../lib/libc.so.6+0x3cd22)
17:30.11  #4 0x00007f46090a0862 abort (/usr/bin/../lib/libc.so.6+0x26862)
17:30.11  #5 0x00007f4609f390d4 llvm::report_fatal_error(llvm::Twine const&, bool) (/usr/bin/../lib/libLLVM-13.so+0xabc0d4)
17:30.11  #6 0x00007f4609f39268 (/usr/bin/../lib/libLLVM-13.so+0xabc268)
17:30.11  #7 0x00007f460a1ff68c (/usr/bin/../lib/libLLVM-13.so+0xd8268c)
17:30.11  #8 0x00007f460b999b52 (/usr/bin/../lib/libLLVM-13.so+0x251cb52)
17:30.11  #9 0x00007f460b99ca96 llvm::lto::opt(llvm::lto::Config const&, llvm::TargetMachine*, unsigned int, llvm::Module&, bool, llvm::ModuleSummaryIndex*, llvm::ModuleSummaryIndex const*, std::vector<unsigned char, std::allocator<unsigned char> > const&) (/usr/bin/../lib/libLLVM-13.so+0x251fa96)
17:30.11 #10 0x00007f460b99dc92 llvm::lto::backend(llvm::lto::Config const&, std::function<std::unique_ptr<llvm::lto::NativeObjectStream, std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>, unsigned int, llvm::Module&, llvm::ModuleSummaryIndex&) (/usr/bin/../lib/libLLVM-13.so+0x2520c92)
17:30.11 #11 0x00007f460b9925a2 llvm::lto::LTO::runRegularLTO(std::function<std::unique_ptr<llvm::lto::NativeObjectStream, std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>) (/usr/bin/../lib/libLLVM-13.so+0x25155a2)
17:30.11 #12 0x00007f460b992ace llvm::lto::LTO::run(std::function<std::unique_ptr<llvm::lto::NativeObjectStream, std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>, std::function<std::function<std::unique_ptr<llvm::lto::NativeObjectStream, std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)> (unsigned int, llvm::StringRef)>) (/usr/bin/../lib/libLLVM-13.so+0x2515ace)
17:30.11 #13 0x000056014deb134b lld::elf::BitcodeCompiler::compile() (/usr/bin/ld.lld+0x28e34b)
17:30.11 #14 0x000056014de10447 void lld::elf::LinkerDriver::compileBitcodeFiles<llvm::object::ELFType<(llvm::support::endianness)1, true> >() (/usr/bin/ld.lld+0x1ed447)
17:30.11 #15 0x000056014de25180 void lld::elf::LinkerDriver::link<llvm::object::ELFType<(llvm::support::endianness)1, true> >(llvm::opt::InputArgList&) (/usr/bin/ld.lld+0x202180)
17:30.11 #16 0x000056014de2c0e2 lld::elf::LinkerDriver::linkerMain(llvm::ArrayRef<char const*>) (/usr/bin/ld.lld+0x2090e2)
17:30.11 #17 0x000056014de2c478 lld::elf::link(llvm::ArrayRef<char const*>, bool, llvm::raw_ostream&, llvm::raw_ostream&) (/usr/bin/ld.lld+0x209478)
17:30.11 #18 0x000056014dd1c186 (/usr/bin/ld.lld+0xf9186)
17:30.11 #19 0x000056014dd17e66 main (/usr/bin/ld.lld+0xf4e66)
17:30.11 #20 0x00007f46090a1b25 __libc_start_main (/usr/bin/../lib/libc.so.6+0x27b25)
17:30.11 #21 0x000056014dd1af7e _start (/usr/bin/ld.lld+0xf7f7e)
17:31.38 clang-13: error: unable to execute command: Aborted (core dumped)
17:31.40 clang-13: error: linker command failed due to signal (use -v to see invocation)
17:31.55 make[4]: *** [/build/firedragon/src/firefox-94.0.2/config/rules.mk:545: libxul.so] Error 254
17:31.70 make[3]: *** [/build/firedragon/src/firefox-94.0.2/config/recurse.mk:72: toolkit/library/build/target] Error 2
17:31.70 make[2]: *** [/build/firedragon/src/firefox-94.0.2/config/recurse.mk:34: compile] Error 2
17:31.72 make[1]: *** [/build/firedragon/src/firefox-94.0.2/config/rules.mk:358: default] Error 2
17:31.86 make: *** [client.mk:54: build] Error 2
17:31.88 136 compiler warnings present.
17:34.03 Failed to parse ccache stats output: Summary:
 Config object not found by mach.
Configure complete!
Be sure to run |mach build| to pick up any changes
==> ERROR: A failure occurred in build().
    Aborting...

Prior to the new PKGBUILD and others' recent comments, I had it building fine; here's mine with a few minor edits (that shouldn't affect this issue):

# Maintainer: dr460nf1r3 <dr460nf1r3 at garudalinux dot org>
# Contributor: torvic9 AT mailbox DOT org
# Contributor: lsf

pkgname=firedragon
_pkgname=FireDragon
pkgver=94.0.2
pkgrel=3
pkgdesc="Librewolf fork build using custom branding, settings & KDE patches by OpenSUSE"
arch=(x86_64 x86_64_v3 aarch64)
backup=('usr/lib/firedragon/firedragon.cfg'
        'usr/lib/firedragon/distribution/policies.json')
license=(MPL GPL LGPL)
url="https://gitlab.com/dr460nf1r3/settings/"
depends=(gtk3 libxt mime-types dbus-glib ffmpeg nss nspr ttf-font libpulse
        libwebp libvpx libjpeg zlib icu libevent pipewire aom harfbuzz
        graphite dav1d kfiredragonhelper)
makedepends=(unzip zip diffutils yasm mesa imake inetutils xorg-server-xvfb
             rust ccache autoconf2.13 clang llvm jack nodejs cbindgen nasm
             python-setuptools python-psutil python-zstandard git binutils lld dump_syms)
optdepends=('firejail-git: Sandboxing the browser using the included profiles'
            'profile-sync-daemon: Load the browser profile into RAM'
            'whoogle: Searching the web using a locally running Whoogle instance'
            'searx: Searching the web using a locally running searX instance'
            'networkmanager: Location detection via available WiFi networks'
            'libnotify: Notification integration'
            'pulseaudio: Audio support'
            'speech-dispatcher: Text-to-Speech'
            'hunspell-en_US: Spell checking, American English'
            'libappindicator-gtk3: Global menu support for GTK apps'
            'appmenu-gtk-module-git: Appmenu for GTK only'
            'plasma5-applets-window-appmenu: Appmenu for Plasma only')
options=(!emptydirs !makeflags !strip !lto)
conflicts=('firedragon-hg')
install=$pkgname.install
source=(https://archive.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.xz
        $pkgname.desktop
        "git+https://gitlab.com/dr460nf1r3/common.git"
        "git+https://gitlab.com/dr460nf1r3/settings.git")

sha256sums=('899ba1c806549034793d7e8ca53f4c845d783c810338f314f3d653d39649e575'
            '158152bdb9ef6a83bad62ae03a3d9bc8ae693b34926e53cc8c4de07df20ab22d'
            'SKIP'
            'SKIP')

prepare() {
  if [[ ! -d mozbuild ]];then
      mkdir mozbuild
  fi
  cd firefox-$pkgver

  local _patches_dir="${srcdir}/common/patches"

  sed -i 's/\"BrowserApplication\"\, \"firefox\"/\"BrowserApplication\"\, \"firedragon\"/g' ${_patches_dir}/kde/firefox-kde.patch
  sed -i 's/kmozillahelper/kfiredragonhelper/g' ${_patches_dir}/kde/mozilla-kde.patch

  # Arch patches
  echo "---- Arch patches"
  patch -Np1 -i ${_patches_dir}/arch/0001-Use-remoting-name-for-GDK-application-names.patch

  # KDE patches (W. Rosenauer)
  echo "---- Patching for KDE"
  patch -Np1 -i ${_patches_dir}/kde/mozilla-nongnome-proxies.patch
  patch -Np1 -i ${_patches_dir}/kde/mozilla-kde.patch
  #patch -Np1 -i ${_patches_dir}/kde/firefox-kde.patch Currently broken with PGO

  # Ubuntu patches
  echo "---- Misc patches"
  patch -Np1 -i ${_patches_dir}/misc/fix-hidden-buttons-with-csd-menubar.patch

  # Rust
  patch -Np1 -i ${_patches_dir}/misc/reduce-rust-debuginfo.patch

  # Gentoo patches
  echo "---- Gentoo patches"
  patch -Np1 -i ${_patches_dir}/gentoo/0021-bmo-1516081-Disable-watchdog-during-PGO-builds.patch
  patch -Np1 -i ${_patches_dir}/gentoo/0029-LTO-Only-enable-LTO-for-Rust-when-complete-build-use.patch

  # Use more system libs
  echo "---- Patching for system libs"
  patch -Np1 -i ${_patches_dir}/gentoo/0004-bmo-847568-Support-system-harfbuzz.patch
  patch -Np1 -i ${_patches_dir}/gentoo/0005-bmo-847568-Support-system-graphite2.patch
  patch -Np1 -i ${_patches_dir}/gentoo/0006-bmo-1559213-Support-system-av1.patch

  # Remove some pre-installed addons that might be questionable
  echo "---- Librewolf patches"
  patch -Np1 -i ${_patches_dir}/librewolf/remove_addons.patch

  # Disable (some) megabar functionality
  # Adapted from https://github.com/WesleyBranton/userChrome.css-Customizations
  patch -Np1 -i ${_patches_dir}/librewolf/megabar.patch

  # Debian patch to enable global menubar
  patch -Np1 -i ${_patches_dir}/librewolf/unity-menubar.patch

  # Custom link in about dialogue
  patch -Np1 -i ${_patches_dir}/librewolf/about-dialog.patch

  # Disabling Pocket
  patch -Np1 -i ${_patches_dir}/sed-patches/disable-pocket.patch

  # Remove Mozilla VPN ads
  patch -Np1 -i ${_patches_dir}/librewolf/mozilla-vpn-ad.patch

  # Allow overriding the color scheme light/dark preference with RFP
  patch -Np1 -i ${_patches_dir}/librewolf/allow_dark_preference_with_rfp.patch  

  # Remove Internal Plugin Certificates
  # => breaks profiled builds since 90.0, it seems
  # patch -Np1 -i ${_patches_dir}/sed-patches/remove-internal-plugin-certs.patch

  # Allow SearchEngines option in non-ESR builds
  patch -Np1 -i ${_patches_dir}/sed-patches/allow-searchengines-non-esr.patch

  # Stop some undesired requests (https://gitlab.com/librewolf-community/browser/common/-/issues/10)
  patch -Np1 -i ${_patches_dir}/sed-patches/stop-undesired-requests.patch

  echo "---- Librewolf patches - UI"
  # Show a warning saying that changing language is not allowed through the UI,
  # and that it requires to visit our FAQ, instead of telling the user to check his connection.
  patch -Np1 -i ${_patches_dir}/librewolf-ui/add-language-warning.patch

  # Remove references to Firefox from the settings UI, change text in some of the links,
  # explain that we force en-US and suggest enabling history near the session restore checkbox.
  patch -Np1 -i ${_patches_dir}/librewolf-ui/pref-naming.patch

  # Remove Firefox references in the urlbar, when suggesting opened tabs.
  patch -Np1 -i ${_patches_dir}/librewolf-ui/remove-branding-urlbar.patch

  # Remove cfr UI elements, as they are disabled and locked already.
  patch -Np1 -i ${_patches_dir}/librewolf-ui/remove-cfrprefs.patch

  # Do not display your browser is being managed by your organization in the settings.
  patch -Np1 -i ${_patches_dir}/librewolf-ui/remove-organization-policy-banner.patch

  # Hide "snippets" section from the home page settings, as it was already locked.
  patch -Np1 -i ${_patches_dir}/librewolf-ui/remove-snippets-from-home.patch

  # Add warning that sanitizing exceptions are bypassed by the options in History > Clear History when LibreWolf closes > Settings
  patch -Np1 -i ${_patches_dir}/librewolf-ui/sanitizing-description.patch

  echo "---- Fixing build with Wayland"
  # Needed patch to have build working
  patch -Np1 -i ${_patches_dir}/misc/fix-wayland.patch

  cat >../mozconfig <<END
ac_add_options --enable-application=browser
mk_add_options MOZ_OBJDIR=${PWD@Q}/obj

ac_add_options --prefix=/usr
ac_add_options --enable-linker=lld
ac_add_options --enable-release
ac_add_options --enable-hardening
ac_add_options --enable-rust-simd
ac_add_options --with-ccache
export AR=llvm-ar
export CC='clang'
export CXX='clang++'
export MOZ_APP_REMOTINGNAME=$_pkgname
export MOZ_REQUIRE_SIGNING=
export NM=llvm-nm
export OBJCOPY='/usr/bin/llvm-objcopy'
export RANLIB=llvm-ranlib
export STRIP=llvm-strip

# Branding
ac_add_options --enable-update-channel=release
ac_add_options --with-app-name=${pkgname}
ac_add_options --with-app-basename='${_pkgname}'
ac_add_options --with-branding=browser/branding/firedragon
ac_add_options --with-distribution-id=org.garudalinux
ac_add_options --with-unsigned-addon-scopes=app,system
ac_add_options --allow-addon-sideload

# System libraries
ac_add_options --disable-libproxy
ac_add_options --enable-system-pixman
ac_add_options --with-system-av1
ac_add_options --with-system-ffi
ac_add_options --with-system-graphite2
ac_add_options --with-system-harfbuzz
ac_add_options --with-system-icu
ac_add_options --with-system-jpeg
ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-webp
ac_add_options --with-system-zlib

# Features
ac_add_options --disable-crashreporter
#ac_add_options --disable-debug
#ac_add_options --disable-debug-js-modules
#ac_add_options --disable-debug-symbols
ac_add_options --disable-gpsd
#ac_add_options --disable-ipdl-tests
#ac_add_options --disable-necko-wifi
#ac_add_options --disable-rust-tests
#ac_add_options --disable-synth-speechd
ac_add_options --disable-tests
#ac_add_options --disable-trace-logging
ac_add_options --disable-updater
#ac_add_options --disable-warnings-as-errors
#ac_add_options --disable-webspeech
#ac_add_options --disable-webspeechtestbackend
ac_add_options --enable-alsa
ac_add_options --enable-jack
ac_add_options --enable-pulseaudio
ac_add_options --enable-strip

# Disables crash reporting, telemetry and other data gathering tools
mk_add_options MOZ_CRASHREPORTER=0
mk_add_options MOZ_DATA_REPORTING=0
mk_add_options MOZ_SERVICES_HEALTHREPORT=0
mk_add_options MOZ_TELEMETRY_REPORTING=0

# options for ci / weaker build systems
mk_add_options MOZ_MAKE_FLAGS="-j$(nproc)"
# ac_add_options --enable-linker=gold
END

if [[ $CARCH == 'aarch64' ]]; then
  cat >>../mozconfig <<END
# taken from manjaro build:
ac_add_options --enable-optimize="-g0 -O3"
# from ALARM
# ac_add_options --disable-webrtc

END

  export MOZ_DEBUG_FLAGS=" "
  export CFLAGS+=" -g0"
  export CXXFLAGS+=" -g0"
  export RUSTFLAGS+="-C debuginfo=0 -C opt-level=3 -C target-cpu=native"

  # we should have more than enough RAM on the CI spot instances.
  # ...or maybe not?
  export LDFLAGS+=" -Wl,--no-keep-memory"
  patch -Np1 -i ${_patches_dir}/librewolf/arm.patch
  patch -Np1 -i ${_patches_dir}/arch/build-arm-libopus.patch

else

  cat >>../mozconfig <<END
# probably not needed, enabled by default?
ac_add_options --enable-optimize
END
fi

  rm -f ${srcdir}/common/source_files/mozconfig
  cp -r ${srcdir}/common/source_files/* ./
}


build() {
  cd firefox-$pkgver

  export MOZ_NOSPAM=1
  export MOZBUILD_STATE_PATH="$srcdir/mozbuild"
  export MOZ_ENABLE_FULL_SYMBOLS=1
  export MACH_USE_SYSTEM_PYTHON=1

  # LTO needs more open files
  ulimit -n 4096

  # -fno-plt with cross-LTO causes obscure LLVM errors
  # LLVM ERROR: Function Import: link error
  CFLAGS="${CFLAGS/-fno-plt/}"
  CXXFLAGS="${CXXFLAGS/-fno-plt/}"

  # Do 3-tier PGO
  echo "Building instrumented browser..."

if [[ $CARCH == 'aarch64' ]]; then

  cat >.mozconfig ../mozconfig - <<END
ac_add_options --enable-profile-generate
END

else

  cat >.mozconfig ../mozconfig - <<END
ac_add_options --enable-profile-generate=cross
END

fi

  ./mach build

  echo "Profiling instrumented browser..."
  ./mach package
  LLVM_PROFDATA=llvm-profdata \
    JARLOG_FILE="$PWD/jarlog" \
    xvfb-run -s "-screen 0 1920x1080x24 -nolisten local" \
    ./mach python build/pgo/profileserver.py

  stat -c "Profile data found (%s bytes)" merged.profdata
  test -s merged.profdata

  stat -c "Jar log found (%s bytes)" jarlog
  test -s jarlog

  echo "Removing instrumented browser..."
  ./mach clobber

  echo "Building optimized browser..."

if [[ $CARCH == 'aarch64' ]]; then

  cat >.mozconfig ../mozconfig - <<END
ac_add_options --enable-lto
ac_add_options --enable-profile-use
ac_add_options --with-pgo-profile-path=${PWD@Q}/merged.profdata
ac_add_options --with-pgo-jarlog=${PWD@Q}/jarlog
ac_add_options --enable-linker=lld
END

else

  cat >.mozconfig ../mozconfig - <<END
ac_add_options --enable-lto=cross
ac_add_options --enable-profile-use=cross
ac_add_options --with-pgo-profile-path=${PWD@Q}/merged.profdata
ac_add_options --with-pgo-jarlog=${PWD@Q}/jarlog
ac_add_options --enable-linker=lld
ac_add_options --disable-elf-hack
ac_add_options --disable-bootstrap
END

fi

  ./mach build

  echo "Building symbol archive..."
  ./mach buildsymbols
}

package() {
  cd firefox-$pkgver
  DESTDIR="$pkgdir" ./mach install

  install -Dvm644 "$srcdir/settings/$pkgname.psd" "$pkgdir/usr/share/psd/browsers/$pkgname"

  local vendorjs="$pkgdir/usr/lib/$pkgname/browser/defaults/preferences/vendor.js"

  install -Dvm644 /dev/stdin "$vendorjs" <<END
// Use system-provided dictionaries
pref("spellchecker.dictionary_path", "/usr/share/hunspell");

// Don't disable extensions in the application directory
// done in librewolf.cfg
// pref("extensions.autoDisableScopes", 11);
END

  # cd ${srcdir}/settings
  # git checkout ${_settings_commit}
  cd ${srcdir}/firefox-$pkgver
  cp -r ${srcdir}/settings/* ${pkgdir}/usr/lib/${pkgname}/

  local distini="$pkgdir/usr/lib/$pkgname/distribution/distribution.ini"
  install -Dvm644 /dev/stdin "$distini" <<END
[Global]
id=garudalinux
version=${pkgver}
about=${_pkgname} for Arch Linux

[Preferences]
app.distributor=garudalinux
app.distributor.channel=${pkgname}
app.partner.garudalinux=garudalinux
END

  for i in 16 32 48 64 128; do
    install -Dvm644 browser/branding/${pkgname}/default$i.png \
      "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/$pkgname.png"
  done
  install -Dvm644 browser/branding/${pkgname}/content/about-logo.png \
    "$pkgdir/usr/share/icons/hicolor/192x192/apps/$pkgname.png"

  # Arch upstream provides a separate svg for this. we don't have that, so let's re-use 16.png
  install -Dvm644 browser/branding/${pkgname}/default16.png \
    "$pkgdir/usr/share/icons/hicolor/symbolic/apps/$pkgname-symbolic.png"

  install -Dvm644 ../$pkgname.desktop \
    "$pkgdir/usr/share/applications/$pkgname.desktop"

  # Install a wrapper to avoid confusion about binary path
  install -Dvm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" <<END
#!/bin/sh
exec /usr/lib/$pkgname/$pkgname "\$@"
END

  # Replace duplicate binary with wrapper
  # https://bugzilla.mozilla.org/show_bug.cgi?id=658850
  ln -srfv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/lib/$pkgname/$pkgname-bin"
  # Use system certificates
  local nssckbi="$pkgdir/usr/lib/$pkgname/libnssckbi.so"
  if [[ -e $nssckbi ]]; then
    ln -srfv "$pkgdir/usr/lib/libnssckbi.so" "$nssckbi"
  fi

  # Delete unneeded things from settings repo
  rm "$pkgdir/usr/lib/firedragon/LICENSE.txt"
  rm "$pkgdir/usr/lib/firedragon/about.png"
  rm "$pkgdir/usr/lib/firedragon/firedragon.psd"
  rm "$pkgdir/usr/lib/firedragon/home.png"
  rm "$pkgdir/usr/lib/firedragon/tabliss.json"
}

prg commented on 2021-11-28 17:50 (UTC) (edited on 2021-11-28 22:25 (UTC) by prg)

Anyone able to get this to build recently?

edit: I was able to get 92.0.2-3 to build on a clean build VM. Not sure why it was failing for me in my previous post

prg commented on 2021-11-25 06:35 (UTC)

My builds seem to be freezing at this point. It doesn't actually fail, but stalls here forever

 0:26.34 make: Leaving directory '/home/user/firedragon/src/firefox-94.0.2/obj'
created virtual environment CPython3.9.7.final.0-64 in 81ms
  creator CPython3Posix(dest=/home/user/firedragon/src/firefox-94.0.2/obj/_virtualenvs/common, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/user/.local/share/virtualenv)
    added seed packages: pip==21.2.3, setuptools==51.2.0, wheel==0.37.0
  activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /tmp/tmp9d4dgsgo/search.json.mozlz4", (void 0)))

###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost


###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost


###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost


###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost

jarlog: /home/user/firedragon/src/firefox-94.0.2/jarlog
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
1637821649868   addons.xpi      ERROR   System addon update list error Error: got node name: parsererror, expected: updates

Neko-san commented on 2021-11-05 21:49 (UTC)

@dr460f1r3 can you merge the PKGBUILD I mentioned?

Neko-san commented on 2021-10-30 22:36 (UTC) (edited on 2021-10-31 05:30 (UTC) by Neko-san)

I managed to find the issue; some edits to the PKGBUILD fixed it, but it does still end up resulting in what @prg mentioned with the rust errors:

# Maintainer: dr460nf1r3 <dr460nf1r3 at garudalinux dot org>
# Contributor: torvic9 AT mailbox DOT org
# Contributor: lsf

pkgname=firedragon
_pkgname=FireDragon
pkgver=93.0
pkgrel=3
pkgdesc="Librewolf fork build using custom branding, settings & KDE patches by OpenSUSE"
arch=(x86_64 x86_64_v3 aarch64)
backup=('usr/lib/firedragon/firedragon.cfg'
        'usr/lib/firedragon/distribution/policies.json')
license=(MPL GPL LGPL)
url="https://gitlab.com/dr460nf1r3/settings/"
depends=(gtk3 libxt mime-types dbus-glib ffmpeg nss nspr ttf-font libpulse
        libwebp libvpx libjpeg zlib icu libevent pipewire aom harfbuzz
        graphite dav1d kfiredragonhelper)
makedepends=(unzip zip diffutils yasm mesa imake inetutils xorg-server-xvfb
             rust ccache autoconf2.13 clang llvm jack nodejs cbindgen nasm
             python-setuptools python-psutil python-zstandard git binutils lld dump_syms)
optdepends=('firejail-git: Sandboxing the browser using the included profiles'
            'profile-sync-daemon: Load the browser profile into RAM'
            'whoogle: Searching the web using a locally running Whoogle instance'
            'searx: Searching the web using a locally running searX instance'
            'networkmanager: Location detection via available WiFi networks'
            'libnotify: Notification integration'
            'pulseaudio: Audio support'
            'speech-dispatcher: Text-to-Speech'
            'hunspell-en_US: Spell checking, American English'
            'libappindicator-gtk3: Global menu support for GTK apps'
            'appmenu-gtk-module-git: Appmenu for GTK only'
            'plasma5-applets-window-appmenu: Appmenu for Plasma only')
options=(!emptydirs !makeflags !strip !lto)
conflicts=('firedragon-hg')
install=$pkgname.install
source=(https://archive.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.xz
        $pkgname.desktop
        "git+https://gitlab.com/dr460nf1r3/common.git"
        "git+https://gitlab.com/dr460nf1r3/settings.git")

sha256sums=('a78f080f5849bc284b84299f3540934a12e961a7ea368b592ae6576ea1f97102'
            '158152bdb9ef6a83bad62ae03a3d9bc8ae693b34926e53cc8c4de07df20ab22d'
            'SKIP'
            'SKIP')

prepare() {
  if [[ ! -d mozbuild ]];then
      mkdir mozbuild
  fi
  cd firefox-$pkgver

  local _patches_dir="${srcdir}/common/patches"

  sed -i 's/\"BrowserApplication\"\, \"firefox\"/\"BrowserApplication\"\, \"firedragon\"/g' ${_patches_dir}/kde/firefox-kde.patch
  sed -i 's/kmozillahelper/kfiredragonhelper/g' ${_patches_dir}/kde/mozilla-kde.patch

  # Arch patches
  echo "---- Arch patches"
  patch -Np1 -i ${_patches_dir}/arch/0001-Use-remoting-name-for-GDK-application-names.patch

  # KDE patches (W. Rosenauer)
  echo "---- Patching for KDE"
  patch -Np1 -i ${_patches_dir}/kde/mozilla-nongnome-proxies.patch
  patch -Np1 -i ${_patches_dir}/kde/mozilla-kde.patch
  #patch -Np1 -i ${_patches_dir}/kde/firefox-kde.patch Currently broken with PGO

  # Ubuntu patches
  echo "---- Misc patches"
  patch -Np1 -i ${_patches_dir}/misc/fix-hidden-buttons-with-csd-menubar.patch

  # Rust
  patch -Np1 -i ${_patches_dir}/misc/reduce-rust-debuginfo.patch

  # Gentoo patches
  echo "---- Gentoo patches"
  patch -Np1 -i ${_patches_dir}/gentoo/0021-bmo-1516081-Disable-watchdog-during-PGO-builds.patch
  patch -Np1 -i ${_patches_dir}/gentoo/0029-LTO-Only-enable-LTO-for-Rust-when-complete-build-use.patch

  # Use more system libs
  echo "---- Patching for system libs"
  patch -Np1 -i ${_patches_dir}/gentoo/0004-bmo-847568-Support-system-harfbuzz.patch
  patch -Np1 -i ${_patches_dir}/gentoo/0005-bmo-847568-Support-system-graphite2.patch
  patch -Np1 -i ${_patches_dir}/gentoo/0006-bmo-1559213-Support-system-av1.patch

  # Remove some pre-installed addons that might be questionable
  echo "---- Librewolf patches"
  patch -Np1 -i ${_patches_dir}/librewolf/remove_addons.patch

  # Disable (some) megabar functionality
  # Adapted from https://github.com/WesleyBranton/userChrome.css-Customizations
  patch -Np1 -i ${_patches_dir}/librewolf/megabar.patch

  # Debian patch to enable global menubar
  patch -Np1 -i ${_patches_dir}/librewolf/unity-menubar.patch

  # Disabling Pocket
  patch -Np1 -i ${_patches_dir}/sed-patches/disable-pocket.patch

  # Remove Mozilla VPN ads
  patch -Np1 -i ${_patches_dir}/librewolf/mozilla-vpn-ad.patch

  # Allow overriding the color scheme light/dark preference with RFP
  patch -Np1 -i ${_patches_dir}/librewolf/allow_dark_preference_with_rfp.patch

  # Remove Internal Plugin Certificates
  # => breaks profiled builds since 90.0, it seems
  # patch -Np1 -i ${_patches_dir}/sed-patches/remove-internal-plugin-certs.patch

  # Allow SearchEngines option in non-ESR builds
  patch -Np1 -i ${_patches_dir}/sed-patches/allow-searchengines-non-esr.patch

  # Stop some undesired requests (https://gitlab.com/librewolf-community/browser/common/-/issues/10)
  patch -Np1 -i ${_patches_dir}/sed-patches/stop-undesired-requests.patch

  # Needed patch to have build working
  patch -Np1 -i ${_patches_dir}/misc/fix-wayland.patch

  cat >../mozconfig <<END
ac_add_options --enable-application=browser
mk_add_options MOZ_OBJDIR=${PWD@Q}/obj

ac_add_options --prefix=/usr
ac_add_options --enable-release
ac_add_options --enable-hardening
ac_add_options --enable-rust-simd
ac_add_options --with-ccache
export CC=clang
export CXX=clang++
export RANLIB=llvm-ranlib
export STRIP=llvm-strip
export AR=llvm-ar
export NM=llvm-nm
export LD=lld
export OBJCOPY='/usr/bin/llvm-objcopy'
ac_add_options --enable-linker=lld

# Branding
ac_add_options --enable-update-channel=release
ac_add_options --with-app-name=${pkgname}
ac_add_options --with-app-basename='${_pkgname}'
ac_add_options --with-branding=browser/branding/firedragon
ac_add_options --with-distribution-id=org.garudalinux
ac_add_options --with-unsigned-addon-scopes=app,system
ac_add_options --allow-addon-sideload

#export STRIP_FLAGS="--strip-debug --strip-unneeded"

# System libraries
#ac_add_options --disable-libproxy
ac_add_options --enable-system-pixman
ac_add_options --with-system-av1
ac_add_options --with-system-ffi
ac_add_options --with-system-graphite2
ac_add_options --with-system-harfbuzz
ac_add_options --with-system-icu
ac_add_options --with-system-jpeg
ac_add_options --with-system-libevent
#ac_add_options --with-system-libvpx
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-webp
ac_add_options --with-system-zlib

# Features
ac_add_options --disable-crashreporter
#ac_add_options --disable-debug
#ac_add_options --disable-debug-js-modules
#ac_add_options --disable-debug-symbols
ac_add_options --disable-gpsd
#ac_add_options --disable-ipdl-tests
#ac_add_options --disable-necko-wifi
#ac_add_options --disable-rust-tests
#ac_add_options --disable-synth-speechd
ac_add_options --disable-tests
#ac_add_options --disable-trace-logging
ac_add_options --disable-updater
#ac_add_options --disable-warnings-as-errors
#ac_add_options --disable-webspeech
#ac_add_options --disable-webspeechtestbackend
ac_add_options --enable-alsa
ac_add_options --enable-jack
ac_add_options --enable-pulseaudio
ac_add_options --enable-strip

# Disables crash reporting, telemetry and other data gathering tools
mk_add_options MOZ_CRASHREPORTER=0
mk_add_options MOZ_DATA_REPORTING=0
mk_add_options MOZ_SERVICES_HEALTHREPORT=0
mk_add_options MOZ_TELEMETRY_REPORTING=0

# options for ci / weaker build systems
# mk_add_options MOZ_MAKE_FLAGS="-j4"
# ac_add_options --enable-linker=gold
END

if [[ $CARCH == 'aarch64' ]]; then
  cat >>../mozconfig <<END
# taken from manjaro build:
ac_add_options --enable-optimize="-g0 -O2"
# from ALARM
# ac_add_options --disable-webrtc

END

  export MOZ_DEBUG_FLAGS=" "
  export CFLAGS+=" -g0"
  export CXXFLAGS+=" -g0"
  export RUSTFLAGS+="-C debuginfo=0"

  # we should have more than enough RAM on the CI spot instances.
  # ...or maybe not?
  export LDFLAGS+=" -Wl,--no-keep-memory"
  patch -Np1 -i ${_patches_dir}/librewolf/arm.patch
  patch -Np1 -i ${_patches_dir}/arch/build-arm-libopus.patch

else

  cat >>../mozconfig <<END
# probably not needed, enabled by default?
ac_add_options --enable-optimize
END
fi

  rm -f ${srcdir}/common/source_files/mozconfig
  cp -r ${srcdir}/common/source_files/* ./
}

build() {
  cd firefox-$pkgver

  export MOZ_NOSPAM=1
  export MOZBUILD_STATE_PATH="$srcdir/mozbuild"
  export MOZ_ENABLE_FULL_SYMBOLS=1
  export MACH_USE_SYSTEM_PYTHON=1
    export CC=clang
    export CXX=clang++
    export RANLIB=llvm-ranlib
    export STRIP=llvm-strip
    export AR=llvm-ar
    export NM=llvm-nm
    export LD=lld
    export OBJCOPY='/usr/bin/llvm-objcopy'

  # LTO needs more open files
  ulimit -n 4096

  # -fno-plt with cross-LTO causes obscure LLVM errors
  # LLVM ERROR: Function Import: link error
  CFLAGS="${CFLAGS/-fno-plt/}"
  CXXFLAGS="${CXXFLAGS/-fno-plt/}"

  # Do 3-tier PGO
  echo "Building instrumented browser..."

if [[ $CARCH == 'aarch64' ]]; then

  cat >.mozconfig ../mozconfig - <<END
ac_add_options --enable-profile-generate
END

else

  cat >.mozconfig ../mozconfig - <<END
ac_add_options --enable-profile-generate=cross
END

fi

  ./mach build

  echo "Profiling instrumented browser..."
  ./mach package
  LLVM_PROFDATA=llvm-profdata \
    JARLOG_FILE="$PWD/jarlog" \
    xvfb-run -s "-screen 0 1920x1080x24 -nolisten local" \
    ./mach python build/pgo/profileserver.py

  stat -c "Profile data found (%s bytes)" merged.profdata
  test -s merged.profdata

  stat -c "Jar log found (%s bytes)" jarlog
  test -s jarlog

  echo "Removing instrumented browser..."
  ./mach clobber

  echo "Building optimized browser..."

    if [[ $CARCH == 'aarch64' ]]; then

      cat >.mozconfig ../mozconfig - <<END
    ac_add_options --enable-lto
    ac_add_options --enable-profile-use
    ac_add_options --with-pgo-profile-path=${PWD@Q}/merged.profdata
    ac_add_options --with-pgo-jarlog=${PWD@Q}/jarlog
    ac_add_options --enable-linker=lld
END

    else

      cat >.mozconfig ../mozconfig - <<END
    ac_add_options --enable-lto=cross
    ac_add_options --enable-profile-use=cross
    ac_add_options --with-pgo-profile-path=${PWD@Q}/merged.profdata
    ac_add_options --with-pgo-jarlog=${PWD@Q}/jarlog
    ac_add_options --enable-linker=lld
    ac_add_options --disable-elf-hack
    ac_add_options --disable-bootstrap
END

    fi

  ./mach build

  echo "Building symbol archive..."
  ./mach buildsymbols
}

package() {
  cd firefox-$pkgver
  DESTDIR="$pkgdir" ./mach install

  install -Dvm644 "$srcdir/settings/$pkgname.psd" "$pkgdir/usr/share/psd/browsers/$pkgname"

  local vendorjs="$pkgdir/usr/lib/$pkgname/browser/defaults/preferences/vendor.js"

  install -Dvm644 /dev/stdin "$vendorjs" <<END
// Use system-provided dictionaries
pref("spellchecker.dictionary_path", "/usr/share/hunspell");

// Don't disable extensions in the application directory
// done in librewolf.cfg
// pref("extensions.autoDisableScopes", 11);
END

  # cd ${srcdir}/settings
  # git checkout ${_settings_commit}
  cd ${srcdir}/firefox-$pkgver
  cp -r ${srcdir}/settings/* ${pkgdir}/usr/lib/${pkgname}/

  local distini="$pkgdir/usr/lib/$pkgname/distribution/distribution.ini"
  install -Dvm644 /dev/stdin "$distini" <<END
[Global]
id=garudalinux
version=${pkgver}
about=${_pkgname} for Arch Linux

[Preferences]
app.distributor="Garuda Linux"
app.distributor.channel=$pkgname
app.partner.archlinux=garudalinux
END

  for i in 16 32 48 64 128; do
    install -Dvm644 browser/branding/${pkgname}/default$i.png \
      "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/$pkgname.png"
  done
  install -Dvm644 browser/branding/${pkgname}/content/about-logo.png \
    "$pkgdir/usr/share/icons/hicolor/192x192/apps/$pkgname.png"

  # Arch upstream provides a separate svg for this. we don't have that, so let's re-use 16.png
  install -Dvm644 browser/branding/${pkgname}/default16.png \
    "$pkgdir/usr/share/icons/hicolor/symbolic/apps/$pkgname-symbolic.png"

  install -Dvm644 ../$pkgname.desktop \
    "$pkgdir/usr/share/applications/$pkgname.desktop"

  # Install a wrapper to avoid confusion about binary path
  install -Dvm755 /dev/stdin "$pkgdir/usr/bin/$pkgname" <<END
#!/bin/sh
exec /usr/lib/$pkgname/$pkgname "\$@"
END

  # Replace duplicate binary with wrapper
  # https://bugzilla.mozilla.org/show_bug.cgi?id=658850
  ln -srfv "$pkgdir/usr/bin/$pkgname" "$pkgdir/usr/lib/$pkgname/$pkgname-bin"
  # Use system certificates
  local nssckbi="$pkgdir/usr/lib/$pkgname/libnssckbi.so"
  if [[ -e $nssckbi ]]; then
    ln -srfv "$pkgdir/usr/lib/libnssckbi.so" "$nssckbi"
  fi

  # Delete unneeded things from settings repo
  rm "$pkgdir/usr/lib/firedragon/LICENSE.txt"
  rm "$pkgdir/usr/lib/firedragon/about.png"
  rm "$pkgdir/usr/lib/firedragon/firedragon.psd"
  rm "$pkgdir/usr/lib/firedragon/home.png"
  rm "$pkgdir/usr/lib/firedragon/tabliss.json"
}

prg commented on 2021-10-27 13:01 (UTC)

Unfortunately, firedragon is failing to build on bare-metal also. It seems that its likely a separate issue from the failing-to-build in a chroot issue, though.

1:09.89    Compiling iovec v0.1.4                                                                                                                                                                                                                                                                                              
 1:09.89 For more information about this error, try `rustc --explain E0557`.                                                                                                                                                                                                                                                    
 1:09.91 The following warnings were emitted during compilation:                                                                                                                                                                                                                                                                
 1:09.91 warning: Cannot set `RUSTC_BOOTSTRAP=1` from build script of `packed_simd v0.3.4 (https://github.com/hsivonen/packed_simd?rev=6a16f954950401b92b4e220fbf2dfaf6f00e1fb2#6a16f954)`.                                                                                                                                     
 1:09.92 note: Crates cannot set `RUSTC_BOOTSTRAP` themselves, as doing so would subvert the stability guarantees of Rust for your project.                                                                                                                                                                                     
 1:09.92 error: could not compile `packed_simd` due to 13 previous errors                                                                                                                                                                                                                                                       
 1:09.92 warning: build failed, waiting for other jobs to finish...                                                                                                                                                                                                                                                             
 1:09.93 image/encoders/ico                                                                                                                                                                                                                                                                                                     
 1:09.95 image/encoders/jpeg                                                                                                                                                                                                                                                                                                    
 1:09.98 image/encoders/png                                                                                                                                                                                                                                                                                                     
 1:10.01 image                                                                                                                                                                                                                                                                                                                  
 1:10.13 intl/components                                                                                                                                                                                                                                                                                                        
 1:10.13 intl/hyphenation/glue                                                                                                                                                                                                                                                                                                  
 1:10.18 intl/l10n                                                                                                                                                                                                                                                                                                              
 1:10.19 intl/locale/gtk                                                                                                                                                                                                                                                                                                        
 1:10.21 intl/locale                                                                                                                                                                                                                                                                                                            
 1:10.22 intl/lwbrk                                                                                                                                                                                                                                                                                                             
 1:10.24 intl/strres                                                                                                                                                                                                                                                                                                            
 1:10.25 intl/uconv                                                                                                                                                                                                                                                                                                             
 1:10.26 intl/unicharutil/util                                                                                                                                                                                                                                                                                                  
 1:10.27 ipc/app                                                                                                                                                                                                                                                                                                                
 1:10.55 toolkit/library/build/symverscript.stub                                                                                                                                                                                                                                                                                
 1:10.56 media/libsoundtouch/src                                                                                                                                                                                                                                                                                                
 1:10.56 config/external/sqlite/libmozsqlite3.so.symbols.stub                                                                                                                                                                                                                                                                   
 1:10.57 In file included from Unified_cpp_libsoundtouch_src0.cpp:20:                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/FIRFilter.cpp:81:12: warning: unused variable 'dScaler' [-Wunused-variable]                                                                                                                                                                            
 1:10.57     double dScaler = 1.0 / (double)resultDivider;                                                                                                                                                                                                                                                                      
 1:10.57            ^                                                                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/FIRFilter.cpp:127:12: warning: unused variable 'dScaler' [-Wunused-variable]                                                                                                                                                                           
 1:10.57     double dScaler = 1.0 / (double)resultDivider;                                                                                                                                                                                                                                                                      
 1:10.57            ^                                                                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/FIRFilter.cpp:166:12: warning: unused variable 'dScaler' [-Wunused-variable]                                                                                                                                                                           
 1:10.57     double dScaler = 1.0 / (double)resultDivider;                                                                                                                                                                                                                                                                      
 1:10.57            ^                                                                                                                                                                                                                                                                                                           
 1:10.57 In file included from Unified_cpp_libsoundtouch_src0.cpp:47:                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/InterpolateShannon.cpp:71:9: warning: 'PI' macro redefined [-Wmacro-redefined]                                                                                                                                                                         
 1:10.57 #define PI 3.1415926536                                                                                                                                                                                                                                                                                                
 1:10.57         ^                                                                                                                                                                                                                                                                                                              
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/AAFilter.cpp:45:9: note: previous definition is here                                                                                                                                                                                                   
 1:10.57 #define PI       M_PI                                                                                                                                                                                                                                                                                                  
 1:10.57         ^                                                                                                                                                                                                                                                                                                              
 1:10.57 In file included from Unified_cpp_libsoundtouch_src0.cpp:92:                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/cpu_detect_x86.cpp:48:12: warning: 'bit_MMX' macro redefined [-Wmacro-redefined]                                                                                                                                                                       
 1:10.57    #define bit_MMX     (1 << 23)                                                                                                                                                                                                                                                                                       
 1:10.57            ^                                                                                                                                                                                                                                                                                                           
 1:10.57 /usr/lib/clang/12.0.1/include/cpuid.h:133:9: note: previous definition is here                                                                                                                                                                                                                                         
 1:10.57 #define bit_MMX         0x00800000                                                                                                                                                                                                                                                                                     
 1:10.57         ^                                                                                                                                                                                                                                                                                                              
 1:10.57 In file included from Unified_cpp_libsoundtouch_src0.cpp:92:                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/cpu_detect_x86.cpp:49:12: warning: 'bit_SSE' macro redefined [-Wmacro-redefined]                                                                                                                                                                       
 1:10.57    #define bit_SSE     (1 << 25)                                                                                                                                                                                                                                                                                       
 1:10.57            ^                                                                                                                                                                                                                                                                                                           
 1:10.57 /usr/lib/clang/12.0.1/include/cpuid.h:136:9: note: previous definition is here                                                                                                                                                                                                                                         
 1:10.57 #define bit_SSE         0x02000000                                                                                                                                                                                                                                                                                     
 1:10.57         ^                                                                                                                                                                                                                                                                                                              
 1:10.57 In file included from Unified_cpp_libsoundtouch_src0.cpp:92:                                                                                                                                                                                                                                                           
 1:10.57 /home/user/firedragon/src/firefox-93.0/media/libsoundtouch/src/cpu_detect_x86.cpp:50:12: warning: 'bit_SSE2' macro redefined [-Wmacro-redefined]                                                                                                                                                                      
 1:10.57    #define bit_SSE2    (1 << 26)                                                                                                                                                                                                                                                                                       
 1:10.57            ^                                                                                                                                                                           
 1:10.57 /usr/lib/clang/12.0.1/include/cpuid.h:137:9: note: previous definition is here                                                                                                         
 1:10.57 #define bit_SSE2        0x04000000                                                                                                                                                     
 1:10.57         ^                                                                                                                                                                              
 1:10.57 7 warnings generated.                                                                                                                                                                  
 1:10.57 third_party/sqlite3/src                                                                                                                                                                
 1:10.59 ipc/chromium                                                                                                                                                                           
 1:10.71 ipc/glue                                                                                                                                                                               
 1:10.72 ipc/ipdl                                                                                                                                                                               
 1:21.62 ipc/testshell                                                                                                                                                                          
 1:27.83 js/ductwork/debugger                                                                                                                                                                   
 1:29.50 js/src/debugger                                                                                                                                                                        
 1:30.60 js/src/frontend                                                                                                                                                                        
 1:32.75 js/src/gc/StatsPhasesGenerated.inc.stub                                                                                                                                                
 1:32.93 js/src/irregexp                                                                                                                                                                        
 1:33.76 js/src/jit                                                                                                                                                                             
 1:35.12 js/src                                                                                                                                                                                 
 1:36.94 js/src/wasm                                                                                                                                                                            
 1:40.84 modules/fdlibm/src                                                                                                                                                                     
 1:43.10 error: build failed                                                                                                                                                                    
 1:43.11 make[4]: *** [/home/user/firedragon/src/firefox-93.0/config/makefiles/rust.mk:408: force-cargo-library-build] Error 101                                                               
 1:43.11 make[3]: *** [/home/user/firedragon/src/firefox-93.0/config/recurse.mk:72: toolkit/library/rust/target] Error 2                                                                       
 1:43.11 make[3]: *** Waiting for unfinished jobs....                                                                                                                                           
 2:16.98 /home/user/firedragon/src/firefox-93.0/third_party/sqlite3/src/sqlite3.c:161544:9: warning: code will never be executed [-Wunreachable-code]                                          
 2:16.98         YYMINORTYPE yylhsminor;                                                                                                                                                        
 2:16.98         ^~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                        
 2:16.98 1 warning generated.                                                                                                                                                                   
 3:08.11 make[2]: *** [/home/user/firedragon/src/firefox-93.0/config/recurse.mk:34: compile] Error 2                                                                                           
 3:08.11 make[1]: *** [/home/user/firedragon/src/firefox-93.0/config/rules.mk:358: default] Error 2                                                                                            
 3:08.11 make: *** [client.mk:65: build] Error 2                                                                                                                                                
 3:08.13 34 compiler warnings present.                                                                                                                                                          
 3:08.18 Failed to parse ccache stats output: Summary:                                                                  
==> ERROR: A failure occurred in build().                                                                               
    Aborting...                                  

Neko-san commented on 2021-10-25 20:03 (UTC) (edited on 2021-10-27 20:07 (UTC) by Neko-san)

@dr460nf1r3 I managed to set up a chroot (with Paru) and it fails even in that environment for me (I really hope I can get help with this; I've never been able to compile it and my chroot log is essentially identical to my bare-metal one):

==> Starting build()...
Building instrumented browser...
 0:01.01 Failed to parse ccache stats output: Summary:
 0:01.02 Clobber not needed.
 0:01.02 /usr/bin/python3 /build/firedragon/src/firefox-93.0/configure.py
 0:01.13 Creating Python 3 environment
 0:01.46 created virtual environment CPython3.9.7.final.0-64 in 164ms
 0:01.46   creator CPython3Posix(dest=/build/firedragon/src/firefox-93.0/obj/_virtualenvs/common, clear=False, no_vcs_ignore=False, global=False)
 0:01.46   seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/build/.local/share/virtualenv)
 0:01.46     added seed packages: pip==20.3.1, setuptools==51.0.0, wheel==0.36.1
 0:01.46   activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
 0:01.52 Re-executing in the virtualenv
 0:01.68 Adding configure options from /build/firedragon/src/firefox-93.0/.mozconfig
 0:01.68   --enable-application=browser
 0:01.68   --prefix=/usr
 0:01.68   --enable-release
 0:01.68   --enable-hardening
 0:01.68   --enable-rust-simd
 0:01.68   --with-ccache
 0:01.68   --enable-update-channel=release
 0:01.68   --with-app-name=firedragon
 0:01.68   --with-app-basename=FireDragon
 0:01.68   --with-branding=browser/branding/firedragon
 0:01.68   --with-distribution-id=org.garudalinux
 0:01.68   --with-unsigned-addon-scopes=app,system
 0:01.68   --allow-addon-sideload
 0:01.68   --enable-system-pixman
 0:01.68   --with-system-av1
 0:01.68   --with-system-ffi
 0:01.68   --with-system-graphite2
 0:01.68   --with-system-harfbuzz
 0:01.68   --with-system-icu
 0:01.68   --with-system-jpeg
 0:01.68   --with-system-libevent
 0:01.68   --with-system-nspr
 0:01.68   --with-system-nss
 0:01.68   --with-system-webp
 0:01.68   --with-system-zlib
 0:01.68   --disable-crashreporter
 0:01.68   --disable-gpsd
 0:01.68   --disable-tests
 0:01.68   --disable-updater
 0:01.68   --enable-alsa
 0:01.68   --enable-jack
 0:01.68   --enable-pulseaudio
 0:01.68   --enable-strip
 0:01.68   --enable-optimize
 0:01.68   --enable-profile-generate=cross
 0:01.68   NM=llvm-nm
 0:01.68   RANLIB=llvm-ranlib
 0:01.68   OBJCOPY=/usr/bin/llvm-objcopy
 0:01.68   STRIP=llvm-strip
 0:01.68 checking for vcs source checkout... no
 0:01.70 checking for a shell... /usr/bin/sh
 0:01.73 checking for host system type... x86_64-pc-linux-gnu
 0:01.73 checking for target system type... x86_64-pc-linux-gnu
 0:02.02 checking whether cross compiling... no
 0:02.10 checking for pkg_config... /usr/bin/pkg-config
 0:02.11 checking for aom >= 1.0.0... yes
 0:02.11 checking MOZ_SYSTEM_LIBAOM_CFLAGS...
 0:02.11 checking MOZ_SYSTEM_LIBAOM_LIBS... -laom
 0:02.11 checking for dav1d >= 0.1.1... yes
 0:02.12 checking MOZ_SYSTEM_LIBDAV1D_CFLAGS...
 0:02.12 checking MOZ_SYSTEM_LIBDAV1D_LIBS... -ldav1d
 0:02.12 checking for Python 3... /build/firedragon/src/firefox-93.0/obj/_virtualenvs/common/bin/python (3.9.7)
 0:02.13 checking for wget... not found
 0:02.14 checking for ccache... /usr/bin/ccache
 0:02.16 checking for the target C compiler... /usr/bin/clang
 0:03.80 checking whether the target C compiler can be used... yes
 0:03.80 checking the target C compiler version... 12.0.1
 0:03.93 checking the target C compiler works... yes
 0:03.93 WARNING: The value of LD is not used by this build system.
 0:03.94 checking for the target C++ compiler... /usr/bin/clang++
 0:03.97 checking whether the target C++ compiler can be used... yes
 0:03.97 checking the target C++ compiler version... 12.0.1
 0:04.00 checking the target C++ compiler works... yes
 0:04.00 checking for the host C compiler... /usr/bin/clang
 0:04.04 checking whether the host C compiler can be used... yes
 0:04.04 checking the host C compiler version... 12.0.1
 0:04.07 checking the host C compiler works... yes
 0:04.07 checking for the host C++ compiler... /usr/bin/clang++
 0:04.10 checking whether the host C++ compiler can be used... yes
 0:04.10 checking the host C++ compiler version... 12.0.1
 0:04.13 checking the host C++ compiler works... yes
 0:04.17 checking for 64-bit OS... yes
 0:04.23 checking for new enough STL headers from libstdc++... yes
 0:04.29 checking for linker... bfd
 0:04.29 checking for the assembler... /usr/bin/clang
 0:04.30 checking for ar... /usr/bin/llvm-ar
 0:04.31 checking for nm... /usr/bin/llvm-nm
 0:04.32 checking for pkg-config version... 1.8.0
 0:04.37 checking for stdint.h... yes
 0:04.43 checking for inttypes.h... yes
 0:04.47 checking for malloc.h... yes
 0:04.51 checking for alloca.h... yes
 0:04.53 checking for sys/byteorder.h... no
 0:04.57 checking for getopt.h... yes
 0:04.61 checking for unistd.h... yes
 0:04.65 checking for nl_types.h... yes
 0:04.70 checking for cpuid.h... yes
 0:04.75 checking for fts.h... yes
 0:04.78 checking for sys/statvfs.h... yes
 0:04.82 checking for sys/statfs.h... yes
 0:04.85 checking for sys/vfs.h... yes
 0:04.90 checking for sys/mount.h... yes
 0:04.94 checking for sys/quota.h... yes
 0:04.98 checking for linux/quota.h... yes
 0:05.04 checking for linux/if_addr.h... yes
 0:05.09 checking for linux/rtnetlink.h... yes
 0:05.13 checking for sys/queue.h... yes
 0:05.16 checking for sys/types.h... yes
 0:05.20 checking for netinet/in.h... yes
 0:05.23 checking for byteswap.h... yes
 0:05.27 checking for memfd_create in sys/mman.h... yes
 0:05.33 checking for linux/perf_event.h... yes
 0:05.36 checking for perf_event_open system call... yes
 0:05.39 checking whether the C compiler supports -Wbitfield-enum-conversion... yes
 0:05.43 checking whether the C++ compiler supports -Wbitfield-enum-conversion... yes
 0:05.46 checking whether the C++ compiler supports -Wdeprecated-this-capture... yes
 0:05.49 checking whether the C compiler supports -Wformat-type-confusion... yes
 0:05.52 checking whether the C++ compiler supports -Wformat-type-confusion... yes
 0:05.55 checking whether the C compiler supports -Wshadow-field-in-constructor-modified... yes
 0:05.58 checking whether the C++ compiler supports -Wshadow-field-in-constructor-modified... yes
 0:05.61 checking whether the C++ compiler supports -Wshadow-uncaptured-local... yes
 0:05.64 checking whether the C compiler supports -Wno-error=tautological-type-limit-compare... yes
 0:05.67 checking whether the C++ compiler supports -Wno-error=tautological-type-limit-compare... yes
 0:05.70 checking whether the C compiler supports -Wunreachable-code-return... yes
 0:05.73 checking whether the C++ compiler supports -Wunreachable-code-return... yes
 0:05.76 checking whether the C compiler supports -Wclass-varargs... yes
 0:05.79 checking whether the C++ compiler supports -Wclass-varargs... yes
 0:05.82 checking whether the C++ compiler supports -Wempty-init-stmt... yes
 0:05.85 checking whether the C compiler supports -Wfloat-overflow-conversion... yes
 0:05.88 checking whether the C++ compiler supports -Wfloat-overflow-conversion... yes
 0:05.91 checking whether the C compiler supports -Wfloat-zero-conversion... yes
 0:05.94 checking whether the C++ compiler supports -Wfloat-zero-conversion... yes
 0:05.97 checking whether the C compiler supports -Wloop-analysis... yes
 0:06.00 checking whether the C++ compiler supports -Wloop-analysis... yes
 0:06.04 checking whether the C compiler supports -Wno-range-loop-analysis... yes
 0:06.07 checking whether the C++ compiler supports -Wno-range-loop-analysis... yes
 0:06.10 checking whether the C++ compiler supports -Wc++2a-compat... yes
 0:06.13 checking whether the C++ compiler supports -Wcomma... yes
 0:06.16 checking whether the C compiler supports -Wduplicated-cond... no
 0:06.18 checking whether the C++ compiler supports -Wduplicated-cond... no
 0:06.21 checking whether the C compiler supports -Wenum-compare-conditional... yes
 0:06.24 checking whether the C++ compiler supports -Wenum-compare-conditional... yes
 0:06.28 checking whether the C++ compiler supports -Wimplicit-fallthrough... yes
 0:06.32 checking whether the C compiler supports -Wstring-conversion... yes
 0:06.35 checking whether the C++ compiler supports -Wstring-conversion... yes
 0:06.38 checking whether the C++ compiler supports -Wno-inline-new-delete... yes
 0:06.41 checking whether the C compiler supports -Wno-error=maybe-uninitialized... no
 0:06.44 checking whether the C++ compiler supports -Wno-error=maybe-uninitialized... no
 0:06.47 checking whether the C compiler supports -Wno-error=deprecated-declarations... yes
 0:06.50 checking whether the C++ compiler supports -Wno-error=deprecated-declarations... yes
 0:06.53 checking whether the C compiler supports -Wno-error=array-bounds... yes
 0:06.56 checking whether the C++ compiler supports -Wno-error=array-bounds... yes
 0:06.59 checking whether the C compiler supports -Wno-error=coverage-mismatch... no
 0:06.61 checking whether the C++ compiler supports -Wno-error=coverage-mismatch... no
 0:06.64 checking whether the C compiler supports -Wno-error=backend-plugin... yes
 0:06.68 checking whether the C++ compiler supports -Wno-error=backend-plugin... yes
 0:06.71 checking whether the C compiler supports -Wno-error=free-nonheap-object... yes
 0:06.74 checking whether the C++ compiler supports -Wno-error=free-nonheap-object... yes
 0:06.76 checking whether the C compiler supports -Wno-multistatement-macros... no
 0:06.79 checking whether the C++ compiler supports -Wno-multistatement-macros... no
 0:06.82 checking whether the C compiler supports -Wno-error=return-std-move... yes
 0:06.85 checking whether the C++ compiler supports -Wno-error=return-std-move... yes
 0:06.88 checking whether the C compiler supports -Wno-error=class-memaccess... no
 0:06.91 checking whether the C++ compiler supports -Wno-error=class-memaccess... no
 0:06.94 checking whether the C compiler supports -Wno-error=atomic-alignment... yes
 0:06.97 checking whether the C++ compiler supports -Wno-error=atomic-alignment... yes
 0:07.00 checking whether the C compiler supports -Wno-error=deprecated-copy... yes
 0:07.04 checking whether the C++ compiler supports -Wno-error=deprecated-copy... yes
 0:07.06 checking whether the C compiler supports -Wno-error=unused-but-set-variable... no
 0:07.09 checking whether the C++ compiler supports -Wno-error=unused-but-set-variable... no
 0:07.12 checking whether the C compiler supports -Wformat... yes
 0:07.16 checking whether the C++ compiler supports -Wformat... yes
 0:07.19 checking whether the C compiler supports -Wformat-security... yes
 0:07.22 checking whether the C++ compiler supports -Wformat-security... yes
 0:07.24 checking whether the C compiler supports -Wformat-overflow=2... no
 0:07.27 checking whether the C++ compiler supports -Wformat-overflow=2... no
 0:07.31 checking whether the C compiler supports -Wno-gnu-zero-variadic-macro-arguments... yes
 0:07.34 checking whether the C++ compiler supports -Wno-gnu-zero-variadic-macro-arguments... yes
 0:07.37 checking whether the C compiler supports -Werror=implicit-function-declaration... yes
 0:07.40 checking whether the C compiler supports -Wno-psabi... yes
 0:07.43 checking whether the C++ compiler supports -Wno-psabi... yes
 0:07.46 checking whether the C++ compiler supports -fno-sized-deallocation... yes
 0:07.49 checking whether the C++ compiler supports -fno-aligned-new... yes
 0:07.49 checking for llvm_profdata... /usr/bin/llvm-profdata
 0:07.51 checking for alsa... yes
 0:07.52 checking MOZ_ALSA_CFLAGS...
 0:07.52 checking MOZ_ALSA_LIBS... -lasound
 0:07.52 checking for jack... yes
 0:07.52 checking MOZ_JACK_CFLAGS...
 0:07.52 checking MOZ_JACK_LIBS... -ljack
 0:07.52 checking for libpulse... yes
 0:07.52 checking MOZ_PULSEAUDIO_CFLAGS... -D_REENTRANT
 0:07.53 checking MOZ_PULSEAUDIO_LIBS... -lpulse -pthread
 0:07.53 checking for nspr >= 4.32... yes
 0:07.53 checking NSPR_CFLAGS... -I/usr/include/nspr
 0:07.53 checking NSPR_LIBS... -lplds4 -lplc4 -lnspr4
 0:07.53 checking for rustc... /usr/bin/rustc
 0:07.53 checking for cargo... /usr/bin/cargo
 0:08.23 checking rustc version... 1.56.0
 0:08.24 checking cargo version... 1.56.0
 0:09.80 checking for rust host triplet... x86_64-unknown-linux-gnu
 0:09.84 checking for rust target triplet... x86_64-unknown-linux-gnu
 0:09.84 checking for rustdoc... /usr/bin/rustdoc
 0:09.91 checking for cbindgen... /usr/bin/cbindgen
 0:09.91 checking for rustfmt... /usr/bin/rustfmt
 0:09.91 checking for clang for bindgen... /usr/bin/clang++
 0:09.93 checking for libclang for bindgen... /usr/lib/libclang.so
 0:10.58 checking that libclang is new enough... yes
 0:10.58 checking bindgen cflags... -x c++ -fno-sized-deallocation -fno-aligned-new -DTRACING=1 -DIMPL_LIBXUL -DMOZILLA_INTERNAL_API -DRUST_BINDGEN -DOS_POSIX=1 -DOS_LINUX=1 -std=gnu++17
 0:10.59 checking for libffi > 3.0.9... yes
 0:10.59 checking MOZ_FFI_CFLAGS...
 0:10.59 checking MOZ_FFI_LIBS... -lffi
 0:10.59 checking for icu-i18n >= 69.1... yes
 0:10.59 checking MOZ_ICU_CFLAGS...
 0:10.59 checking MOZ_ICU_LIBS... -licui18n -licuuc -licudata
 0:13.32 checking for nodejs... /usr/bin/node (16.11.1)
 0:13.48 checking for gtk+-wayland-3.0 >= 3.14 xkbcommon >= 0.4.1 libdrm >= 2.4... yes
 0:13.77 checking MOZ_WAYLAND_CFLAGS... -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread -I/usr/include/libdrm
 0:13.77 checking MOZ_WAYLAND_LIBS... -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lxkbcommon -ldrm
 0:13.77 checking for pango >= 1.22.0... yes
 0:13.77 checking MOZ_PANGO_CFLAGS... -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1
 0:13.78 checking MOZ_PANGO_LIBS... -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lharfbuzz
 0:13.78 checking for fontconfig >= 2.7.0... yes
 0:13.78 checking _FONTCONFIG_CFLAGS... -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
 0:13.78 checking _FONTCONFIG_LIBS... -lfontconfig -lfreetype
 0:13.78 checking for freetype2 >= 6.1.0... yes
 0:13.78 checking _FT2_CFLAGS... -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
 0:13.78 checking _FT2_LIBS... -lfreetype
 0:13.79 checking for graphite2... yes
 0:13.79 checking MOZ_GRAPHITE2_CFLAGS...
 0:13.79 checking MOZ_GRAPHITE2_LIBS... -lgraphite2
 0:13.79 checking for harfbuzz >= 2.7.4... yes
 0:13.79 checking MOZ_HARFBUZZ_CFLAGS... -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
 0:13.79 checking MOZ_HARFBUZZ_LIBS... -lharfbuzz
 0:13.79 checking for tar... /usr/bin/tar
 0:13.79 checking for unzip... /usr/bin/unzip
 0:13.79 checking for zip... /usr/bin/zip
 0:13.79 checking for gn... not found
 0:13.79 checking for the Mozilla API key... no
 0:13.79 checking for the Google Location Service API key... no
 0:13.79 checking for the Google Safebrowsing API key... no
 0:13.79 checking for the Bing API key... no
 0:13.79 checking for the Adjust SDK key... no
 0:13.79 checking for the Leanplum SDK key... no
 0:13.80 checking for the Pocket API key... no
 0:13.80 checking for libwebp >= 1.0.2 libwebpdemux >= 1.0.2... yes
 0:13.80 checking MOZ_WEBP_CFLAGS...
 0:13.80 checking MOZ_WEBP_LIBS... -lwebpdemux -lwebp
 0:13.80 checking for x11 xcb xcb-shm x11-xcb xext xrender xcomposite xcursor xdamage xfixes xi... yes
 0:13.80 checking MOZ_X11_CFLAGS...
 0:13.81 checking MOZ_X11_LIBS... -lxcb-shm -lX11-xcb -lxcb -lXext -lXrender -lX11 -lXcomposite -lXcursor -lXdamage -lXfixes -lXi
 0:14.07 checking for jpeg_destroy_compress... yes
 0:14.30 checking for sufficient jpeg library version... yes
 0:14.34 checking for sufficient libjpeg-turbo JCS_EXTENSIONS... yes
 0:14.34 checking for nasm... /usr/bin/nasm
 0:14.45 checking nasm version... 2.15.05
 0:14.45 checking for dump_syms... /usr/bin/dump_syms
 0:14.49 checking for getcontext... yes
 0:14.49 checking for nss >= 3.70... yes
 0:14.49 checking NSS_CFLAGS... -I/usr/include/nss -I/usr/include/nspr
 0:14.49 checking NSS_LIBS... -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4
 0:14.50 checking for awk... /usr/bin/gawk
 0:14.50 checking for perl... /usr/bin/perl
 0:14.64 checking for minimum required perl version >= 5.006... 5.034000
 0:14.80 checking for full perl installation... yes
 0:14.80 checking for gmake... /usr/bin/make
 0:14.80 checking for watchman... not found
 0:14.80 checking for xargs... /usr/bin/xargs
 0:14.80 checking for rpmbuild... not found
 0:14.80 checking for NSIS version... no
 0:14.81 checking for llvm-objdump... /usr/bin/llvm-objdump
 0:14.82 checking for zlib >= 1.2.3... yes
 0:14.82 checking MOZ_ZLIB_CFLAGS...
 0:14.82 checking MOZ_ZLIB_LIBS... -lz
 0:14.82 checking for m4... /usr/bin/m4
 0:14.82 Refreshing /build/firedragon/src/firefox-93.0/old-configure with /build/firedragon/src/firefox-93.0/build/autoconf/autoconf.sh
 0:15.29 creating cache ./config.cache
 0:15.30 checking host system type... x86_64-pc-linux-gnu
 0:15.31 checking target system type... x86_64-pc-linux-gnu
 0:15.31 checking build system type... x86_64-pc-linux-gnu
 0:15.31 checking for objcopy... /usr/bin/llvm-objcopy
 0:15.34 checking for Cygwin environment... no
 0:15.37 checking for mingw32 environment... no
 0:15.94 checking for executable suffix... no
 0:15.94 checking for gcc... (cached) /usr/bin/ccache /usr/bin/clang -std=gnu99
 0:15.94 checking whether the C compiler (/usr/bin/ccache /usr/bin/clang -std=gnu99 -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now ) works... (cached) yes
 0:15.94 checking whether the C compiler (/usr/bin/ccache /usr/bin/clang -std=gnu99 -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now ) is a cross-compiler... no
 0:15.94 checking whether we are using GNU C... (cached) yes
 0:15.94 checking whether /usr/bin/ccache /usr/bin/clang -std=gnu99 accepts -g... (cached) yes
 0:15.94 checking for c++... (cached) /usr/bin/ccache /usr/bin/clang++ -std=gnu++17
 0:15.94 checking whether the C++ compiler (/usr/bin/ccache /usr/bin/clang++ -std=gnu++17 -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now ) works... (cached) yes
 0:15.94 checking whether the C++ compiler (/usr/bin/ccache /usr/bin/clang++ -std=gnu++17 -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now ) is a cross-compiler... no
 0:15.94 checking whether we are using GNU C++... (cached) yes
 0:15.94 checking whether /usr/bin/ccache /usr/bin/clang++ -std=gnu++17 accepts -g... (cached) yes
 0:15.94 checking for /usr/bin/ccache... (cached) /usr/bin/ccache /usr/bin/clang -std=gnu99
 0:15.94 checking for strip... llvm-strip
 0:15.94 checking for otool... no
 0:16.02 checking for --noexecstack option to as... yes
 0:16.07 checking for -z noexecstack option to ld... yes
 0:16.12 checking for -z text option to ld... yes
 0:16.17 checking for -z relro option to ld... yes
 0:16.22 checking for -z nocopyreloc option to ld... yes
 0:16.26 checking for -Bsymbolic-functions option to ld... yes
 0:16.31 checking for --build-id=sha1 option to ld... yes
 0:16.36 checking for --ignore-unresolved-symbol option to ld... yes
 0:16.39 checking if toolchain supports -mssse3 option... yes
 0:16.43 checking if toolchain supports -msse4.1 option... yes
 0:16.46 checking for x86 AVX2 asm support in compiler... yes
 0:16.49 checking whether the linker supports Identical Code Folding... no
 0:16.52 checking for working const... yes
 0:16.54 checking for mode_t... yes
 0:16.56 checking for off_t... yes
 0:16.57 checking for pid_t... yes
 0:16.59 checking for size_t... yes
 0:17.39 checking whether 64-bits std::atomic requires -latomic... no
 0:17.54 checking for dirent.h that defines DIR... yes
 0:17.58 checking for opendir in -ldir... no
 0:17.66 checking for sockaddr_in.sin_len... false
 0:17.69 checking for sockaddr_in6.sin6_len... false
 0:17.73 checking for sockaddr.sa_len... false
 0:17.77 checking for gethostbyname_r in -lc_r... no
 0:17.87 checking for library containing dlopen... -ldl
 0:18.02 checking for dlfcn.h... yes
 0:18.07 checking for dladdr... yes
 0:18.14 checking for memmem... yes
 0:18.18 checking for socket in -lsocket... no
 0:18.21 checking for pthread_create in -lpthreads... no
 0:18.27 checking for pthread_create in -lpthread... yes
 0:18.30 checking whether /usr/bin/ccache /usr/bin/clang -std=gnu99 accepts -pthread... yes
 0:18.36 checking for pthread.h... yes
 0:18.41 checking for stat64... yes
 0:18.47 checking for lstat64... yes
 0:18.52 checking for truncate64... yes
 0:18.57 checking for statvfs64... yes
 0:18.63 checking for statvfs... yes
 0:18.68 checking for statfs64... yes
 0:18.73 checking for statfs... yes
 0:18.79 checking for getpagesize... yes
 0:18.84 checking for gmtime_r... yes
 0:18.89 checking for localtime_r... yes
 0:18.95 checking for arc4random... no
 0:19.00 checking for arc4random_buf... no
 0:19.05 checking for mallinfo... yes
 0:19.10 checking for gettid... yes
 0:19.16 checking for lchown... yes
 0:19.21 checking for setpriority... yes
 0:19.26 checking for strerror... yes
 0:19.32 checking for syscall... yes
 0:19.37 checking for lutimes... yes
 0:19.42 checking for clock_gettime(CLOCK_MONOTONIC)...
 0:19.46 checking for pthread_cond_timedwait_monotonic_np...
 0:19.56 checking for res_ninit()... yes
 0:19.60 checking for an implementation of va_copy()... yes
 0:19.64 checking whether va_list can be copied by value... no
 0:19.70 checking for __thread keyword for TLS variables... yes
 0:19.75 checking for localeconv... yes
 0:19.79 checking for malloc.h... yes
 0:19.85 checking for strndup... yes
 0:19.90 checking for posix_memalign... yes
 0:19.95 checking for memalign... yes
 0:20.01 checking for malloc_usable_size... yes
 0:20.04 checking whether malloc_usable_size definition can use const argument... no
 0:20.06 checking for valloc in malloc.h... yes
 0:20.08 checking for valloc in unistd.h... no
 0:20.10 checking for _aligned_malloc in malloc.h... no
 0:20.10 checking for libevent... yes
 0:20.10 checking MOZ_LIBEVENT_CFLAGS...
 0:20.10 checking MOZ_LIBEVENT_LIBS... -levent
 0:20.10 checking if app-specific confvars.sh exists... /build/firedragon/src/firefox-93.0/browser/confvars.sh
 0:20.10 checking for gtk+-3.0 >= 3.14.0 gtk+-unix-print-3.0 glib-2.0 gobject-2.0 gio-unix-2.0 ... yes
 0:20.12 checking MOZ_GTK3_CFLAGS... -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -I/usr/include/gtk-3.0/unix-print -pthread
 0:20.13 checking MOZ_GTK3_LIBS... -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
 0:20.13 checking for dbus-1 >= 0.60... yes
 0:20.13 checking MOZ_DBUS_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
 0:20.13 checking MOZ_DBUS_LIBS... -ldbus-1
 0:20.13 checking for dbus-glib-1 >= 0.60... yes
 0:20.13 checking MOZ_DBUS_GLIB_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
 0:20.13 checking MOZ_DBUS_GLIB_LIBS... -ldbus-glib-1 -ldbus-1 -lgobject-2.0 -lglib-2.0
 0:20.22 checking for linux/joystick.h... yes
 0:20.27 checking for fdatasync... yes
 0:20.31 checking for valid C compiler optimization flags... yes
 0:20.40 checking for __cxa_demangle... yes
 0:20.45 checking for unwind.h... yes
 0:20.52 checking for _Unwind_Backtrace... yes
 0:20.52 checking for -pipe support... yes
 0:20.59 checking what kind of list files are supported by the linker... configure: error: Couldn't find one that works
 0:20.60 DEBUG: <truncated - see config.log for full output>
 0:20.60 DEBUG: configure:7511: /usr/bin/ccache /usr/bin/clang -std=gnu99 -c -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto -fno-strict-aliasing -fPIC -ffunction-sections -fdata-sections -fno-math-errno -pthread -O2 -Qunused-arguments  conftest.c 1>&5
 0:20.60 DEBUG: configure:7781: checking for __cxa_demangle
 0:20.60 DEBUG: configure:7816: /usr/bin/ccache /usr/bin/clang++ -std=gnu++17 -o conftest -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -fno-exceptions -fno-strict-aliasing -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -Qunused-arguments  -lpthread -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now  -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 conftest.C -ldl  1>&5
 0:20.60 DEBUG: configure:7886: checking for unwind.h
 0:20.60 DEBUG: configure:7899: /usr/bin/ccache /usr/bin/clang++ -std=gnu++17 -c -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -fno-exceptions -fno-strict-aliasing -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -Qunused-arguments  conftest.C 1>&5
 0:20.60 DEBUG: configure:7916: checking for _Unwind_Backtrace
 0:20.60 DEBUG: configure:7953: /usr/bin/ccache /usr/bin/clang++ -std=gnu++17 -o conftest -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -fno-exceptions -fno-strict-aliasing -fPIC -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -pthread -Qunused-arguments  -lpthread -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now  -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 conftest.C -ldl  1>&5
 0:20.60 DEBUG: configure:8021: checking for -pipe support
 0:20.60 DEBUG: configure:8048: checking what kind of list files are supported by the linker
 0:20.60 DEBUG: configure:8053: /usr/bin/ccache /usr/bin/clang -std=gnu99 -o conftest.o -c  -march=native -mtune=native -O3 -pipe -fno-plt -minline-all-stringops -fexceptions -Wall         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto -fno-strict-aliasing -fPIC -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe -Qunused-arguments  conftest.c 1>&5
 0:20.60 DEBUG: configure:8060: /usr/bin/ccache /usr/bin/clang -std=gnu99 -o conftest  -lpthread -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now  -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 conftest.list -ldl  1>&5
 0:20.60 DEBUG: ./conftest.o: file not recognized: file format not recognized
 0:20.60 DEBUG: clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
 0:20.60 DEBUG: configure:8064: /usr/bin/ccache /usr/bin/clang -std=gnu99 -o conftest  -lpthread -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now  -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 -Wl,-filelist,conftest.list -ldl  1>&5
 0:20.60 DEBUG: /usr/bin/ld: -f may not be used without -shared
 0:20.60 DEBUG: clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
 0:20.60 DEBUG: configure:8066: /usr/bin/ccache /usr/bin/clang -std=gnu99 -o conftest  -lpthread -Wl,-O3,--sort-common,--as-needed,-z,relro,-z,now  -Wl,-z,noexecstack -Wl,-z,text -Wl,-z,relro -Wl,-z,nocopyreloc -Wl,-Bsymbolic-functions -Wl,--build-id=sha1 @conftest.list -ldl  1>&5
 0:20.60 DEBUG: conftest.o: file not recognized: file format not recognized
 0:20.60 DEBUG: clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
 0:20.60 DEBUG: configure: error: Couldn't find one that works
 0:20.60 ERROR: old-configure failed
 Config object not found by mach.
Error running mach:

    ['build']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file build| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

Exception: Process executed with non-0 exit code 1: ['/usr/bin/python3', '/build/firedragon/src/firefox-93.0/configure.py']

  File "/build/firedragon/src/firefox-93.0/python/mozbuild/mozbuild/build_commands.py", line 155, in build
    return driver.build(
  File "/build/firedragon/src/firefox-93.0/python/mozbuild/mozbuild/controller/building.py", line 1144, in build
    config_rc = self.configure(
  File "/build/firedragon/src/firefox-93.0/python/mozbuild/mozbuild/controller/building.py", line 1528, in configure
    status = self._run_command_in_objdir(
  File "/build/firedragon/src/firefox-93.0/python/mozbuild/mozbuild/base.py", line 845, in _run_command_in_objdir
    return self.run_process(cwd=self.topobjdir, **args)
  File "/build/firedragon/src/firefox-93.0/python/mach/mach/mixin/process.py", line 174, in run_process
    raise Exception(
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /mnt/extraStorage/AUR/ParuChroot/neko-san/build
error: failed to build 'firedragon-93.0-3': failed to run: makechrootpkg -r /mnt/extraStorage/AUR/ParuChroot/ -D /mnt/extraStorage/AUR/ParuChroot/repo/aur -d /var/cache/pacman/pkg/ -- -feA --noconfirm --noprepare --holdver: 
error: packages failed to build: firedragon-93.0-3
neko-san@ARCH ~ [1]> 

Neko-san commented on 2021-10-25 04:54 (UTC) (edited on 2021-10-25 05:19 (UTC) by Neko-san)

Ah, I remember why I have difficulty with building in chroots:

It can install everything it needs in preparation for building packages but, every time it needs to grab dependencies for PKGBUILDs, it fails and says:

sudo: effective uid is not 0, is /usr/bin/sudo on a file system with the 'nosuid' option set or an NFS file system without root privileges

But this is weird because neither of these is the case for my system :/

I can't use a chroot for building if doesn't do that

(I use Paru for the AUR, and it has support for chroots, but I always get this problem)

ptr1337 commented on 2021-10-24 23:03 (UTC)

@prg

yes, https://mirror.cachyos.org/?search=firedragon.

compiled in a clean chroot

prg commented on 2021-10-24 22:58 (UTC)

Has anyone been able to get this to build lately?