Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/5g: incorrect output when binaries are compiled on 32bit host #9777

Closed
davecheney opened this issue Feb 5, 2015 · 5 comments
Closed
Milestone

Comments

@davecheney
Copy link
Contributor

1f2d7bf broke the arm build when 5g is compiled on a 32bit arm host.

runtime
/home/dfc/workspace/linux-arm-cheney-panda-1f2d7bf44fd2/go/src/runtime/alg.go:1: invalid encoding for argument R5 in 45220 (/home/dfc/workspace/linux-arm-cheney-panda-1f2d7bf44fd2/go/src/runtime/mbitmap.go:260)  MOVW    R5,R1
/home/dfc/workspace/linux-arm-cheney-panda-1f2d7bf44fd2/go/src/runtime/alg.go:1: invalid encoding for argument R4 in 147705 (/home/dfc/workspace/linux-arm-cheney-panda-1f2d7bf44fd2/go/src/runtime/stack1.go:569)  MOVW    R4,R1

When 5g is compiled on a 64 bit host, the invalid encoding errors are not present and the cross compiled binary runs when copied to the arm host.

@davecheney davecheney added this to the Go1.5 milestone Feb 5, 2015
@josharian
Copy link
Contributor

I just hit this as well. (Are you stalking me, Dave?)

/home/pi/src/go/src/reflect/deepequal.go:1: invalid encoding for argument R3 in 26403 (/home/pi/src/go/src/reflect/value.go:706)    MOVW    R3,R0

Have you bisected down to a particular commit?

@davecheney
Copy link
Contributor Author

@josharian it was 1f2d7bf

@minux
Copy link
Member

minux commented Feb 5, 2015 via email

@davecheney
Copy link
Contributor Author

==13584== Conditional jump or move depends on uninitialised value(s)
==13584==    at 0xBFB14: checkaddr (pass.c:112)
==13584==    by 0xC009D: linkpatch (pass.c:157)
==13584==    by 0xBD86D: writeobj (objfile.c:282)
==13584==    by 0x511B1: dumpobj (obj.c:101)
==13584==    by 0x4B6A1: gcmain (lex.c:475)
==13584==    by 0x11575: main (main.c:57)
==13584==  Uninitialised value was created by a stack allocation
==13584==    at 0x13B34: cgen (cgen.c:16)

@minux
Copy link
Member

minux commented Feb 5, 2015 via email

@minux minux closed this as completed in 2978ebb Feb 9, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants