Discuss GraalVM related topics. Use clojure 1.10.2 or newer for all new projects. Contribute to and GraalVM slack:
sb 2020-04-19T05:40:50.152400Z

I would like to use lib-python and repl via graalvm on aarch64. If that isn’t possible I use Golang or C++ but hopefully that is possible solve.

sb 2020-04-19T05:43:27.153800Z

In the past I used not the official way compile things via substratevm.. but changed lot of things..


to clarify, i had success with producing aarch64 binaries of clj-kondo and bb. the compilation succeeded on android via proot, but it also worked in a qemu aarch64 environment (-M virt). qemu building takes much longer -- in the case of bb it took 2 hours in qemu vs 20 mins on android.


iiuc, rpi 3 should be possible as well with an appropriate distribution, but iiuc memory is limited there.


may be that should be "should be possible to run binaries" -- building may be another story.

sb 2020-04-19T08:07:04.161300Z

@sogaiu did you use java11? Yesterday for me on Ubuntu doesn’t work with official graalvm image :/ - before this I successfully compiled with substratevm/old way.

sb 2020-04-19T08:08:14.162800Z

I added extra 4gb swap and I have 4gb. But didn’t finish within 3-4 hours. I try again..

sb 2020-04-19T08:08:25.163200Z

Maybe qemu better idea..


not quite sure i follow -- what i used was: (so that's the aarch64 build for linux that is tied to java11)


for qemu, the following tutorial was very helpful:


to get bb to work some changes were necessary -- those should be summarized here:


assuming the tutorial is followed, my qemu invocation looked like this:

qemu-system-aarch64 \
  -smp 4 \
  -M virt \
  -m 8192 \
  -cpu cortex-a53 \
  -kernel vmlinuz-4.9.0-12-arm64 \
  -initrd initrd.img-4.9.0-12-arm64 \
  -append 'root=/dev/vda3' \
  -drive if=none,file=hda.raw,id=hd \
  -device virtio-blk-pci,drive=hd \
  -netdev user,id=mynet \
  -device virtio-net-pci,netdev=mynet \


the vda3 part will obviously depend on how partitioning is done -- my value is different from what was in the tutorial


note that i allocated 8gb of memory


...and 4 cores


changing the -Xmx value in bb's build script seemed to help too

sb 2020-04-19T08:26:46.168800Z

Thanks!! I check all things and redo now!! πŸ‘


good luck πŸ™‚

sb 2020-04-19T18:51:58.169800Z

@sogaiu works!! πŸŽ‰

sb 2020-04-19T18:52:15.170300Z

sbThat was slow really on jetson nano