Skip to content

cmd/dist: build fails if gcc is not installed #10731

Description

@davecheney

Building Go on a fresh linux/arm64 machine fails because gcc is not installed.

This might be confusing to new developers because we've made a lot of noise that we're moving away from C to Go in the 1.5 release.

The gcc build time dependency comes from cgo, and all linux/* platforms default to cgo enabled by default.

Should cmd/dist check to see if gcc (or $CC) is valid, and if not, disable cgo ?

/cc @adg @minux

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