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: gopls fails to install (vs code) complains about signGeneric and verifyGeneric #35018

Closed
piot opened this issue Oct 20, 2019 · 6 comments
Closed
Labels

Comments

@piot
Copy link

@piot piot commented Oct 20, 2019

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

1.13.3

Does this issue reproduce with the latest release?

Yes

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

GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/peter/.cache/go-build"
GOENV="/home/peter/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/peter/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/peter/work/ecs-live-query/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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build276645036=/tmp/go-build -gno-record-gcc-switches"

What did you do?

Upgraded to go 1.13.3 and started vscode and opted to install gopls.

What did you expect to see?

gopls installed correctly without an error.

What did you see instead?

# crypto/ecdsa
/usr/local/go/src/crypto/ecdsa/ecdsa_noasm.go:16:14: undefined: signGeneric
/usr/local/go/src/crypto/ecdsa/ecdsa_noasm.go:21:9: undefined: verifyGeneric

Complete output:

Installing 1 tool at /home/peter/go/bin
  gopls

Installing golang.org/x/tools/gopls FAILED

1 tools failed to install.

gopls:
Error: Command failed: /usr/local/go/bin/go get -v golang.org/x/tools/gopls
go: finding golang.org/x/tools/gopls v0.1.7
go: finding golang.org/x/tools latest
go: downloading golang.org/x/tools/gopls v0.1.7
go: downloading golang.org/x/tools v0.0.0-20191018212557-ed542cd5b28a
go: extracting golang.org/x/tools/gopls v0.1.7
go: extracting golang.org/x/tools v0.0.0-20191018212557-ed542cd5b28a
go: downloading golang.org/x/tools v0.0.0-20190918214516-5a1a30219888
go: extracting golang.org/x/tools v0.0.0-20190918214516-5a1a30219888
go: downloading golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: downloading golang.org/x/sync v0.0.0-20190423024810-112230192c58
go: extracting golang.org/x/sync v0.0.0-20190423024810-112230192c58
go: extracting golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: finding golang.org/x/tools v0.0.0-20190918214516-5a1a30219888
go: finding golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: finding golang.org/x/sync v0.0.0-20190423024810-112230192c58
golang.org/x/tools/cmd/guru/serial
golang.org/x/tools/internal/semver
golang.org/x/tools/internal/telemetry/unit
golang.org/x/xerrors/internal
golang.org/x/tools/internal/jsonrpc2
golang.org/x/tools/go/ast/astutil
golang.org/x/tools/internal/fastwalk
golang.org/x/tools/internal/module
golang.org/x/tools/go/internal/gcimporter
golang.org/x/tools/go/internal/packagesdriver
golang.org/x/tools/internal/gopathwalk
golang.org/x/tools/internal/telemetry/stats
golang.org/x/tools/internal/telemetry
golang.org/x/tools/internal/span
crypto/ecdsa
golang.org/x/tools/internal/xcontext
golang.org/x/tools/internal/telemetry/export
golang.org/x/xerrors
# crypto/ecdsa
/usr/local/go/src/crypto/ecdsa/ecdsa_noasm.go:16:14: undefined: signGeneric
/usr/local/go/src/crypto/ecdsa/ecdsa_noasm.go:21:9: undefined: verifyGeneric
golang.org/x/sync/errgroup
golang.org/x/tools/go/analysis
golang.org/x/tools/go/analysis/passes/internal/analysisutil
golang.org/x/tools/internal/telemetry/tag
golang.org/x/tools/go/ast/inspector
golang.org/x/tools/go/cfg
golang.org/x/tools/internal/lsp/telemetry
golang.org/x/tools/internal/telemetry/metric
golang.org/x/tools/internal/telemetry/log
golang.org/x/tools/internal/telemetry/trace
golang.org/x/tools/go/analysis/passes/asmdecl
golang.org/x/tools/go/analysis/passes/inspect
golang.org/x/tools/internal/lsp/protocol
golang.org/x/tools/go/analysis/passes/assign
golang.org/x/tools/go/gcexportdata
golang.org/x/tools/go/analysis/passes/atomic
golang.org/x/tools/go/analysis/passes/atomicalign
golang.org/x/tools/go/analysis/passes/bools
golang.org/x/tools/go/packages
golang.org/x/tools/go/analysis/passes/buildtag
golang.org/x/tools/go/analysis/passes/cgocall
golang.org/x/tools/go/analysis/passes/composite
golang.org/x/tools/go/analysis/passes/copylock
golang.org/x/tools/go/analysis/passes/httpresponse
golang.org/x/tools/go/analysis/passes/loopclosure
golang.org/x/tools/go/types/typeutil
golang.org/x/tools/go/analysis/passes/nilfunc
golang.org/x/tools/go/analysis/passes/shift
golang.org/x/tools/go/analysis/passes/stdmethods
golang.org/x/tools/go/analysis/passes/structtag
golang.org/x/tools/go/analysis/passes/tests
golang.org/x/tools/go/analysis/passes/unreachable
golang.org/x/tools/go/analysis/passes/ctrlflow
golang.org/x/tools/go/analysis/passes/printf
golang.org/x/tools/internal/imports
golang.org/x/tools/go/analysis/passes/unmarshal
golang.org/x/tools/go/analysis/passes/unsafeptr
golang.org/x/tools/go/analysis/passes/lostcancel
golang.org/x/tools/go/analysis/passes/unusedresult
golang.org/x/tools/internal/lsp/diff/myers
golang.org/x/tools/internal/lsp/fuzzy
golang.org/x/tools/internal/lsp/snippet
golang.org/x/tools/internal/lsp/diff
golang.org/x/tools/refactor/satisfy
golang.org/x/tools/internal/lsp/browser
golang.org/x/tools/internal/memoize
golang.org/x/tools/internal/telemetry/export/ocagent/wire
golang.org/x/tools/internal/tool
golang.org/x/tools/internal/lsp/source
go: finding golang.org/x/tools/gopls v0.1.7
go: finding golang.org/x/tools latest
go: downloading golang.org/x/tools/gopls v0.1.7
go: downloading golang.org/x/tools v0.0.0-20191018212557-ed542cd5b28a
go: extracting golang.org/x/tools/gopls v0.1.7
go: extracting golang.org/x/tools v0.0.0-20191018212557-ed542cd5b28a
go: downloading golang.org/x/tools v0.0.0-20190918214516-5a1a30219888
go: extracting golang.org/x/tools v0.0.0-20190918214516-5a1a30219888
go: downloading golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: downloading golang.org/x/sync v0.0.0-20190423024810-112230192c58
go: extracting golang.org/x/sync v0.0.0-20190423024810-112230192c58
go: extracting golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: finding golang.org/x/tools v0.0.0-20190918214516-5a1a30219888
go: finding golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
go: finding golang.org/x/sync v0.0.0-20190423024810-112230192c58
golang.org/x/tools/cmd/guru/serial
golang.org/x/tools/internal/semver
golang.org/x/tools/internal/telemetry/unit
golang.org/x/xerrors/internal
golang.org/x/tools/internal/jsonrpc2
golang.org/x/tools/go/ast/astutil
golang.org/x/tools/internal/fastwalk
golang.org/x/tools/internal/module
golang.org/x/tools/go/internal/gcimporter
golang.org/x/tools/go/internal/packagesdriver
golang.org/x/tools/internal/gopathwalk
golang.org/x/tools/internal/telemetry/stats
golang.org/x/tools/internal/telemetry
golang.org/x/tools/internal/span
crypto/ecdsa
golang.org/x/tools/internal/xcontext
golang.org/x/tools/internal/telemetry/export
golang.org/x/xerrors
# crypto/ecdsa
/usr/local/go/src/crypto/ecdsa/ecdsa_noasm.go:16:14: undefined: signGeneric
/usr/local/go/src/crypto/ecdsa/ecdsa_noasm.go:21:9: undefined: verifyGeneric
golang.org/x/sync/errgroup
golang.org/x/tools/go/analysis
golang.org/x/tools/go/analysis/passes/internal/analysisutil
golang.org/x/tools/internal/telemetry/tag
golang.org/x/tools/go/ast/inspector
golang.org/x/tools/go/cfg
golang.org/x/tools/internal/lsp/telemetry
golang.org/x/tools/internal/telemetry/metric
golang.org/x/tools/internal/telemetry/log
golang.org/x/tools/internal/telemetry/trace
golang.org/x/tools/go/analysis/passes/asmdecl
golang.org/x/tools/go/analysis/passes/inspect
golang.org/x/tools/internal/lsp/protocol
golang.org/x/tools/go/analysis/passes/assign
golang.org/x/tools/go/gcexportdata
golang.org/x/tools/go/analysis/passes/atomic
golang.org/x/tools/go/analysis/passes/atomicalign
golang.org/x/tools/go/analysis/passes/bools
golang.org/x/tools/go/packages
golang.org/x/tools/go/analysis/passes/buildtag
golang.org/x/tools/go/analysis/passes/cgocall
golang.org/x/tools/go/analysis/passes/composite
golang.org/x/tools/go/analysis/passes/copylock
golang.org/x/tools/go/analysis/passes/httpresponse
golang.org/x/tools/go/analysis/passes/loopclosure
golang.org/x/tools/go/types/typeutil
golang.org/x/tools/go/analysis/passes/nilfunc
golang.org/x/tools/go/analysis/passes/shift
golang.org/x/tools/go/analysis/passes/stdmethods
golang.org/x/tools/go/analysis/passes/structtag
golang.org/x/tools/go/analysis/passes/tests
golang.org/x/tools/go/analysis/passes/unreachable
golang.org/x/tools/go/analysis/passes/ctrlflow
golang.org/x/tools/go/analysis/passes/printf
golang.org/x/tools/internal/imports
golang.org/x/tools/go/analysis/passes/unmarshal
golang.org/x/tools/go/analysis/passes/unsafeptr
golang.org/x/tools/go/analysis/passes/lostcancel
golang.org/x/tools/go/analysis/passes/unusedresult
golang.org/x/tools/internal/lsp/diff/myers
golang.org/x/tools/internal/lsp/fuzzy
golang.org/x/tools/internal/lsp/snippet
golang.org/x/tools/internal/lsp/diff
golang.org/x/tools/refactor/satisfy
golang.org/x/tools/internal/lsp/browser
golang.org/x/tools/internal/memoize
golang.org/x/tools/internal/telemetry/export/ocagent/wire
golang.org/x/tools/internal/tool
golang.org/x/tools/internal/lsp/source
@gopherbot

