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: linux/mips fails to make.bash with "internal compiler error: panic: runtime error: index out of range [0] with length 0" #70248

Open
dmitshur opened this issue Nov 7, 2024 · 2 comments
Labels
arch-mips compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Linux
Milestone

Comments

@dmitshur
Copy link
Contributor

dmitshur commented Nov 7, 2024

From https://build.golang.org/log/5e58860b238976b022020c1cb9b3537a20adc863:

Building Go cmd/dist using /tmp/gobuilder-mips64/go1.4/go. (go1.22.6 linux/mips64)
Building Go toolchain1 using /tmp/gobuilder-mips64/go1.4/go.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
Building Go toolchain3 using go_bootstrap and Go toolchain2.
# internal/unsafeheader
<unknown line number>: internal compiler error: panic: runtime error: index out of range [0] with length 0

[...]

This isn't happening on other ports, but does happen on GOOS=linux GOARCH=mips. Also note that without a LUCI builder (issue #67303), watchflakes doesn't catch and report persistent failures such as this one.

https://build.golang.org/log/e098e9f4dd5cedc9afd00c53a1ead71b3ab66125 was the last passing commit, so this seems to be related to CL 594597 for #54766.

CC @golang/mips.

@dmitshur dmitshur added OS-Linux NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. arch-mips labels Nov 7, 2024
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Nov 7, 2024
@prattmic
Copy link
Member

prattmic commented Nov 7, 2024

mipsle is OK, so this is probably a big endian problem. I thought I handled this with ppc64, but perhaps this is 32-bit big endian specific.

@cherrymui cherrymui added this to the Go1.24 milestone Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-mips compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Linux
Projects
None yet
Development

No branches or pull requests

5 participants