NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.83k stars 13.92k forks source link

buck2: crashes on aarch64 with a 16k page size #348698

Open theoparis opened 2 days ago

theoparis commented 2 days ago

Describe the bug

On aarch64 systems such as Asahi Linux, or Raspberry pi 5 devices that use a 16k page size buck2 will not run due to jemalloc.

<jemalloc>: Unsupported system page size
memory allocation of 64 bytes failed

Steps To Reproduce

On an aarch64 host system with a 16k size, run:

nix run 'github:nixos/nixpkgs/master#buck2'

Expected behavior

The buck2 command and the buck2 init command should work.

Screenshots

Additional context

Notify maintainers

@thoughtpolice

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"

Add a :+1: reaction to issues you find important.

theoparis commented 2 days ago

Hmm, this seems to be have been reported in https://github.com/facebook/buck2/issues/91 already 😕

theoparis commented 2 days ago

There also seems to be a environment variable called JEMALLOC_SYS_WITH_LG_PAGE which can be set to 16 🤔 Maybe buck2 can be rebuilt with this set.