Rustc's resource handling makes DeltaChat impossible to build e.g. on a PinePhone

rustc’s apparent trouble handling resources efficiently makes DeltaChat impossible to build e.g. on a PinePhone, since rustc seems to require an extreme amount of more than 2GB of RAM to build the core:

Since this seems to be a long-standing rustc problem, perhaps at some point DeltaChat devs could consider poking the rust compiler devs about this to see some improvement. My apologies if this post doesn’t seem actionable enough, I just thought it would be useful to point out this issue.

debug build may take less ram to build (some years ago I managed to build on pine phone with this trick).
maybe you could try to create or increase your swap file on the pine phone.

At some point it may also be possible to compile the chatmail core with GitHub - Rust-GCC/gccrs: GCC Front-End for Rust - maybe that has better resource handling?

1 Like