This comment has been minimized.

Copy link

@gopherbot gopherbot commented Oct 20, 2019

Thank you for filing a gopls issue! Please take a look at the Troubleshooting guide, and make sure that you have provided all of the relevant information here.

@gopherbot gopherbot added the gopls label Oct 20, 2019
@piot

This comment has been minimized.

Copy link
Author

@piot piot commented Oct 20, 2019

Works in go1.12.12 without any errors.

@johndelavega

This comment has been minimized.

Copy link

@johndelavega johndelavega commented Oct 20, 2019

reproducible with 1 line of code:
err := http.ListenAndServe(":8080", http.FileServer(http.Dir(".")))

go version go1.13.3 linux/amd64

Fails in go1.13.3
Works ok in go1.13.2

@stamblerre stamblerre changed the title gopls fails to install (vs code) complains about signGeneric and verifyGeneric cmd/go: gopls fails to install (vs code) complains about signGeneric and verifyGeneric Oct 20, 2019
@stamblerre stamblerre removed the gopls label Oct 20, 2019
@gopherbot gopherbot added the gopls label Oct 20, 2019
@xgdgsc

This comment has been minimized.

Copy link

@xgdgsc xgdgsc commented Oct 21, 2019

Did you extract the go tarball into the previous version and overwrite? I had this and deleted the go folder and extracted the latest version tarball and it works.

@piot

This comment has been minimized.

Copy link
Author

@piot piot commented Oct 22, 2019

Thank you @xgdgsc! I did that exact mistake, sorry about this.

@piot piot closed this Oct 22, 2019
@johndelavega

This comment has been minimized.

Copy link

@johndelavega johndelavega commented Oct 23, 2019

no longer reproducible for me with
sudo rm -r /usr/local/go/
thanks @xgdgsc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.