cmd/link: unexpected 32-bit segment on Mac M1 #70620
Labels
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-Darwin
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
Go version
go1.23.3
Output of
go env
in your module/workspace:What did you do?
Do
go build
orgo test
with Goland 2024.3 on Mac M1 normally.What did you see happen?
panic: unexpected 32-bit segment
goroutine 1 [running]:
cmd/link/internal/ld.machoCombineDwarf(0x1400015c200, 0x14000a6c0b8, 0x140013af000, {0x14009754140?, 0x16f7e70ac?}, {0x14009efe120, 0x59})
cmd/link/internal/ld/macho_combine_dwarf.go:224 +0x109c
cmd/link/internal/ld.(*Link).hostlink.func7(0x10095d5c8?, 0x14000a6c0b8?, 0x0?, {0x14009efe120?, 0x140097542d0?})
cmd/link/internal/ld/lib.go:2056 +0x38
cmd/link/internal/ld.(*Link).hostlink.func6({0x1008720dd, 0xf}, 0x1400c36d340)
cmd/link/internal/ld/lib.go:1993 +0x21c
cmd/link/internal/ld.(*Link).hostlink(0x1400015c200)
cmd/link/internal/ld/lib.go:2054 +0x4940
cmd/link/internal/ld.Main(_, {0x10, 0x20, 0x1, 0x1f, 0x1e, 0x7c00000, {0x0, 0x0, 0x0}, ...})
cmd/link/internal/ld/main.go:473 +0x17e8
main.main()
cmd/link/main.go:72 +0xbb4
What did you expect to see?
I just want to share the solution for people searching
command execute:
and set cgo support disable in Goland Setting
The text was updated successfully, but these errors were encountered: