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/go: cross compiling for arm produces a warning #12089

Closed
davecheney opened this issue Aug 10, 2015 · 1 comment
Closed

cmd/go: cross compiling for arm produces a warning #12089

davecheney opened this issue Aug 10, 2015 · 1 comment
Milestone

Comments

@davecheney
Copy link
Contributor

Cross compiling this program for linux/arm

package main

func main() {
    print("hello world\n")
}

Produces a warning

% GOARM=6 GOOS=linux GOARCH=arm go build -v hello.go
runtime
command-line-arguments
# command-line-arguments
warning: unable to find math.a

However the final binary still links and runs properly.

  1. The go tool, or linker should not produce a warning, it should be an error.
  2. math.a is being added to the dep chain unconditionally, see 891d344, but maybe this needs to be more nuanced.
@ianlancetaylor ianlancetaylor added this to the Go1.5Maybe milestone Aug 10, 2015
@gopherbot
Copy link

CL https://golang.org/cl/13530 mentions this issue.

@rsc rsc closed this as completed in 28fb0d8 Aug 11, 2015
@mikioh mikioh modified the milestones: Go1.5, Go1.5Maybe Aug 13, 2015
@golang golang locked and limited conversation to collaborators Aug 22, 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