I have tried building from source but unfortunately my ev3dev image (ARM V5) is running out of memory. I have also tried building with the taskset command to minimize the number of threads but still getting errors for what seems to be out of memory issues.
Anyway, I would like to use the cross-compile capabilities of GO to build GO binary distribution for ARM V5. I have read some articles in cross-compilation, but all provide instruction on how to build go applications but not enough information on how to build GO for another platform.
I would appreciate any pointers to the right command to do this.
Thanks Dave. I understand now. So, basically the cross-compile is generating an ARM5 executable and with that I don’t even need to have GO installed on my ARM5 device to be able to run.
Thanks
I’ve run the arm5 CI build agent for several years, until it became impossible, and the hardware requirements for a builder are formidable. You need 512mb of ram per core (luckily every arm5 system I’ve found is only single core) and a clock speed comparable to a modern intel machine (which is also near impossible, most ARMv5 systems clock in around 500-600mhz).
In short, you’ll spend literally hours building an environment to build locally on your arm5 host, and that’s if everything works well. But if you cross compile, which you can do today with the Go installation on your machine, it will take you seconds.