techknowlogick / xgo

Go CGO cross compiler
MIT License
477 stars 80 forks source link

binary generate for mac amd64 is working on M1 chip machine and the one generated for mac arm64 is failing #208

Open pandurangpatil opened 1 year ago

pandurangpatil commented 1 year ago

Repository - https://github.com/Privado-Inc/goastgen/tree/xgo-executable-build

When I tried making a build for executable binary using xgo for the above-mentioned repository on a given branch.

Created build over an Ubuntu machine using command sudo xgo --targets=linux/amd64,linux/arm64,darwin/amd64,darwin/arm64,windows/amd64 ./goastgen/

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.2 LTS
Release:    20.04
Codename:   focal

The weird observation is binary generated for drawin-amd64 is working on Mac with an M1 chip and the one generated as darwin-arm64 is not working on Mac with M1 chip

Mac machine details

image
bearsh commented 1 year ago

can you please provide a meaningful description.

pandurangpatil commented 1 year ago

Got stuck in another call. In the process of updating the description.