Closed
Description
What version of Go are you using (go version
)?
go version go1.10.3 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env
)?
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/vagrant/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/vagrant/go"
GORACE=""
GOROOT="/usr/local/Cellar/go/1.10.3/libexec"
GOTMPDIR=""
GOTOOLDIR="/usr/local/Cellar/go/1.10.3/libexec/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/4d/rttdp_9d2s7f36zplgwnqrgr0000gn/T/go-build152874796=/tmp/go-build -gno-record-gcc-switches -fno-common"
What did you do?
Attempted to build https://github.com/sstephenson/launch_socket_server, a Go program with libc linkage.
What did you expect to see?
Build succeeds.
What did you see instead?
GOPATH=/private/tmp/launch_socket_server-20180614-6825-1xxvz8v/launch_socket_server-1.0.0 go build -o sbin/launch_socket_server src/launch_socket_server.go
# command-line-arguments
/usr/local/Cellar/go/1.10.2/libexec/pkg/tool/darwin_amd64/link: /usr/local/Cellar/go/1.10.2/libexec/pkg/tool/darwin_amd64/link: combining dwarf failed: Unknown load command 0x32 (50)
Notes
This is fixed by #25906.