Can't build on macOS with Xcode 8.3
fordhurley opened this issue · 5 comments
fordhurley commented
After upgrading Xcode to the latest version (8.3), I am unable to run the examples:
$ cd examples/basic
$ go run main.go
signal: killed
drewwells commented
Xcode 8.3 broke cgo, more info: golang/go#19734
drewwells commented
The current workaround is go run -ldflags -s main.go
fordhurley commented
I had the feeling that was the case, but was surprised that I hadn't heard about that yet! Hopefully having this issue here saves someone a headache.
drewwells commented
amen, thanks for finding this! Not sure on next steps right now, but all the released binaries probably will fail on OS X with xcode 8.3 now.
drewwells commented
go 1.8.1 is out fixing this issue https://golang.org/doc/devel/release.html#go1.8.minor