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

go/ssa/interp/testdata/src/fmt/fmt.go:3:6: missing function body #43340

Closed
ORESoftware opened this issue Dec 23, 2020 · 2 comments
Closed

go/ssa/interp/testdata/src/fmt/fmt.go:3:6: missing function body #43340

ORESoftware opened this issue Dec 23, 2020 · 2 comments

Comments

@ORESoftware
Copy link

ORESoftware commented Dec 23, 2020

What version of Go are you using (go version)?

go version go1.15.5 darwin/amd64

Does this issue reproduce with the latest release?

Not sure if latest, but this is what I see:


3c22fb02d7cf:mbk-rest-api mllsaal$ go install
# golang.org/x/tools/go/ssa/interp/testdata/src/fmt
../../../../pkg/mod/golang.org/x/tools@v0.0.0-20200918232735-d647fc253266/go/ssa/interp/testdata/src/fmt/fmt.go:3:6: missing function body

The missing func body is here on line 3:

package fmt

func Sprint(args ...interface{}) string  // here

func Print(args ...interface{}) {
	for i, arg := range args {
		if i > 0 {
			print(" ")
		}
		print(Sprint(arg))
	}
}

What operating system and processor architecture are you using (go env)?

go env Output
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/mllsaal/Library/Caches/go-build"
GOENV="/Users/mllsaal/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/mllsaal/go/pkg/mod"
GONOPROXY="*"
GONOSUMDB="*"
GOOS="darwin"
GOPATH="/Users/mllsaal/go"
GOPRIVATE="*"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/Cellar/go/1.15.5/libexec"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.15.5/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/mllsaal/go/src/github.com/memebank/mbk-rest-api/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=/var/folders/cp/2b91jt_11ns65yb9485jtj5w0000gr/T/go-build350184406=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Not sure what happened, I did run go fmt ./... right before the error happened tho which is weird.

@ORESoftware ORESoftware changed the title missing function body go/ssa/interp/testdata/src/fmt/fmt.go:3:6: missing function body Dec 23, 2020
@davecheney
Copy link
Contributor

This could be a corrupt Go installation. Can you reproduce this on another system?

@ORESoftware
Copy link
Author

nah it's due to my comment on here:
#32207

problem solved lol

@golang golang locked and limited conversation to collaborators Dec 23, 2021
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