We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
go version
go version go1.10.3 linux/amd64 vgo:devel +88c76dcbab
Yes, I installed vgo via go get -u golang.org/x/vgo
go get -u golang.org/x/vgo
go env
GOARCH="amd64" GOBIN="" GOCACHE="/root/.cache/go-build" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/root/go" GORACE="" GOROOT="/root/local/go" GOTMPDIR="" GOTOOLDIR="/root/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build871799158=/tmp/go-build -gno-record-gcc-switches"
but vgo env is
GOARCH="amd64" GOBIN="" GOCACHE="/root/.cache/go-build" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/root/go" GOPROXY="" GORACE="" GOROOT="/root/local/go" GOTMPDIR="" GOTOOLDIR="/root/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="clang" CXX="clang++" CGO_ENABLED="1" GOMOD="/root/tmp/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build430569664=/tmp/go-build -gno-record-gcc-switches"
run vgo env CC
vgo env CC
gcc
clang
This also caused a compile error if you build a simple program like:
package main import "net/http" func main() { http.ListenAndServe(":8080", nil) }
vgo build -v . golang_org/x/crypto/cryptobyte/asn1 golang_org/x/crypto/curve25519 runtime/cgo golang_org/x/crypto/poly1305 # runtime/cgo exec: "clang": executable file not found in $PATH golang_org/x/text/transform golang_org/x/crypto/chacha20poly1305/internal/chacha20 golang_org/x/net/http2/hpack golang_org/x/text/unicode/bidi golang_org/x/crypto/cryptobyte golang_org/x/crypto/chacha20poly1305 golang_org/x/text/unicode/norm golang_org/x/text/secure/bidirule golang_org/x/net/idna
The text was updated successfully, but these errors were encountered:
@lgarithm have you tried go1.11beta2? vgo is now deprecated, since it was only the prototype tool that is now part of Go itself.
Sorry, something went wrong.
@mvdan I tried https://dl.google.com/go/go1.11beta2.linux-amd64.tar.gz, it works. Thanks!
No branches or pull requests
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10.3 linux/amd64 vgo:devel +88c76dcbab
Does this issue reproduce with the latest release?
Yes, I installed vgo via
go get -u golang.org/x/vgo
What operating system and processor architecture are you using (
go env
)?but vgo env is
What did you do?
run
vgo env CC
What did you expect to see?
gcc
What did you see instead?
clang
This also caused a compile error if you build a simple program like:
The text was updated successfully, but these errors were encountered: