memory/mozjemalloc/jemalloc.c relies on glibc specific headers to compile on Linux, resulting in build failures when they aren't present. In particular, occurrences of the following cause errors when compiling with musl libc sys/cdefs.h sys/sysctl.h PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP PTHREAD_MUTEX_ADAPTIVE_NP This only seems to affect the single file mentioned; everything else compiles successfully.
Upstream bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=1494268
Thank you for reporting on this. I don't think it's feasible to backport the full changeset that upstream pushed to v58 and so we'll need to develop a patch to handle the musl case. I'll go through what we've used for firefox in the past and see if there's anything there we can leverage.
musl has support in the overlay for 52.x, well 60.x is now being marked stable I am closing this wontfix, we will not backport any additional changes other then compiler fixes when needed.