@Ningen
allocate large swap file like in my previous comment
Not appropriate to change system parameters like that inside of PKGBUILDs.
mk_add_options MOZ_PARALLEL_BUILD=4
Not needed. mach
sets an appropriate value based on available cores.
ac_add_options MOZ_PGO=1
Not suitable for PKGBUILDs because doesn't work in clean chroot.
PGO makes building almost 3-5x longer
That is normal. PGO has three stages:
- Instrumented build.
- Profiling.
- Optimized build.
The PKGBUILD has been constructed to save the profile to reduce time for subsequent rebuilds by skipping to the last step.
Pinned Comments
xiota commented on 2024-02-26 07:32 (UTC) (edited on 2024-08-08 03:44 (UTC) by xiota)
PKGBUILD has been updated. Major changes:
Notes:
_build_pgo_xvfb=false
. This will usexwayland-run
for profiling._build_pgo=false
.mk_add_options MOZ_PARALLEL_BUILD=___
around line 300. Pick a value less than number of cores and free RAM in GB. For example, on a system with 8 cores, 64GB total RAM, but only 6 GB free, the value should be set to 4 or 5.libxul.so
. Leave a comment if you have a potential solution.Having problems? Please provide details: processor make and model, number of cores,
free -m
, full log in pastebin, whether using AUR helper/makepkg/clean chroot, etc.