cmd/compile: cross compiled arm64 binary can not execute and no response, the program seem to be hung #65361
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
go version go1.18.1 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I tried to build arm64 binary on x86_64 env and compiled successfully. But, confused, the binary can not be executed in target arm64 env.
The binary's source code is very simple as below:
What did you see happen?
When I tried to execute the binary on arm64, it seem to be hung, no error, no output.
/opt/main
What did you expect to see?
The binary run successfully and print "Hello world"
The text was updated successfully, but these errors were encountered: