algorand / go-algorand

Algorand's official implementation in Go.
https://developer.algorand.org/
Other
1.35k stars 471 forks source link

Self-compiled MacOS binaries being killed on launch #6151

Open nullun opened 2 weeks ago

nullun commented 2 weeks ago

I'm on MacOS 15.0.1 and recently had a software update for Xcode 16. Turns out Xcode 16 introduces an issue with Go's cmd/link and results in the binaries not being signed properly due to dsymutil deleting a directory. So when you try to run goal or algod you'll see something like zsh: killed goal (in zsh) or Killed: 9 (in bash).

There is a fix, but it was for Go 1.23 and backported to Go 1.22.7, whereas go-algorand is at Go 1.21.10.

onetechnical commented 1 week ago

Just more notes on this. When I first upgraded, I was getting build errors on sortition. If I then nuked my xcode installation altogether, it would eventually install and work. E.g., something like:

sudo rm -rf /Library/Developer/CommandLineTools
xcode-select -r
xcode-select --install

However, after doing this, a software update notification will pop up in a day or two, and it'll break as described here.