go-delve / delve

Delve is a debugger for the Go programming language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

macOS Linking error running with `dlv debug`

adammw opened this issue · comments

Please answer the following before submitting your issue:

  1. What version of Delve are you using (dlv version)? 1.22.1
  2. What version of Go are you using? (go version)? go version go1.22.2 darwin/amd64
  3. What operating system and processor architecture are you using? Mac OS 14.4.1 (23E224) amd64

Reproduction Steps

result=65280
  • Run dlv debug . and see that it errors out at the linking step:
/usr/local/opt/go/libexec/pkg/tool/darwin_amd64/link: running cc failed: exit status 1
Undefined symbols for architecture x86_64:
  "_decode_int32", referenced from:
      _sample_func in 000002.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

exit status 1