Friday, June 20, 2025
HomeGolangCross compilation from amd64 primarily based Jenkins Agent to arm64 primarily based...

Cross compilation from amd64 primarily based Jenkins Agent to arm64 primarily based Golang Binary – Getting Assist


Hello Staff,

I’m looking for steering on cross-compiling a Go software with CGO_ENABLED=1 for the ARM64 structure.

We beforehand resolved the next runtime error in AWS Lambda by utilizing an Amazon Linux 2 base picture, putting in the required libraries, and copying the required shared libraries manually:

/var/process/bootstrap: error whereas loading shared libraries: libpcsclite.so.1: can not open shared object file
cp /usr/lib64/libpcsclite.so.1 ./lib/
cp /usr/lib64/libpcsclite.so.* ./lib/

Now, I have to construct the binary for the ARM64 structure from a Jenkins agent that runs on AMD64. On condition that CGO_ENABLED=1 is required, I’m not sure which cross-compiler (CC) needs to be used to accurately goal ARM64 on this context.

Any ideas or finest practices could be drastically appreciated.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments