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: internal compiler error: method ToNumber on struct {} not found #54910

Closed
jmacd opened this issue Sep 6, 2022 · 2 comments
Closed
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge

Comments

@jmacd
Copy link

jmacd commented Sep 6, 2022

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

$ go version
go version go1.19.1 darwin/arm64

Does this issue reproduce with the latest release?

Yes.

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

go env Output
$ go env
GO111MODULE=""
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/josh.macdonald/Library/Caches/go-build"
GOENV="/Users/josh.macdonald/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/josh.macdonald/src/lightstep/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/josh.macdonald/src/lightstep/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.19.1"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/josh.macdonald/src/opentelemetry/otel-launcher-go/lightstep/sdk/metric/go.mod"
GOWORK="/Users/josh.macdonald/src/opentelemetry/otel-launcher-go/go.work"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/hp/8_6w4qns7g79tww_56kst5nh0000gp/T/go-build743137128=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

Tried to build the code linked here: https://go.dev/play/p/OAZa7iraqsH
The code rooted here: https://github.com/lightstep/otel-launcher-go/tree/main/lightstep/sdk/metric

What did you expect to see?

This compiles with 1.18.6.
Incidentally, this code produced #54302 in the 1.19 release.

What did you see instead?

../gopath861173676/pkg/mod/github.com/lightstep/otel-launcher-go/lightstep/sdk/metric@v1.10.1/internal/viewstate/collectors.go:108:16: internal compiler error: method ToNumber on struct {} not found
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Sep 6, 2022
@jmacd
Copy link
Author

jmacd commented Sep 6, 2022

Having trouble isolating this with a small example.

@cuonglm
Copy link
Member

cuonglm commented Sep 7, 2022

This is duplicated of #54225, will be fixed by https://go-review.googlesource.com/c/go/+/428356

@cuonglm cuonglm closed this as completed Sep 7, 2022
@golang golang locked and limited conversation to collaborators Sep 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

3 participants