Skip to content

x/playground: cgo builds fail (e.g., importing "net" package) because "gcc" executable not found in $PATH #44714

@bradfitz

Description

@bradfitz

The playground is currently broken. e.g. https://play.golang.org/p/NbF8QOGEaYB

package main

import (
	"fmt"
	"net"
)

func main() {
	fmt.Println(net.ParseIP("1.2.3.4"))
}

Results in:

# net
cgo: exec gcc: exec: "gcc": executable file not found in $PATH

Go build failed.

/cc @dmitshur

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions