Skip to content

cmd/link: revisit dwarf in executable files on OS X #11994

@thomasf

Description

@thomasf

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:

/usr/local/go/pkg/tool/linux_amd64/link: /usr/local/go/pkg/tool/linux_amd64/link: combining dwarf failed: open /tmp/go-link-026066058/go.dwarf: no such file or directory

Environment:

GOOS=darwin GOARCH=amd64 GO15VENDOREXPERIMENT=1 CC=o64-clang  CGO_ENABLED=1

The clang toolchain in use is osxcross

@ianlancetaylor suggested to use -ldflags=-s as a work around which produced a working binary.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions