Memory usage of rustc compiling librustc goes through the roof. It is the main reason we cannot build on x86 anymore, and it requires at least 5.2 GB of RAM in x86_64.
We need to investigate whether there is something about the Haiku port that causes this abnormality.