I'm not a GO programmer, so please forgive me. I am however trying to contribute a fix for an issue in Hashicorp vault. Goland compiles and runs the project without errors, but when I try to execute the project in debug mode, the compilation throws an error that I don't entirely understand:
/opt/homebrew/opt/go/libexec/bin/go build -o /Users/rhornsby/Library/Caches/JetBrains/GoLand2023.2/tmp/GoLand/___1go_build_github_com_hashicorp_vault -gcflags all=-N -l github.com/hashicorp/vault #gosetup
/opt/homebrew/opt/go/libexec/pkg/tool/darwin_arm64/link: running cc failed: exit status 1
ld: B/BL out of range -149822468 (max +/-128MB) to '_runtime.memequal'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I can read the words, and can guess that there's a memory constraint somehow related to compiling with symbols and/or linking debug-related libraries? - but I'm not entirely sure what the bigger picture is or what I can do about it. My Google-foo is failing, I can't figure out for example if
runtime.memequal is settable and set too low, and if so how I could change it.
It might matter, so to be clear I'm trying to compile/run this on an ARM mac (Sonoma 14.1.1) just because that's the desktop I happen to run things on.