You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
root@docker-dev:test:/go/src# cat hello.go
package main
//import "fmt"
import "C"
func main() {
//fmt.Println("Hello, world")
C.puts(C.CString("Hello, World\n"))
}
root@docker-dev:test:/go/src# CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ AR=x86_64-pc-linux-gnu-ar go build hello.go
runtime/cgo
cgo: exec /missing-cc: fork/exec /missing-cc: no such file or directory
root@docker-dev:test:/go/src# CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GOARM=7 CC=x86_64-pc-linux-gnu-gcc CXX=x86_64-pc-linux-gnu-g++ AR=x86_64-pc-linux-gnu-ar go build hello.go
runtime/cgo
cgo: exec /missing-cc: fork/exec /missing-cc: no such file or directory
root@docker-dev:test:/go/src# go version
go version go1.15.7 linux/amd64
root@docker-dev:test:~# go env
GO111MODULE="off"
GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOENV="/root/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="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 -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build464463100=/tmp/go-build -gno-record-gcc-switches"
The text was updated successfully, but these errors were encountered: