go tool: no such tool "6g"

1,919 views
Skip to first unread message

Aurélien Desbrières

unread,
Feb 17, 2016, 7:16:54 AM2/17/16
to golang-nuts
Hello Gophers!

Trying to make a:
$ go tool 6g -S $GOPATH/src/gocode/*.go
go tool: no such tool "6g"

But go tool list some tools?

Do I have to install it? How?

Thanks for all

$ go tool
addr2line
api
asm
cgo
compile
cover
dist
doc
fix
link
nm
objdump
pack
pprof
trace
vet
yacc

Dave Cheney

unread,
Feb 17, 2016, 7:19:47 AM2/17/16
to golang-nuts
6g and friends were renamed to "compile" in Go 1.5.

Aurélien Desbrières

unread,
Feb 17, 2016, 7:31:56 AM2/17/16
to golang-nuts
Oh ... cool thanks!

Andy Balholm

unread,
Feb 17, 2016, 12:17:30 PM2/17/16
to Aurélien Desbrières, golang-nuts
In the newer versions of Go, the architecture-specific compilers like 6g and 8g have been replaced by a single compiler that can compile for any CPU architecture that Go supports. It is called “go tool compile”.
Reply all
Reply to author
Forward
0 new messages