RAM+Swap exhausted while building sys image for Flux activity with PackageCompiler on RaspberryPi3 (Raspbian)

To minimize start time of a Julia(1.6.2) program on RaspberryPI3, I tried to use PackageCompiler to build sys image for some activity done against Flux(only inference, not learn). After an hour of work of PackageCompiler while trying to build sys image, the RAM(~800MB) & Swap (1GB) were completely consumed and whole process end up with error. My question would be, are there any trick to still make job done?

Use a Pi 4 with a 64 bit OS instead.

You can crosscompile using Docker images:
https://github.com/Julia-Embedded/jlcross

I can’t, I’m using DexterIndustries BrickPi3 extension card.

Sounds good, I’ll try.