Can't build on machines with too little RAM #4714
Replies: 1 comment 4 replies
-
The first point we can't do much about. Maybe it's the LTO stage? In that case you could try settings The binaries are indeed pretty big by default. This is by design, because we include debug info. The assumption there is that people who build the util via cargo are usually the ones who also want to contribute bug reports. You can make it much smaller though, by using the Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
I found that 'cargo build --release' fails at the final step when
the machine on which I was building Rust coreutils had too
little RAM.
I found that I needed 3-4 GB of RAM to build the entire
'busybox'-style coreutils. (Slightly less on a 32-bit x686 machine.)
I was, however, able to build smaller individual utils, on these
smaller machines.
I found that the entire Rust coreutils produced a binary of ~10 MB,
while some of the individual binaries were ~2.5 MB or less (which
is still pretty big for trivial utilities).
Beta Was this translation helpful? Give feedback.
All reactions