Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: revisit dwarf in executable files on OS X #11994
This works fine with go 1.4.x. I've tried the go master branch a handful of times during the last month or so with the same result.
Error from go build:
The clang toolchain in use is osxcross
@ianlancetaylor suggested to use
Yes, dsymutil is only used by Go since Go 1.5.
Since there is a workaround (and the fix would be to just make the workaround be the default when using external linking), I don't believe we will make any changes to this behavior for Go 1.5.
We can reconsider for Go 1.6 if this turns out to be a very common problem, but it seems to me that having debug info in the common case is probably more important than having to add -s when doing something a bit unusual, like using osxcross or codesign.
referenced this issue
Aug 27, 2015
It leads to errors such as the following: