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 "missing wrapper for <type>" #61040

Closed
misha-ridge opened this issue Jun 27, 2023 · 3 comments
Closed

cmd/compile: Internal compiler error "missing wrapper for <type>" #61040

misha-ridge opened this issue Jun 27, 2023 · 3 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge

Comments

@misha-ridge
Copy link

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

go version go1.21rc2 linux/amd64

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='amd64'
GOBIN=''
GOCACHE='/home/misha/.cache/go-build'
GOENV='/home/misha/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/misha/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/misha/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/misha/tectonic/_deps.linux-amd64/go-1.21rc2'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/misha/tectonic/_deps.linux-amd64/go-1.21rc2/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.21rc2'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/misha/tmp/x/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 -ffile-prefix-map=/tmp/go-build1654894307=/tmp/go-build -gno-record-gcc-switches'

What did you do?

$ go build ./...
./b/b.go:23:18: internal compiler error: missing wrapper for b.connContext

See https://github.com/misha-ridge/go-compiler-internal-error for the reproducer.

The error disappears if the files are moved into one package, so I can't provide go.dev/play link.

What did you expect to see?

The code compiles.

What did you see instead?

Internal compiler error

@ianlancetaylor ianlancetaylor changed the title go/compile: Internal compiler error "missing wrapper for <type>" cmd/compile: Internal compiler error "missing wrapper for <type>" Jun 27, 2023
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Jun 27, 2023
@ianlancetaylor
Copy link
Contributor

This appears to be already fixed on HEAD. I confirmed that it fails with 1.21rc2.

CC @randall77 @mdempsky @cuonglm just in case.

@ianlancetaylor ianlancetaylor closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2023
@misha-ridge
Copy link
Author

Thanks. Will this be backported to 1.21 branch?

@cuonglm
Copy link
Member

cuonglm commented Jun 28, 2023

Thanks. Will this be backported to 1.21 branch?

It will be included in 1.21 branch, as 1.21 is not released yet, so there's nothing to be backported.

@golang golang locked and limited conversation to collaborators Jun 27, 2024
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

4 participants