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 ReleaseMessage on *uint8 not found #57453

Closed
k-pa opened this issue Dec 23, 2022 · 2 comments
Closed
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@k-pa
Copy link

k-pa commented Dec 23, 2022

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

$ go version go version go1.19 windows/amd64

Does this issue reproduce with the latest release?

Yes

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

Windows 11 on a 64bit intel i7 processor

go env Output
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\myself\AppData\Local\go-build
set GOENV=C:\Users\myself\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\myself\go\pkg\mod
set GOOS=windows
set GOPATH=C:\Users\myself\go
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.19
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Data\tests\coap-server\go.mod
set GOWORK=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Users\myself\AppData\Local\Temp\go-build584022713=/tmp/go-build -gno-record-gcc-switches

What did you do?

I am trying to build this coap server example under Windows with go1.19.3 but get the following error:
internal compiler error: method ReleaseMessage on *uint8 not found
I also tried with go 1.18.9 on windows with same result

I tried the same code under Linux with go 1.18.9 and it works perfectly

What did you expect to see?

No build issue as under Linux

What did you see instead?

go build
# github.com/plgd-dev/go-coap/v3/tcp/client
C:\Users\myself\go\pkg\mod\github.com\plgd-dev\go-coap\v3@v3.0.1\net\observation\handler.go:130:57: internal compiler error: method ReleaseMessage on *uint8 not found

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
# github.com/plgd-dev/go-coap/v3/udp/client
C:\Users\myself\go\pkg\mod\github.com\plgd-dev\go-coap\v3@v3.0.1\net\observation\handler.go:130:57: internal compiler error: method ReleaseMessage on *uint8 not found

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

ALTree commented Dec 23, 2022

This is #55270 and it should have been fixed in 1.19.2.

Are you sure you are reproducing this on 1.19.3 ? go version and your go env output show you're using 1.19.0, not .3

@ALTree ALTree changed the title internal compiler error: method ReleaseMessage on *uint8 not found cmd/compile: internal compiler error: method ReleaseMessage on *uint8 not found Dec 23, 2022
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Dec 23, 2022
@ALTree ALTree added WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. compiler/runtime Issues related to the Go compiler and/or runtime. and removed compiler/runtime Issues related to the Go compiler and/or runtime. labels Dec 23, 2022
@k-pa
Copy link
Author

k-pa commented Dec 23, 2022

@ALTree I just installed 1.19.4 manually and it works

Sorry for the noise and thanks for your help

@k-pa k-pa closed this as completed Dec 23, 2022
@golang golang locked and limited conversation to collaborators Dec 23, 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 WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants