Error compile on ARM

I have a problem with compilation on BeagleBone Black (ARM, Debian Linux 4.19.94, 512MB RAM).
The build process (cargo build) takes a long time and is then aborted.

Hello World project is building successfully.
My guess is the build process needs more RAM.

How to fix it?

How to run compile without cargo?

Log:

Yeah, this is likely an OOM situation. You could try if using codegen-units=1 for the respective profile in Cargo.toml helps. This may deduplicate some generic and #[inline] functions. If that doesn't help, you will need to use a swap file. https://wiki.archlinux.org/index.php/Swap#Manually provides instructions for this.

1 Like