Unable to cross-compile package "github.com/derekparker/delve/cmd/dlv" with "GO111MODULE=on"

126 views
Skip to first unread message

jallr...@gmail.com

unread,
Aug 14, 2018, 1:13:49 AM8/14/18
to golang-dev
The following is failing for me

GO111MODULE=on GOARCH=amd64 GOOS=linux go build -o bin/debugger/dlv github.com/derekparker/delve/cmd/dlv

../../../.go/pkg/mod/github.com/derekparker/de...@v1.0.0/pkg/proc/disasm_amd64.go:46:26: not enough arguments in call to x86asm.GNUSyntax
       have (x86asm.Inst)
     want (x86asm.Inst, uint64, x86asm.SymLookup)
../../../.go/pkg/mod/github.com/derekparker/de...@v1.0.0/pkg/proc/disasm_amd64.go:50:28: not enough arguments in call to x86asm.IntelSyntax
have (x86asm.Inst)
     want (x86asm.Inst, uint64, x86asm.SymLookup)

While the following works fine

GO111MODULE=off GOARCH=amd64 GOOS=linux go build -o bin/debugger/dlv github.com/derekparker/delve/cmd/dlv

Before I open an issue in https://github.com/golang/go or https://github.com/derekparker/delve, I wanted to start here just to double check that I'm not doing something obviously wrong. Any thoughts?

jallr...@gmail.com

unread,
Aug 14, 2018, 1:19:02 AM8/14/18
to golang-dev
Turns out that this is an issue with the v1.0.0 version of delve.
Reply all
Reply to author
Forward
0 new messages