I'm doing my best to keep rust building on various NetBSD ports. One of them is using 32-bit armv7, but it now appears that rust from version 1.51.0 is no longer possible to build natively on such a platform, due to virtual memory exhaustion:
Compiling rustc_middle v0.0.0 (/usr/pkgsrc/wip/rust/work/rustc-1.51.0-src/compiler/rustc_middle) memory allocation of 72 bytes failed
The VM resources available on this platform are largely given by the maximum data segment size, which was bumped a while back with this comment:
Bump MAXDSIZ from 1536 to 1836. 1836 is 2048-128(MAXTSIZ)-64(MAXSSIZ).
(measured in MB) and if I've understood correctly, other platform constraints makes only 2GB available for user processes.
I have managed to build rust natively on this platform up to and including 1.50.0.
where should I have brought up this theme? (None of the categories in the drop-down menu appear to be a particularly good fit...)
is there something which can be done to shoe-horn it in to fit still? I've already limited LLVM to only do the ARM target on this platform, for instance, and various debug info options are already turned off.
is the project of keeping rust self-hosting on such a platform a lost cause? ("Does anyone else care?")