You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code should print a slice with one element in it:
$ go run foo.go
[0xc000070960]
and it does that, if I compile it on linux/amd64.
What did you see instead?
If compiled on linux/arm (or windows/amd64 or freebsd/amd64) the output is:
$ go run foo.go
[]
Note: It depends on where I compile the code. Cross compiling on linux/amd64 to any of the mentioned targets works perfectly fine. While cross compiling on any target except linux/amd64 to any other target doesn't work.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?There are actually 2 involved:
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env on arm
Outputgo env on amd
OutputWhat did you do?
Compiling and Running
https://play.golang.com/p/qdTmNmeX51O
What did you expect to see?
The code should print a slice with one element in it:
and it does that, if I compile it on linux/amd64.
What did you see instead?
If compiled on linux/arm (or windows/amd64 or freebsd/amd64) the output is:
Note: It depends on where I compile the code. Cross compiling on linux/amd64 to any of the mentioned targets works perfectly fine. While cross compiling on any target except linux/amd64 to any other target doesn't work.
The text was updated successfully, but these errors were encountered: