Hello Workforce,
I’m in search of steerage 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 mandatory libraries, and copying the required shared libraries manually:
/var/process/bootstrap: error whereas loading shared libraries: libpcsclite.so.1: can't open shared object file
cp /usr/lib64/libpcsclite.so.1 ./lib/
cp /usr/lib64/libpcsclite.so.* ./lib/
Now, I must construct the binary for the ARM64 structure from a Jenkins agent that runs on AMD64. Provided that CGO_ENABLED=1
is required, I’m uncertain which cross-compiler (CC
) ought to be used to appropriately goal ARM64 on this context.
Any strategies or greatest practices can be drastically appreciated.
Hey!
I’ve the identical downside with dealing with identical difficulty however no response from anybody and couldn’t discover this subject troubleshooting in search engine.
Finest Regards,
Lillian
Finest Cat Translator App
Only a mild reminder. !!