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/compile: gopls install failed on centos stream 9 #60727

Closed
bucketsize opened this issue Jun 11, 2023 · 3 comments
Closed

cmd/compile: gopls install failed on centos stream 9 #60727

bucketsize opened this issue Jun 11, 2023 · 3 comments
Labels
FrozenDueToAge Tools This label describes issues relating to any tools in the x/tools repository. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Milestone

Comments

@bucketsize
Copy link

gopls version

0.12.2

go env

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/jb1/.cache/go-build"
GOENV="/home/jb1/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/jb1/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/jb1/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/mnt/data/jb/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/mnt/data/jb/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.20.5"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/jb1/repo/github.sec.samsung.net/sfploy/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3533021216=/tmp/go-build -gno-record-gcc-switches"

What did you do?

go install golang.org/x/tools/gopls@latest

What did you expect to see?

success

What did you see instead?

Editor and settings

html/template

/mnt/data/jb/local/go/src/sync/atomic/type.go:43:6: internal compiler error: panic: assertion failed

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new

golang.org/x/tools/gopls/internal/lsp/protocol

../../../go/pkg/mod/golang.org/x/tools/gopls@v0.12.2/internal/lsp/protocol/tsserver.go:95:6: internal compiler error: panic: assertion failed

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new

Logs

not installed

@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Jun 11, 2023
@gopherbot gopherbot added this to the Unreleased milestone Jun 11, 2023
@findleyr
Copy link
Contributor

Hi, thanks for the report. If I'm understanding correctly this error message is coming from the compiler itself, not gopls.

CC @golang/compiler

@findleyr findleyr changed the title x/tools/gopls: install failed on centos stream 9 cmd/compile: gopls install failed on centos stream 9 Jun 12, 2023
@findleyr findleyr removed the gopls Issues related to the Go language server, gopls. label Jun 12, 2023
@thanm
Copy link
Contributor

thanm commented Jun 12, 2023

I can't seem to reproduce this with go 1.20.5 on my linux machine.

Could you please try to the same install command passing "-h" to the compiler, e.g.

go install -gcflags=-h golang.org/x/tools/gopls@latest

That should produce panic from the error with a stack trace.

@thanm thanm added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Jun 12, 2023
@gopherbot
Copy link
Contributor

Timed out in state WaitingForInfo. Closing.

(I am just a bot, though. Please speak up if this is a mistake or you have the requested information.)

@gopherbot gopherbot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2023
@golang golang locked and limited conversation to collaborators Jul 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge Tools This label describes issues relating to any tools in the x/tools repository. WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

4 participants