Skip to content

cmd/dist: depends on clang license being accepted on OSX #13099

Description

@cookieo9

In a recent update to either the OS or the dev-tools clang on OSX will refuse to run (with error code 69) until it is run as root, and the license is accepted.

The output from ./all.bash when compiling from source is:

go tool dist: cannot invoke C compiler "clang": exit status 69

Go needs a system C compiler for use with cgo.
To set a C compiler, export CC=the-compiler.
To disable cgo, export CGO_ENABLED=0.

Which is a little of a head scratcher. I think the error message could elaborate on a possible cause, so that the users don't think the only solution is to disable cgo.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions