-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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/go: bootstrap with Go 1.21.x fail at tip, panic: godebug: Value of name not listed in godebugs.All: gotypesalias #64106
Comments
cc @golang/compiler @griesemer |
Also seems to cause failures on a few builders, e.g. They bootstrap with Go 1.21rc and Go 1.21.0, respectively. Perhaps bootstrapping with Go 1.21.x is broken? Go 1.20.x seems fine. |
Change https://go.dev/cl/542135 mentions this issue: |
I'm seeing this with Full build outputλ gotip download
Updating the go development tree...
From https://go.googlesource.com/go
* branch master -> FETCH_HEAD
HEAD is now at dd88f23 math/big: implement Rat.FloatPrec
Building Go cmd/dist using /usr/local/go. (go1.21.4 linux/amd64)
Building Go toolchain1 using /usr/local/go.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
<unknown line number>: internal compiler error: panic: godebug: Value of name not listed in godebugs.All: gotypesalias
goroutine 1 [running]:
runtime/debug.Stack()
/home/tomasl/sdk/gotip/src/runtime/debug/stack.go:24 +0x5e
bootstrap/cmd/compile/internal/base.FatalfAt({0x96e68?, 0xc0?}, {0xbb3d88, 0x9}, {0xc000096e40, 0x1, 0x1})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/base/print.go:225 +0x1d7
bootstrap/cmd/compile/internal/base.Fatalf(...)
/home/tomasl/sdk/gotip/src/cmd/compile/internal/base/print.go:194
bootstrap/cmd/compile/internal/gc.handlePanic()
/home/tomasl/sdk/gotip/src/cmd/compile/internal/gc/main.go:52 +0x90
panic({0xb0ac60?, 0xc0000bc9b0?})
/home/tomasl/sdk/gotip/src/runtime/panic.go:914 +0x21f
internal/godebug.(*Setting).Value.func1()
/home/tomasl/sdk/gotip/src/internal/godebug/godebug.go:141 +0xb9
sync.(*Once).doSlow(0xa2089e?, 0xbb6d69?)
/home/tomasl/sdk/gotip/src/sync/once.go:74 +0xbf
sync.(*Once).Do(...)
/home/tomasl/sdk/gotip/src/sync/once.go:65
internal/godebug.(*Setting).Value(0x10fb040)
/home/tomasl/sdk/gotip/src/internal/godebug/godebug.go:138 +0x48
bootstrap/cmd/compile/internal/types2.NewChecker(0x7ffd325c5405?, 0xc0003aff80, 0x0?)
/home/tomasl/sdk/gotip/src/cmd/compile/internal/types2/check.go:259 +0x65
bootstrap/cmd/compile/internal/types2.(*Config).Check(0xb2e580?, {0x7ffd325c5405?, 0xc0000120e7?}, {0xc0003d04b0, 0x3, 0x3}, 0x418408?)
/home/tomasl/sdk/gotip/src/cmd/compile/internal/types2/api.go:461 +0x52
bootstrap/cmd/compile/internal/noder.checkFiles({0x0, {0x0, 0x0}}, {0xc0003d0438, 0x3, 0x10?})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/noder/irgen.go:88 +0x5b8
bootstrap/cmd/compile/internal/noder.writePkgStub({0x0?, {0x0?, 0x0?}}, {0xc0003d0438, 0x3, 0x3})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/noder/unified.go:296 +0x6a
bootstrap/cmd/compile/internal/noder.unified({0x0?, {0x0?, 0x0?}}, {0xc0003d0438?, 0xafa040?, 0x0?})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/noder/unified.go:172 +0x9a
bootstrap/cmd/compile/internal/noder.LoadPackage({0xc0000cc090, 0x3, 0x3})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/noder/noder.go:77 +0x450
bootstrap/cmd/compile/internal/gc.Main(0xbec2e8)
/home/tomasl/sdk/gotip/src/cmd/compile/internal/gc/main.go:197 +0xbbd
main.main()
/home/tomasl/sdk/gotip/src/cmd/compile/main.go:57 +0xf9
go tool dist: FAILED: /home/tomasl/sdk/gotip/pkg/tool/linux_amd64/compile -std -pack -o /tmp/go-tool-dist-1402310999/internal/goos/_go_.a -p internal/goos -importcfg /tmp/go-tool-dist-1402310999/internal/goos/importcfg /home/tomasl/sdk/gotip/src/internal/goos/goos.go /home/tomasl/sdk/gotip/src/internal/goos/unix.go /home/tomasl/sdk/gotip/src/internal/goos/zgoos_linux.go: exit status 2
<unknown line number>: internal compiler error: panic: godebug: Value of name not listed in godebugs.All: gotypesalias
goroutine 1 [running]:
runtime/debug.Stack()
/home/tomasl/sdk/gotip/src/runtime/debug/stack.go:24 +0x5e
bootstrap/cmd/compile/internal/base.FatalfAt({0x386e68?, 0xc0?}, {0xbb3d88, 0x9}, {0xc000386e40, 0x1, 0x1})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/base/print.go:225 +0x1d7
bootstrap/cmd/compile/internal/base.Fatalf(...)
/home/tomasl/sdk/gotip/src/cmd/compile/internal/base/print.go:194
bootstrap/cmd/compile/internal/gc.handlePanic()
/home/tomasl/sdk/gotip/src/cmd/compile/internal/gc/main.go:52 +0x90
panic({0xb0ac60?, 0xc00003e9b0?})
/home/tomasl/sdk/gotip/src/runtime/panic.go:914 +0x21f
internal/godebug.(*Setting).Value.func1()
/home/tomasl/sdk/gotip/src/internal/godebug/godebug.go:141 +0xb9
sync.(*Once).doSlow(0xa2089e?, 0xbb6d69?)
/home/tomasl/sdk/gotip/src/sync/once.go:74 +0xbf
sync.(*Once).Do(...)
/home/tomasl/sdk/gotip/src/sync/once.go:65
internal/godebug.(*Setting).Value(0x10fb040)
/home/tomasl/sdk/gotip/src/internal/godebug/godebug.go:138 +0x48
bootstrap/cmd/compile/internal/types2.NewChecker(0x7ffeeb106445?, 0xc0003e7aa0, 0x0?)
/home/tomasl/sdk/gotip/src/cmd/compile/internal/types2/check.go:259 +0x65
bootstrap/cmd/compile/internal/types2.(*Config).Check(0xb2e580?, {0x7ffeeb106445?, 0xc0000120e7?}, {0xc000058548, 0x1, 0x1}, 0x418408?)
/home/tomasl/sdk/gotip/src/cmd/compile/internal/types2/api.go:461 +0x52
bootstrap/cmd/compile/internal/noder.checkFiles({0x0, {0x0, 0x0}}, {0xc0000584d8, 0x1, 0x10?})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/noder/irgen.go:88 +0x5b8
bootstrap/cmd/compile/internal/noder.writePkgStub({0x0?, {0x0?, 0x0?}}, {0xc0000584d8, 0x1, 0x1})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/noder/unified.go:296 +0x6a
bootstrap/cmd/compile/internal/noder.unified({0x0?, {0x0?, 0x0?}}, {0xc0000584d8?, 0xafa040?, 0x0?})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/noder/unified.go:172 +0x9a
bootstrap/cmd/compile/internal/noder.LoadPackage({0xc0000221d0, 0x1, 0x1})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/noder/noder.go:77 +0x450
bootstrap/cmd/compile/internal/gc.Main(0xbec2e8)
/home/tomasl/sdk/gotip/src/cmd/compile/internal/gc/main.go:197 +0xbbd
main.main()
/home/tomasl/sdk/gotip/src/cmd/compile/main.go:57 +0xf9
go tool dist: FAILED: /home/tomasl/sdk/gotip/pkg/tool/linux_amd64/compile -std -pack -o /tmp/go-tool-dist-1402310999/internal/coverage/rtcov/_go_.a -p internal/coverage/rtcov -importcfg /tmp/go-tool-dist-1402310999/internal/coverage/rtcov/importcfg /home/tomasl/sdk/gotip/src/internal/coverage/rtcov/rtcov.go: exit status 2
<unknown line number>: internal compiler error: panic: godebug: Value of name not listed in godebugs.All: gotypesalias
goroutine 1 [running]:
runtime/debug.Stack()
/home/tomasl/sdk/gotip/src/runtime/debug/stack.go:24 +0x5e
bootstrap/cmd/compile/internal/base.FatalfAt({0x130e68?, 0xc0?}, {0xbb3d88, 0x9}, {0xc000130e40, 0x1, 0x1})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/base/print.go:225 +0x1d7
bootstrap/cmd/compile/internal/base.Fatalf(...)
/home/tomasl/sdk/gotip/src/cmd/compile/internal/base/print.go:194
bootstrap/cmd/compile/internal/gc.handlePanic()
/home/tomasl/sdk/gotip/src/cmd/compile/internal/gc/main.go:52 +0x90
panic({0xb0ac60?, 0xc00003eba0?})
/home/tomasl/sdk/gotip/src/runtime/panic.go:914 +0x21f
internal/godebug.(*Setting).Value.func1()
/home/tomasl/sdk/gotip/src/internal/godebug/godebug.go:141 +0xb9
sync.(*Once).doSlow(0xa2089e?, 0xbb6d69?)
/home/tomasl/sdk/gotip/src/sync/once.go:74 +0xbf
sync.(*Once).Do(...)
/home/tomasl/sdk/gotip/src/sync/once.go:65
internal/godebug.(*Setting).Value(0x10fb040)
/home/tomasl/sdk/gotip/src/internal/godebug/godebug.go:138 +0x48
bootstrap/cmd/compile/internal/types2.NewChecker(0x7ffd4776045d?, 0xc0003a5200, 0x0?)
/home/tomasl/sdk/gotip/src/cmd/compile/internal/types2/check.go:259 +0x65
bootstrap/cmd/compile/internal/types2.(*Config).Check(0xb2e580?, {0x7ffd4776045d?, 0xc0000120e7?}, {0xc000058570, 0x1, 0x1}, 0x418408?)
/home/tomasl/sdk/gotip/src/cmd/compile/internal/types2/api.go:461 +0x52
bootstrap/cmd/compile/internal/noder.checkFiles({0x0, {0x0, 0x0}}, {0xc000058510, 0x1, 0x10?})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/noder/irgen.go:88 +0x5b8
bootstrap/cmd/compile/internal/noder.writePkgStub({0x0?, {0x0?, 0x0?}}, {0xc000058510, 0x1, 0x1})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/noder/unified.go:296 +0x6a
bootstrap/cmd/compile/internal/noder.unified({0x0?, {0x0?, 0x0?}}, {0xc000058510?, 0xafa040?, 0x0?})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/noder/unified.go:172 +0x9a
bootstrap/cmd/compile/internal/noder.LoadPackage({0xc0000221d0, 0x1, 0x1})
/home/tomasl/sdk/gotip/src/cmd/compile/internal/noder/noder.go:77 +0x450
bootstrap/cmd/compile/internal/gc.Main(0xbec2e8)
/home/tomasl/sdk/gotip/src/cmd/compile/internal/gc/main.go:197 +0xbbd
main.main()
/home/tomasl/sdk/gotip/src/cmd/compile/main.go:57 +0xf9
go tool dist: FAILED: /home/tomasl/sdk/gotip/pkg/tool/linux_amd64/compile -std -pack -o /tmp/go-tool-dist-1402310999/internal/godebugs/_go_.a -p internal/godebugs -importcfg /tmp/go-tool-dist-1402310999/internal/godebugs/importcfg /home/tomasl/sdk/gotip/src/internal/godebugs/table.go: exit status 2
gotip: failed to build go: exit status 2 |
If it is feasible, the one-liner |
Ah, I didn't realize I could apply that locally without |
What version of Go are you using (
go version
)?I'm attempting to compile commit 7a6ddbb on Mac with an ARM chip using Go 1.21.4 as a bootstrap.
Does this issue reproduce with the latest release?
No
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run
GOROOT_BOOTSTRAP="${HOME}/go1.21" ./make.bash
What did you expect to see?
Compiled Go tip.
What did you see instead?
The following panic (timestamps were added by github.com/kevinburke/tss and measure time since the last line of output).
The text was updated successfully, but these errors were encountered: