-
-
Notifications
You must be signed in to change notification settings - Fork 646
Closed
Labels
C-bugCategory - BugCategory - Bug
Description
On Asahi Linux, the binaries on npm crash:
$ node_modules/oxlint/bin/oxlint
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
memory allocation of 56 bytes failed
This is because jemalloc hardcodes the max system page size at build time, and on arm64 systems, that might not be 4kb like it is on CI; in particular, Asahi Linux & Raspberry Pi OS use a 16k page size.
Other projects have resolved this by compiling jemalloc on arm64 to use a 16k page size, e.g. see fd's change which just does export JEMALLOC_SYS_WITH_LG_PAGE=16
before the build.
Metadata
Metadata
Assignees
Labels
C-bugCategory - BugCategory - Bug