Not planned
Description
What version of Go are you using (go version
)?
$ go version go version go1.17.8 linux/amd64
Does this issue reproduce with the latest release?
no try
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env GO111MODULE="" GOARCH="arm64" GOBIN="" GOCACHE="/root/.cache/go-build" GOENV="/root/.config/go/env" GOEXE="" GOEXPERIMENT="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/go/gopath/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/go/gopath" GOPRIVATE="" GOPROXY="https://goproxy.cn,direct" GOROOT="/home/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/home/go/pkg/tool/linux_amd64" GOVCS="" GOVERSION="go1.17.8" GCCGO="gccgo" AR="ar" CC="/home/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2848213325=/tmp/go-build -gno-record-gcc-switches"
What did you do?
When I try to build a go program with CGO_ENABLED=1
and cross-compile from Linux to MacOS, the build fails.
Activity
[-]affected/package: [/-][+]The `go build` cross compilate failed[/+]seankhliao commentedon Sep 13, 2022
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions