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?


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. provides instructions for this.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.