Repository navigation
cmd/go: TestScript/cover_atomic_pkgall broken on riscv64 #81175
Copy link
Copy link
Open
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.arch-riscvIssues solely affecting the riscv64 architecture.Issues solely affecting the riscv64 architecture.
Milestone
Description
Here's an example of the failure:
> env GO111MODULE=off
> go test -coverpkg=all -covermode=atomic x
[stdout]
FAIL x [build failed]
FAIL
[stderr]
# x.test
internal/goarch.init: cannot encode J-type instruction relocation offset for runtime.morestack_noctxt: signed immediate 0x129c58 must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.init: cannot encode J-type instruction relocation offset for runtime.morestack_noctxt: signed immediate 0x129b88 must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.BoundsDecode: cannot encode J-type instruction relocation offset for runtime.morestack_noctxt: signed immediate 0x129ab6 must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.BoundsDecode: cannot encode J-type instruction relocation offset for runtime.gopanic: signed immediate 0x120504 must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.Kind.String: cannot encode J-type instruction relocation offset for runtime.morestack_noctxt: signed immediate 0x12993c must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.Kind.String: cannot encode J-type instruction relocation offset for runtime.panicBounds: signed immediate 0x12b110 must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.Kind.String: cannot encode J-type instruction relocation offset for runtime.panicBounds: signed immediate 0x12b10c must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.(*Type).NumMethod: cannot encode J-type instruction relocation offset for runtime.morestack_noctxt: signed immediate 0x1293b6 must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.Name.IsBlank: cannot encode J-type instruction relocation offset for runtime.morestack_noctxt: signed immediate 0x1292ae must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.Name.Name: cannot encode J-type instruction relocation offset for runtime.morestack_noctxt: signed immediate 0x1290ae must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.Name.Name: cannot encode J-type instruction relocation offset for runtime.panicunsafestringlen: signed immediate 0x10cae2 must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.Name.Name: cannot encode J-type instruction relocation offset for runtime.panicunsafestringlen: signed immediate 0x10cade must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.Name.Tag: cannot encode J-type instruction relocation offset for runtime.morestack_noctxt: signed immediate 0x128ec6 must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.Name.Tag: cannot encode J-type instruction relocation offset for runtime.panicunsafestringlen: signed immediate 0x10c824 must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.Name.Tag: cannot encode J-type instruction relocation offset for runtime.panicunsafestringlen: signed immediate 0x10c820 must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.NewName: cannot encode J-type instruction relocation offset for runtime.morestack_noctxt: signed immediate 0x128bf4 must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.NewName: cannot encode J-type instruction relocation offset for runtime.makeslice: signed immediate 0x123748 must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.NewName: cannot encode J-type instruction relocation offset for runtime.memmove: signed immediate 0x12a2be must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.NewName: cannot encode J-type instruction relocation offset for runtime.memmove: signed immediate 0x12a284 must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.NewName: cannot encode J-type instruction relocation offset for runtime.memmove: signed immediate 0x12a21e must be in range [-0x100000, 0xfffff] (21 bits)
internal/abi.NewName: cannot encode J-type instruction relocation offset for runtime.memmove: signed immediate 0x12a1da must be in range [-0x100000, 0xfffff] (21 bits)
/home/swarming/.swarming/w/ir/x/w/goroot/pkg/tool/linux_riscv64/link: too many errors
script_test.go:165: FAIL: testdata/script/cover_atomic_pkgall.txt:3: go test -coverpkg=all -covermode=atomic x: exit status 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.arch-riscvIssues solely affecting the riscv64 architecture.Issues solely affecting the riscv64 architecture.
Activity
gopherbot commentedon Aug 27, 2026
Change https://go.dev/cl/823284 mentions this issue:
cmd/go: disable tests broken on certain platformsdmitshur commentedon Aug 27, 2026
CC @golang/riscv64.
gabyhelp commentedon Aug 27, 2026
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
cmd/go: disable tests broken on certain platforms
HeliC829 commentedon Aug 28, 2026
It seems a duplicate of #79275. Let me take a look.