Skip to content

go compiler: internal compiler error: assertion failed #54046

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

Closed
Primetalk opened this issue Jul 25, 2022 · 1 comment
Closed

go compiler: internal compiler error: assertion failed #54046

Primetalk opened this issue Jul 25, 2022 · 1 comment

Comments

@Primetalk
Copy link

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

$ go version

go version go1.18.4 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/user1/Library/Caches/go-build"
GOENV="/Users/user1/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/user1/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/user1/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/homebrew/Cellar/go/1.18.4/libexec"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/homebrew/Cellar/go/1.18.4/libexec/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.18.4"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/user1/Primetalk/goio/go.mod"
GOWORK=""
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/0g/jh8kp3pn3mz52jzfyq8c5md80000gn/T/go-build522047264=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

$ cd Primetalk
$ git clone [email protected]:Primetalk/goio.git
$ cd goio
$ go test ./...
# github.com/primetalk/goio/resource
resource/closable_io.go:13:62: internal compiler error: assertion failed

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
ok  	github.com/primetalk/goio/fun	0.368s
ok  	github.com/primetalk/goio/io	1.658s
ok  	github.com/primetalk/goio/option	0.211s
FAIL	github.com/primetalk/goio/resource [build failed]
ok  	github.com/primetalk/goio/slice	0.488s
ok  	github.com/primetalk/goio/stream	1.189s
FAIL	github.com/primetalk/goio/text [build failed]
FAIL

What did you expect to see?

$ go1.18.1 test ./...
ok  	github.com/primetalk/goio/fun	0.401s
ok  	github.com/primetalk/goio/io	1.743s
ok  	github.com/primetalk/goio/option	0.684s
ok  	github.com/primetalk/goio/resource	0.846s
ok  	github.com/primetalk/goio/slice	0.278s
ok  	github.com/primetalk/goio/stream	1.118s
ok  	github.com/primetalk/goio/text	0.866s

What did you see instead?

internal compiler error: assertion failed
@cherrymui
Copy link
Member

This looks like a dup of #53852 , and should be fixed by CL https://go.dev/cl/417615 . Thanks.

@cherrymui cherrymui closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2022
@golang golang locked and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants