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: go build -v broken #14446

Closed
zephyr opened this issue Feb 21, 2016 · 3 comments
Closed

cmd/go: go build -v broken #14446

zephyr opened this issue Feb 21, 2016 · 3 comments

Comments

@zephyr
Copy link

zephyr commented Feb 21, 2016

The verbose flag of go build should “print the names of packages as they are compiled”. But compiling the hello word example with go version devel 9ad41f6 2016-02-21 16:36:56 +0000 linux/amd64 gives only:

$ go run -v helloworld.go 
command-line-arguments
Hello, 世界

I would expect at least fmt, runtime, …

@zephyr
Copy link
Author

zephyr commented Feb 21, 2016

Interestingly enough, it does work as expected when cross-compiling to a different architecture:

$ GOARCH=386 go run -v hello-world.go 
runtime/internal/sys
runtime/internal/atomic
runtime
errors
internal/race
sync/atomic
math
unicode/utf8
sync
syscall
io
strconv
time
reflect
os
fmt
command-line-arguments
Hello, 世界

but still

$ GOARCH=amd64 go run -v hello-world.go 
command-line-arguments
Hello, 世界

@Thomasdezeeuw
Copy link
Contributor

I think they are not being compiled, try running with -a to force the packages to recompile.

@zephyr
Copy link
Author

zephyr commented Feb 21, 2016

That works—so it was my error. Thank you very much! :)

@zephyr zephyr closed this as completed Feb 21, 2016
@golang golang locked and limited conversation to collaborators Feb 28, 2017
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

3 participants