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: InitLSym called twice on func #52768

Closed
ddaa2000 opened this issue May 8, 2022 · 1 comment
Closed

Comments

@ddaa2000
Copy link

ddaa2000 commented May 8, 2022

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

$ go version
go version go1.17.9 windows/amd64

Does this issue reproduce with the latest release?

In go1.17.9 but not in go1.18.1

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

go env Output
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\ddaa\AppData\Local\go-build
set GOENV=C:\Users\ddaa\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\ddaa\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\ddaa\go
set GOPRIVATE=
set GOPROXY=https://goproxy.cn,direct
set GOROOT=C:\Users\ddaa\sdk\go1.17.9
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Users\ddaa\sdk\go1.17.9\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.17.9
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=D:\programing\go\bugReview\go.mod
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 -fmessage-length=0 -fdebug-prefix-map=C:\Users\ddaa\AppData\Local\Temp\go-build360413202=/tmp/go-build -gno-record-gcc-switches

What did you do?

https://go.dev/play/p/OdkfxnAXSkd?v=goprev

What did you expect to see?

compile successfully

What did you see instead?

./prog.go:17:12: internal compiler error: InitLSym called twice on main.func1

Please file a bug report including a short program that triggers the error.
https://golang.org/issue/new

Go build failed.

@ddaa2000 ddaa2000 changed the title cmd/compile: cmd/compile: internal compiler error: InitLSym called twice on func May 8, 2022
@cuonglm
Copy link
Member

cuonglm commented May 8, 2022

Duplicated of #49029

I think this issue is not qualified for backporting.

@golang golang locked and limited conversation to collaborators May 8, 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

4 participants