Makepkg giving "failure occured in build()" error while trying to install waterfox

I couldn’t find a category for makepkg, so I figured Pacman would be the best option to post this on. I tried just about everything I could think of before resorting to asking for help, but none of the fixes I’ve been able to find have helped. I just installed EndeavourOS, so everything should be pretty unmoddified, and the first thing I wanted to install was my browser of choice, Waterfox, but I just can’t get makepkg to work with it. Here is the error log I’m getting

[lakeo@lake-pc ~]$ git clone https://aur.archlinux.org/waterfox.git
Cloning into 'waterfox'...
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint:   git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m <name>
remote: Enumerating objects: 145, done.
remote: Counting objects: 100% (145/145), done.
remote: Compressing objects: 100% (111/111), done.
remote: Total 145 (delta 37), reused 136 (delta 31), pack-reused 0 (from 0)
Receiving objects: 100% (145/145), 91.44 KiB | 222.00 KiB/s, done.
Resolving deltas: 100% (37/37), done.
[lakeo@lake-pc ~]$ cd waterfox
[lakeo@lake-pc waterfox]$ makepkg
==> Making package: waterfox 6.5.5-1 (Tue 01 Apr 2025 07:49:38 PM PDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading waterfox-6.5.5.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  785M    0  785M    0     0  10.0M      0 --:--:--  0:01:18 --:--:-- 9958k
  -> Found waterfox.desktop
==> Validating source files with sha256sums...
    waterfox-6.5.5.tar.gz ... Passed
    waterfox.desktop ... Passed
==> Extracting sources...
  -> Extracting waterfox-6.5.5.tar.gz with bsdtar
==> Starting prepare()...
==> Starting build()...
Building instrumented browser...
Creating local state directory: /home/lakeo/waterfox/src/mozbuild/srcdirs/Waterfox-6.5.5-e9d0fa63caf0
 0:03.45 W Clobber not needed.
 Config object not found by mach.
 0:03.62 Using Python 3.13.2 from /home/lakeo/waterfox/src/mozbuild/srcdirs/Waterfox-6.5.5-e9d0fa63caf0/_virtualenvs/build/bin/python
 0:03.62 Adding configure options from /home/lakeo/waterfox/src/Waterfox-6.5.5/.mozconfig
 0:03.62   --enable-application=browser
 0:03.62   --prefix=/usr
 0:03.62   --enable-release
 0:03.62   --enable-hardening
 0:03.62   --enable-optimize
 0:03.62   --enable-rust-simd
 0:03.62   --enable-linker=lld
 0:03.62   --disable-elf-hack
 0:03.62   --disable-bootstrap
 0:03.62   --with-wasi-sysroot=/usr/share/wasi-sysroot
 0:03.62   --with-system-nspr
 0:03.62   --with-system-nss
 0:03.62   --with-app-name=waterfox
 0:03.62   --with-app-basename=Waterfox
 0:03.62   --with-branding=waterfox/browser/branding
 0:03.62   --with-distribution-id=org.archlinux
 0:03.63   --with-unsigned-addon-scopes=app,system
 0:03.63   --allow-addon-sideload
 0:03.63   --enable-alsa
 0:03.63   --enable-jack
 0:03.63   --enable-crashreporter
 0:03.63   --disable-updater
 0:03.63   --disable-tests
 0:03.63   --enable-profile-generate=cross
 0:03.63 checking for vcs source checkout... no
 0:03.65 checking for a shell... /usr/bin/sh
 0:03.69 checking for host system type... x86_64-pc-linux-gnu
 0:03.69 checking for target system type... x86_64-pc-linux-gnu
 0:03.93 checking whether cross compiling... no
 0:04.00 checking for the target C compiler... /usr/bin/clang
 0:04.00 checking for ccache... not found
 0:05.93 checking whether the target C compiler can be used... yes
 0:05.93 checking for the target C++ compiler... /usr/bin/clang++
 0:06.01 checking whether the target C++ compiler can be used... yes
 0:07.09 checking for unwind.h... yes
 0:08.95 checking for target linker... lld
 0:09.51 checking for _Unwind_Backtrace... yes
 0:09.52 checking for Python 3... /home/lakeo/waterfox/src/mozbuild/srcdirs/Waterfox-6.5.5-e9d0fa63caf0/_virtualenvs/build/bin/python (3.13.2)
 0:09.53 checking for wget... /usr/bin/wget
 0:09.54 checking the target C compiler version... 19.1.7
 0:09.55 checking the target C compiler works... yes
 0:09.55 checking the target C++ compiler version... 19.1.7
 0:09.57 checking the target C++ compiler works... yes
 0:09.57 checking for the host C compiler... /usr/bin/clang
 0:09.57 checking whether the host C compiler can be used... yes
 0:09.57 checking the host C compiler version... 19.1.7
 0:09.57 checking the host C compiler works... yes
 0:09.57 checking for the host C++ compiler... /usr/bin/clang++
 0:09.57 checking whether the host C++ compiler can be used... yes
 0:09.58 checking the host C++ compiler version... 19.1.7
 0:09.58 checking the host C++ compiler works... yes
 0:09.60 checking for host linker... lld
 0:09.62 checking for 64-bit OS... yes
 0:10.22 checking for new enough STL headers from libstdc++... yes
 0:10.47 checking for __thread keyword for TLS variables... yes
 0:10.47 checking for the assembler... /usr/bin/clang
 0:10.49 checking for ar... /usr/bin/llvm-ar
 0:10.99 checking whether ar supports response files... yes
 0:11.00 checking for host_ar... /usr/bin/llvm-ar
 0:11.01 checking for nm... /usr/bin/llvm-nm
 0:11.03 checking for -mavxvnni support... yes
 0:11.05 checking for -mavx512bw support... yes
 0:11.07 checking for -mavx512vnni support... yes
 0:11.07 checking for pkg_config... /usr/bin/pkg-config
 0:11.24 checking for pkg-config version... 2.4.3
 0:11.24 checking whether pkg-config is pkgconf... yes
 0:11.29 checking for strndup... yes
 0:11.34 checking for posix_memalign... yes
 0:11.38 checking for memalign... yes
 0:11.42 checking for malloc_usable_size... yes
 0:14.47 checking for malloc.h... yes
 0:14.49 checking whether malloc_usable_size definition can use const argument... no
 0:14.51 checking for stdint.h... yes
 0:14.75 checking for inttypes.h... yes
 0:14.89 checking for alloca.h... yes
 0:14.91 checking for sys/byteorder.h... no
 0:14.93 checking for getopt.h... yes
 0:15.09 checking for unistd.h... yes
 0:15.16 checking for nl_types.h... yes
 0:15.34 checking for cpuid.h... yes
 0:16.65 checking for fts.h... yes
 0:16.83 checking for sys/statvfs.h... yes
 0:17.10 checking for sys/statfs.h... yes
 0:17.19 checking for sys/vfs.h... yes
 0:18.74 checking for sys/mount.h... yes
 0:18.90 checking for sys/quota.h... yes
 0:19.00 checking for linux/quota.h... yes
 0:19.23 checking for linux/if_addr.h... yes
 0:19.42 checking for linux/rtnetlink.h... yes
 0:19.44 checking for sys/queue.h... yes
 0:19.46 checking for sys/types.h... yes
 0:19.70 checking for netinet/in.h... yes
 0:19.77 checking for byteswap.h... yes
 0:21.63 checking for memfd_create in sys/mman.h... yes
 0:22.01 checking for linux/perf_event.h... yes
 0:22.09 checking for perf_event_open system call... yes
 0:23.96 checking for clock_gettime(CLOCK_MONOTONIC)... yes
 0:26.69 checking for res_ninit()... yes
 0:26.73 checking for dladdr... yes
 0:27.13 checking for dlfcn.h... yes
 0:27.53 checking for dlopen in -ldl... yes
 0:27.57 checking for gethostbyname_r in -lc_r... no
 0:27.62 checking for socket in -lsocket... no
 0:27.68 checking for pthread_create... yes
 0:29.21 checking for pthread.h... yes
 0:29.22 checking whether the C compiler supports -pthread... yes
 0:29.41 checking whether 64-bits std::atomic requires -latomic... no
 0:29.42 checking whether the C compiler supports -Wbitfield-enum-conversion... yes
 0:29.44 checking whether the C++ compiler supports -Wbitfield-enum-conversion... yes
 0:29.46 checking whether the C compiler supports -Wformat-type-confusion... yes
 0:29.47 checking whether the C++ compiler supports -Wformat-type-confusion... yes
 0:29.49 checking whether the C compiler supports -Wshadow-field-in-constructor-modified... yes
 0:29.51 checking whether the C++ compiler supports -Wshadow-field-in-constructor-modified... yes
 0:29.52 checking whether the C compiler supports -Wtautological-constant-in-range-compare... yes
 0:29.54 checking whether the C++ compiler supports -Wtautological-constant-in-range-compare... yes
 0:29.56 checking whether the C compiler supports -Wno-error=tautological-type-limit-compare... yes
 0:29.57 checking whether the C++ compiler supports -Wno-error=tautological-type-limit-compare... yes
 0:29.59 checking whether the C compiler supports -Wunreachable-code-return... yes
 0:29.61 checking whether the C++ compiler supports -Wunreachable-code-return... yes
 0:29.62 checking whether the C compiler supports -Wunused-but-set-parameter... yes
 0:29.64 checking whether the C++ compiler supports -Wunused-but-set-parameter... yes
 0:29.65 checking whether the C compiler supports -Wclass-varargs... yes
 0:29.67 checking whether the C++ compiler supports -Wclass-varargs... yes
 0:29.69 checking whether the C++ compiler supports -Wempty-init-stmt... yes
 0:29.70 checking whether the C compiler supports -Wfloat-overflow-conversion... yes
 0:29.72 checking whether the C++ compiler supports -Wfloat-overflow-conversion... yes
 0:29.74 checking whether the C compiler supports -Wfloat-zero-conversion... yes
 0:29.75 checking whether the C++ compiler supports -Wfloat-zero-conversion... yes
 0:29.77 checking whether the C compiler supports -Wloop-analysis... yes
 0:29.78 checking whether the C++ compiler supports -Wloop-analysis... yes
 0:29.80 checking whether the C compiler supports -Wno-range-loop-analysis... yes
 0:29.82 checking whether the C++ compiler supports -Wno-range-loop-analysis... yes
 0:29.83 checking whether the C++ compiler supports -Wcomma-subscript... no
 0:29.85 checking whether the C compiler supports -Wenum-compare-conditional... yes
 0:29.86 checking whether the C++ compiler supports -Wenum-compare-conditional... yes
 0:29.88 checking whether the C compiler supports -Wenum-float-conversion... yes
 0:29.90 checking whether the C++ compiler supports -Wenum-float-conversion... yes
 0:29.91 checking whether the C++ compiler supports -Wvolatile... no
 0:29.93 checking whether the C++ compiler supports -Wno-deprecated-anon-enum-enum-conversion... yes
 0:29.94 checking whether the C++ compiler supports -Wno-deprecated-enum-enum-conversion... yes
 0:29.96 checking whether the C++ compiler supports -Wno-deprecated-this-capture... yes
 0:29.98 checking whether the C++ compiler supports -Wcomma... yes
 0:29.99 checking whether the C compiler supports -Wduplicated-cond... no
 0:30.01 checking whether the C++ compiler supports -Wduplicated-cond... no
 0:30.02 checking whether the C++ compiler supports -Wimplicit-fallthrough... yes
 0:30.04 checking whether the C compiler supports -Wlogical-op... no
 0:30.05 checking whether the C++ compiler supports -Wlogical-op... no
 0:30.07 checking whether the C compiler supports -Wstring-conversion... yes
 0:30.09 checking whether the C++ compiler supports -Wstring-conversion... yes
 0:30.10 checking whether the C++ compiler supports -Wno-inline-new-delete... yes
 0:30.12 checking whether the C compiler supports -Wno-error=maybe-uninitialized... no
 0:30.13 checking whether the C++ compiler supports -Wno-error=maybe-uninitialized... no
 0:30.15 checking whether the C compiler supports -Wno-error=deprecated-declarations... yes
 0:30.16 checking whether the C++ compiler supports -Wno-error=deprecated-declarations... yes
 0:30.18 checking whether the C compiler supports -Wno-error=array-bounds... yes
 0:30.20 checking whether the C++ compiler supports -Wno-error=array-bounds... yes
 0:30.21 checking whether the C compiler supports -Wno-error=free-nonheap-object... yes
 0:30.23 checking whether the C++ compiler supports -Wno-error=free-nonheap-object... yes
 0:30.24 checking whether the C compiler supports -Wno-multistatement-macros... no
 0:30.26 checking whether the C++ compiler supports -Wno-multistatement-macros... no
 0:30.27 checking whether the C compiler supports -Wno-error=class-memaccess... no
 0:30.29 checking whether the C++ compiler supports -Wno-error=class-memaccess... no
 0:30.30 checking whether the C compiler supports -Wno-error=atomic-alignment... yes
 0:30.32 checking whether the C++ compiler supports -Wno-error=atomic-alignment... yes
 0:30.34 checking whether the C compiler supports -Wno-error=deprecated-builtins... yes
 0:30.35 checking whether the C++ compiler supports -Wno-error=deprecated-builtins... yes
 0:30.37 checking whether the C compiler supports -Wformat... yes
 0:30.39 checking whether the C++ compiler supports -Wformat... yes
 0:30.40 checking whether the C compiler supports -Wformat-security... yes
 0:30.42 checking whether the C++ compiler supports -Wformat-security... yes
 0:30.43 checking whether the C compiler supports -Wformat-overflow=2... no
 0:30.45 checking whether the C++ compiler supports -Wformat-overflow=2... no
 0:30.47 checking whether the C compiler supports -Werror=implicit-function-declaration... yes
 0:30.48 checking whether the C compiler supports -Wno-psabi... yes
 0:30.50 checking whether the C++ compiler supports -Wno-psabi... yes
 0:30.52 checking whether the C compiler supports -Wthread-safety... yes
 0:30.53 checking whether the C++ compiler supports -Wthread-safety... yes
 0:30.55 checking whether the C compiler supports -Wno-error=builtin-macro-redefined... yes
 0:30.57 checking whether the C++ compiler supports -Wno-error=builtin-macro-redefined... yes
 0:30.58 checking whether the C++ compiler supports -Wno-vla-cxx-extension... yes
 0:30.60 checking whether the C compiler supports -Wno-unknown-warning-option... yes
 0:30.62 checking whether the C++ compiler supports -Wno-unknown-warning-option... yes
 0:30.63 checking whether the C++ compiler supports -fno-sized-deallocation... yes
 0:30.65 checking whether the C++ compiler supports -fno-aligned-new... yes
 0:30.69 checking whether the C linker supports -Wl,--build-id=sha1... yes
 0:30.71 checking whether the C compiler supports -Wa,--noexecstack... yes
 0:30.75 checking whether the C linker supports -Wl,-z,noexecstack... yes
 0:30.79 checking whether the C linker supports -Wl,-z,text... yes
 0:30.83 checking whether the C linker supports -Wl,-z,relro... yes
 0:30.87 checking whether the C linker supports -Wl,-z,now... yes
 0:30.91 checking whether the C linker supports -Wl,-z,nocopyreloc... yes
 0:30.95 checking for --ignore-unresolved-symbol option to the linker... no
 0:30.99 checking what kind of list files are supported by the linker... linkerlist
 0:30.99 checking for llvm_profdata... /usr/bin/llvm-profdata
 0:31.02 checking whether llvm-profdata supports 'order' subcommand... yes
 0:31.04 checking whether the C compiler supports temporal instrumentation... yes
 0:31.07 checking for llvm-objdump... /usr/bin/llvm-objdump
 0:31.10 checking for readelf... /usr/bin/llvm-readelf
 0:31.15 checking for objcopy... /usr/bin/llvm-objcopy
 0:31.17 checking for alsa... yes
 0:31.17 checking MOZ_ALSA_CFLAGS...
 0:31.17 checking MOZ_ALSA_LIBS... -lasound
 0:31.18 checking for jack... yes
 0:31.18 checking MOZ_JACK_CFLAGS... -D_REENTRANT
 0:31.18 checking MOZ_JACK_LIBS... -ljack
 0:31.18 checking for libpulse... yes
 0:31.19 checking MOZ_PULSEAUDIO_CFLAGS... -D_REENTRANT
 0:31.19 checking MOZ_PULSEAUDIO_LIBS... -lpulse -pthread
 0:31.19 checking for nspr >= 4.32... yes
 0:31.20 checking NSPR_CFLAGS... -I/usr/include/nspr
 0:31.20 checking NSPR_LIBS... -lplds4 -lplc4 -lnspr4
 0:31.20 checking for rustc... /usr/bin/rustc
 0:31.20 checking for cargo... /usr/bin/cargo
 0:31.34 checking rustc version... 1.85.1
 0:31.38 checking cargo version... 1.85.1
 0:31.45 checking for rust host triplet... x86_64-unknown-linux-gnu
 0:31.50 checking for rust target triplet... x86_64-unknown-linux-gnu
 0:31.50 checking for rustdoc... /usr/bin/rustdoc
 0:31.51 checking for cbindgen... /usr/bin/cbindgen
 0:31.51 checking for rustfmt... /usr/bin/rustfmt
 0:31.51 checking for clang for bindgen... /usr/bin/clang++
 0:31.53 checking for libclang for bindgen... /usr/lib/libclang.so
 0:31.55 checking that libclang is new enough... yes
 0:31.55 checking bindgen cflags... -x c++ -fno-sized-deallocation -fno-aligned-new -DTRACING=1 -DIMPL_LIBXUL -DMOZILLA_INTERNAL_API -DRUST_BINDGEN
 0:31.58 checking for tm_zone and tm_gmtoff in struct tm... yes
 0:31.63 checking for getpagesize... yes
 0:31.68 checking for gmtime_r... yes
 0:31.73 checking for localtime_r... yes
 0:31.77 checking for gettid... yes
 0:31.81 checking for setpriority... yes
 0:31.85 checking for syscall... yes
 0:31.90 checking for getc_unlocked... yes
 0:31.94 checking for pthread_getname_np... yes
 0:31.99 checking for pthread_get_name_np... no
 0:32.03 checking for strerror... yes
 0:32.10 checking for nl_langinfo and CODESET... yes
 0:32.16 checking for __cxa_demangle... yes
 0:32.20 checking for _getc_nolock... no
 0:32.24 checking for localeconv... yes
 0:32.29 checking for nodejs... /usr/bin/node (23.9.0)
 0:32.45 checking for gtk+-wayland-3.0 >= 3.14 xkbcommon >= 0.4.1... yes
 0:32.47 checking MOZ_WAYLAND_CFLAGS... -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cloudproviders -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/atk-1.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/fribidi -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread
 0:32.48 checking MOZ_WAYLAND_LIBS... -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lcairo-gobject -lgdk_pixbuf-2.0 -latk-1.0 -lpango-1.0 -lcairo -lharfbuzz -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lxkbcommon
 0:32.48 checking for pango >= 1.22.0... yes
 0:32.48 checking MOZ_PANGO_CFLAGS... -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -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 -I/usr/include/pixman-1 -I/usr/include/sysprof-6 -pthread
 0:32.48 checking MOZ_PANGO_LIBS... -lpango-1.0 -lgobject-2.0 -lharfbuzz -lglib-2.0
 0:32.49 checking for fontconfig >= 2.7.0... yes
 0:32.49 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 -I/usr/include/sysprof-6 -pthread
 0:32.49 checking _FONTCONFIG_LIBS... -lfontconfig -lfreetype
 0:32.49 checking for freetype2 >= 9.10.3... yes
 0:32.49 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 -I/usr/include/sysprof-6 -pthread
 0:32.49 checking _FT2_LIBS... -lfreetype
 0:32.49 checking for tar... /usr/bin/tar
 0:32.49 checking for unzip... /usr/bin/unzip
 0:32.49 checking for the Mozilla API key... no
 0:32.49 checking for the Google Location Service API key... no
 0:32.49 checking for the Google Safebrowsing API key... no
 0:32.50 checking for the Bing API key... no
 0:32.50 checking for the Adjust SDK key... no
 0:32.50 checking for the Leanplum SDK key... no
 0:32.50 checking for the Pocket API key... no
 0:32.51 checking for x11 xcb xcb-shm x11-xcb xext xrandr >= 1.4.0 xcomposite xcursor xdamage xfixes xi... yes
 0:32.51 checking MOZ_X11_CFLAGS...
 0:32.51 checking MOZ_X11_LIBS... -lxcb-shm -lX11-xcb -lXrandr -lXcomposite -lXcursor -lXdamage -lXi -lXext -lXfixes -lX11 -lxcb
 0:32.51 checking for ice sm... yes
 0:32.51 checking MOZ_X11_SM_CFLAGS... -I/usr/include/uuid
 0:32.55 checking for stat64... yes
 0:32.60 checking for lstat64... yes
 0:32.64 checking for truncate64... yes
 0:32.69 checking for statvfs64... yes
 0:32.73 checking for statvfs... yes
 0:32.78 checking for statfs64... yes
 0:32.83 checking for statfs... yes
 0:32.87 checking for lutimes... yes
 0:32.92 checking for posix_fadvise... yes
 0:32.97 checking for posix_fallocate... yes
 0:33.01 checking for eventfd... yes
 0:33.06 checking for arc4random... yes
 0:33.10 checking for arc4random_buf... yes
 0:33.14 checking for mallinfo... yes
 0:33.15 checking for sys/ioccom.h... no
 0:33.23 checking for -z pack-relative-relocs option to ld... yes
 0:33.23 checking for nasm... /usr/bin/nasm
 0:33.25 checking nasm version... 2.16.03
 0:33.25 Using wasi sysroot in /usr/share/wasi-sysroot
 0:33.25 checking for the wasm C compiler... /usr/bin/clang
 0:33.30 checking whether the wasm C compiler can be used... yes
 0:33.30 checking the wasm C compiler version... 19.1.7
 0:33.35 checking the wasm C compiler works... yes
 0:33.41 checking the wasm C compiler can find wasi headers... yes
 0:33.50 checking the wasm C linker can find wasi libraries... yes
 0:33.50 checking for the wasm C++ compiler... /usr/bin/clang++
 0:33.51 checking whether the wasm C++ compiler can be used... yes
 0:33.51 checking the wasm C++ compiler version... 19.1.7
 0:33.53 checking the wasm C++ compiler works... yes
 0:33.60 checking the wasm C++ compiler can find wasi headers... yes
 0:33.68 checking the wasm C++ linker can find wasi libraries... yes
 0:33.71 checking for clock() in wasi sysroot... no
 0:33.76 checking for emulated clock() in wasi sysroot... yes
 0:33.76 checking for dump_syms... /usr/bin/dump_syms
 0:33.80 checking for getcontext... yes
 0:33.81 checking for nss >= 3.101... yes
 0:33.82 checking NSS_CFLAGS... -I/usr/include/nss -I/usr/include/nspr
 0:33.82 checking NSS_LIBS... -lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4
 0:33.82 checking for gthread-2.0... yes
 0:33.82 checking MOZ_GTHREAD_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread
 0:33.82 checking MOZ_GTHREAD_LIBS... -lgthread-2.0 -pthread -lglib-2.0
 0:33.83 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:33.84 checking MOZ_GTK3_CFLAGS... -I/usr/include/gtk-3.0/unix-print -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/cloudproviders -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/fribidi -I/usr/include/harfbuzz -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread
 0:33.84 checking MOZ_GTK3_LIBS... -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lharfbuzz -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
 0:33.84 checking for glib-2.0 >= 2.42 gobject-2.0... yes
 0:33.85 checking GLIB_CFLAGS... -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-6 -pthread
 0:33.85 checking GLIB_LIBS... -lgobject-2.0 -lglib-2.0
 0:33.85 checking for dbus-1 >= 0.60... yes
 0:33.85 checking MOZ_DBUS_CFLAGS... -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
 0:33.85 checking MOZ_DBUS_LIBS... -ldbus-1
 0:33.88 checking for sin_len in struct sockaddr_in... no
 0:33.90 checking for sin_len6 in struct sockaddr_in6... no
 0:33.92 checking for sa_len in struct sockaddr... no
 0:33.94 checking for pthread_cond_timedwait_monotonic_np... no
 0:33.97 checking for 32-bits ethtool_cmd.speed... yes
 0:34.00 checking for linux/joystick.h... yes
 0:34.00 checking for awk... /usr/bin/gawk
 0:34.00 checking for gmake... /usr/bin/make
 0:34.00 checking for watchman... not found
 0:34.00 checking for xargs... /usr/bin/xargs
 0:34.00 checking for rpmbuild... not found
 0:34.05 checking for strip... /usr/bin/llvm-strip
 0:34.05 checking for m4... /usr/bin/m4
 0:34.06 Refreshing /home/lakeo/waterfox/src/Waterfox-6.5.5/old-configure with /home/lakeo/waterfox/src/Waterfox-6.5.5/build/autoconf/autoconf.sh
 0:34.13 creating cache ./config.cache
 0:34.15 checking host system type... x86_64-pc-linux-gnu
 0:34.17 checking target system type... x86_64-pc-linux-gnu
 0:34.18 checking build system type... x86_64-pc-linux-gnu
 0:34.19 checking for gcc... (cached) /usr/bin/clang -std=gnu99
 0:34.19 checking whether the C compiler (/usr/bin/clang -std=gnu99 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/home/lakeo/waterfox/src=. -w -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -fuse-ld=lld -Wl,-z,pack-relative-relocs) works... (cached) yes
 0:34.20 checking whether the C compiler (/usr/bin/clang -std=gnu99 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/home/lakeo/waterfox/src=. -w -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -fuse-ld=lld -Wl,-z,pack-relative-relocs) is a cross-compiler... no
 0:34.20 checking whether we are using GNU C... (cached) yes
 0:34.20 checking whether /usr/bin/clang -std=gnu99 accepts -g... (cached) yes
 0:34.20 checking for c++... (cached) /usr/bin/clang++
 0:34.21 checking whether the C++ compiler (/usr/bin/clang++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -ffile-prefix-map=/home/lakeo/waterfox/src=. -w -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -fuse-ld=lld -Wl,-z,pack-relative-relocs) works... (cached) yes
 0:34.22 checking whether the C++ compiler (/usr/bin/clang++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -ffile-prefix-map=/home/lakeo/waterfox/src=. -w -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -fuse-ld=lld -Wl,-z,pack-relative-relocs) is a cross-compiler... no
 0:34.22 checking whether we are using GNU C++... (cached) yes
 0:34.22 checking whether /usr/bin/clang++ accepts -g... (cached) yes
 0:34.35 checking whether the linker supports Identical Code Folding... yes
 0:35.02 checking whether we're trying to statically link with libstdc++... no
 0:35.02 checking if app-specific confvars.sh exists... /home/lakeo/waterfox/src/Waterfox-6.5.5/browser/confvars.sh
 0:35.05 checking for valid C compiler optimization flags... yes
 0:35.11 updating cache ./config.cache
 0:35.12 creating ./config.data
 0:35.15 js/src> Refreshing /home/lakeo/waterfox/src/Waterfox-6.5.5/js/src/old-configure with /home/lakeo/waterfox/src/Waterfox-6.5.5/build/autoconf/autoconf.sh
 0:35.30 js/src> loading cache ./config.cache
 0:35.37 js/src> checking host system type... x86_64-pc-linux-gnu
 0:35.40 js/src> checking target system type... x86_64-pc-linux-gnu
 0:35.44 js/src> checking build system type... x86_64-pc-linux-gnu
 0:35.44 js/src> checking for gcc... (cached) /usr/bin/clang -std=gnu99
 0:35.46 js/src> checking whether the C compiler (/usr/bin/clang -std=gnu99 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/home/lakeo/waterfox/src=. -w -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -fuse-ld=lld -Wl,-z,pack-relative-relocs) works... (cached) yes
 0:35.47 js/src> checking whether the C compiler (/usr/bin/clang -std=gnu99 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -ffile-prefix-map=/home/lakeo/waterfox/src=. -w -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -fuse-ld=lld -Wl,-z,pack-relative-relocs) is a cross-compiler... no
 0:35.47 js/src> checking whether we are using GNU C... (cached) yes
 0:35.47 js/src> checking whether /usr/bin/clang -std=gnu99 accepts -g... (cached) yes
 0:35.47 js/src> checking for c++... (cached) /usr/bin/clang++
 0:35.48 js/src> checking whether the C++ compiler (/usr/bin/clang++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -ffile-prefix-map=/home/lakeo/waterfox/src=. -w -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -fuse-ld=lld -Wl,-z,pack-relative-relocs) works... (cached) yes
 0:35.48 js/src> checking whether the C++ compiler (/usr/bin/clang++ -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection         -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -ffile-prefix-map=/home/lakeo/waterfox/src=. -w -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now          -Wl,-z,pack-relative-relocs -fuse-ld=lld -Wl,-z,pack-relative-relocs) is a cross-compiler... no
 0:35.48 js/src> checking whether we are using GNU C++... (cached) yes
 0:35.48 js/src> checking whether /usr/bin/clang++ accepts -g... (cached) yes
 0:35.52 js/src> checking whether the linker supports Identical Code Folding... (cached) yes
 0:35.57 js/src> checking whether we're trying to statically link with libstdc++... (cached) no
 0:35.60 js/src> checking for valid optimization flags... yes
 0:35.61 js/src> creating ./config.data
 0:35.62 Creating config.status
 0:35.91 Reticulating splines...
 0:35.97 Traceback (most recent call last):
 0:35.97   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/sandbox.py", line 155, in exec_file
 0:35.97     source = six.ensure_text(self._finder.get(path).read())
 0:35.97                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:35.97 AttributeError: 'NoneType' object has no attribute 'read'
 0:35.97 During handling of the above exception, another exception occurred:
 0:35.97 Traceback (most recent call last):
 0:35.97   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 1111, in read_mozbuild
 0:35.97     for s in self._read_mozbuild(
 0:35.97              ~~~~~~~~~~~~~~~~~~~^
 0:35.97         path, config, descend=descend, metadata=metadata
 0:35.97         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:35.97     ):
 0:35.97     ^
 0:35.97   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 1185, in _read_mozbuild
 0:35.97     sandbox.exec_file(path)
 0:35.97     ~~~~~~~~~~~~~~~~~^^^^^^
 0:35.97   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 227, in exec_file
 0:35.98     Sandbox.exec_file(self, path, becomes_current_path)
 0:35.98     ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:35.98   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/sandbox.py", line 157, in exec_file
 0:35.98     raise SandboxLoadError(
 0:35.98         self._context.source_stack, sys.exc_info()[2], read_error=path
 0:35.98     )
 0:35.98 mozbuild.frontend.sandbox.SandboxLoadError: ([], <traceback object at 0x7739d49e0bc0>)
 0:35.98 During handling of the above exception, another exception occurred:
 0:35.98 Traceback (most recent call last):
 0:35.98   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/configure.py", line 351, in <module>
 0:35.98     sys.exit(main(sys.argv))
 0:35.98              ~~~~^^^^^^^^^^
 0:35.98   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/configure.py", line 176, in main
 0:35.98     return config_status(config)
 0:35.98   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/configure.py", line 300, in config_status
 0:35.98     return config_status(args=[], **sanitized_config)
 0:35.98   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/config_status.py", line 201, in config_status
 0:35.98     pool = BackendPool(definitions, processes=processes)
 0:35.98   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/config_status.py", line 54, in __init__
 0:35.98     definitions = list(definitions)
 0:35.98   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/emitter.py", line 144, in emit
 0:35.98     for out in output:
 0:35.98                ^^^^^^
 0:35.99   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 906, in read_topsrcdir
 0:35.99     for r in self.read_mozbuild(path, self.config):
 0:35.99              ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
 0:35.99   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 1117, in read_mozbuild
 0:35.99     raise bre
 0:35.99   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 1111, in read_mozbuild
 0:35.99     for s in self._read_mozbuild(
 0:35.99              ~~~~~~~~~~~~~~~~~~~^
 0:35.99         path, config, descend=descend, metadata=metadata
 0:35.99         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:35.99     ):
 0:35.99     ^
 0:35.99   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 1289, in _read_mozbuild
 0:35.99     for res in self.read_mozbuild(
 0:35.99                ~~~~~~~~~~~~~~~~~~^
 0:35.99         child_path, context.config, metadata=child_metadata
 0:35.99         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:35.99     ):
 0:35.99     ^
 0:35.99   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 1117, in read_mozbuild
 0:35.99     raise bre
 0:35.99   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 1111, in read_mozbuild
 0:35.99     for s in self._read_mozbuild(
 0:35.99              ~~~~~~~~~~~~~~~~~~~^
 0:36.00         path, config, descend=descend, metadata=metadata
 0:36.00         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:36.00     ):
 0:36.00     ^
 0:36.00   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 1289, in _read_mozbuild
 0:36.00     for res in self.read_mozbuild(
 0:36.00                ~~~~~~~~~~~~~~~~~~^
 0:36.00         child_path, context.config, metadata=child_metadata
 0:36.00         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:36.00     ):
 0:36.00     ^
 0:36.00   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 1117, in read_mozbuild
 0:36.00     raise bre
 0:36.00   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 1111, in read_mozbuild
 0:36.00     for s in self._read_mozbuild(
 0:36.00              ~~~~~~~~~~~~~~~~~~~^
 0:36.00         path, config, descend=descend, metadata=metadata
 0:36.00         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:36.00     ):
 0:36.00     ^
 0:36.00   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 1289, in _read_mozbuild
 0:36.00     for res in self.read_mozbuild(
 0:36.00                ~~~~~~~~~~~~~~~~~~^
 0:36.00         child_path, context.config, metadata=child_metadata
 0:36.00         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:36.00     ):
 0:36.00     ^
 0:36.00   File "/home/lakeo/waterfox/src/Waterfox-6.5.5/python/mozbuild/mozbuild/frontend/reader.py", line 1130, in read_mozbuild
 0:36.01     raise BuildReaderError(
 0:36.01         list(self._execution_stack), sys.exc_info()[2], sandbox_load_error=sle
 0:36.01     )
 0:36.01 mozbuild.frontend.reader.BuildReaderError:
 0:36.01 ==============================
 0:36.01 FATAL ERROR PROCESSING MOZBUILD FILE
 0:36.01 ==============================
 0:36.01 The error occurred while processing the following file:
 0:36.01     /home/lakeo/waterfox/src/Waterfox-6.5.5/waterfox/browser/moz.build
 0:36.01 The underlying problem is we referenced a path that does not exist. That path is:
 0:36.01     /home/lakeo/waterfox/src/Waterfox-6.5.5/waterfox/browser/locales/moz.build
 0:36.01 Either create the file if it needs to exist or do not reference it.
*** Fix above errors and then restart with "./mach build"
==> ERROR: A failure occurred in build().
    Aborting...

Did you check the package’s AUR page? This issue seems to be addressed in the latest comments.

Thank you for your response! I had not seen that. Being entirely honest, I was not aware AUR had a comments section. I’m very new to this. However, I just tried that, and I get the same message. I opened that moz.build file and removed the line with locales, saved and exited. I even then reopened it just to make sure it really saved. When I run makepkg again, though, I still get the same error, and if I go back to that file, it seems to have reverted. I even tried it with the file open in Kate, and after makepkg failed, it popped up and said the file had been changed and asked if I wanted to refresh to see the change. Sure enough, it reverted the edit. Do you (or anyone else) have any ideas for how to prevent that?

Use the -e (–noextract) option with makepkg after editing the file:

makepkg -e

From the makepkg man page:

-e, --noextract

Do not extract source files or run the prepare() function (if present); use whatever source already exists in the $srcdir/ directory. This is handy if you want to go into $srcdir/ and manually patch or tweak code, then make a package out of the result. Keep in mind that creating a patch may be a better solution to allow others to use your PKGBUILD.

After trying this, the download takes significantly longer, although I’m not sure if that’s normal with this method. After leaving it running, though, the process was terminated with a message that the system was low on memory. This isn’t a problem I’ve had before, as my system has 16 gigabytes of memory. Do you know of any fix for this? And, thank you again for taking the time to help.

Sorry to be late in replying, I went to bed last night.

Compiling a browser can take up quite a bit of time and memory, but I would have thought 16 gigs would be sufficient. Posting the exact error message could be helpful.

Last night I tried building Waterfox with the edit and with the CFLAGS/CXXFLAGS addition mentioned in the latest AUR comment. on a rather old computer with with an old Pentium G2020 processor, 8 gigs of RAM, and a 4 gig zram swap device. I fell asleep before it finished, but I just woke up and found the build failed at the 27 minute mark due to “could not compile gkrust (lib)” - I will take a look into this after I’ve had a shower, breakfast, and done a few other things.

On the other hand, may I ask if you really need to compile Waterfox? There is a -bin (prebuilt binary file) available via the AUR:

It’s the current version (v6.5.6).

2 Likes

No worries about the late reply, I was asleep too. I was not aware of the precompiled version. That works great! Thank you so much for your help!!!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.