go
go copied to clipboard
affected/package: Compile frp v0.35.1 fail
What version of Go are you using (go version
)?
$ go version go version go1.15.6 linux/loong64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env GO111MODULE="on" GOARCH="loong64" GOBIN="" GOCACHE="/home/katyusha/.cache/go-build" GOENV="/home/katyusha/.config/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="loong64" GOHOSTOS="linux" GOINSECURE="" GOMODCACHE="/home/katyusha/go/pkg/mod" GONOPROXY="" GONOSUMDB="" GOOS="linux" GOPATH="/home/katyusha/go" GOPRIVATE="" GOPROXY="https://goproxy.cn,direct" GOROOT="/usr/lib/go-1.15" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/lib/go-1.15/pkg/tool/linux_loong64" GCCGO="gccgo" GOLOONG64="hardfloat" AR="ar" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/mnt/sda/go/frp-0.35.1/go.mod" CGO_CFLAGS="-O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-O2" CGO_FFLAGS="-O2" CGO_LDFLAGS="-O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -mabi=lp64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build914381381=/tmp/go-build -gno-record-gcc-switches"
What did you do?
1.Download source code from frp v0.35.1
2.Uncompress tar.gz file
3.Follow the steps in the Issue1
4.Run make all
What did you expect to see?
Compile success
What did you see instead?
Output
go fmt ./... go: downloading github.com/spf13/cobra v0.0.3 go: downloading github.com/onsi/ginkgo v1.12.3 go: downloading github.com/gorilla/mux v1.7.3 go: downloading github.com/prometheus/client_golang v1.4.1 go: downloading github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d go: downloading github.com/rodaine/table v1.0.0 go: downloading k8s.io/apimachinery v0.18.3 go: downloading github.com/onsi/gomega v1.10.1 go: downloading github.com/google/uuid v1.1.1 go: downloading golang.org/x/time v0.0.0-20191024005414-555d28b269f0 go: downloading github.com/gorilla/websocket v1.4.0 go: downloading golang.org/x/crypto v0.0.0-20190228161510-8dd112bcdc25 go: downloading github.com/pires/go-proxyproto v0.0.0-20190111085350-4d51b51e3bfc go: downloading github.com/pkg/errors v0.8.1 go: downloading github.com/nxadm/tail v1.4.4 go: downloading github.com/golang/protobuf v1.4.2 go: downloading github.com/prometheus/common v0.9.1 go: downloading github.com/vaughan0/go-ini v0.0.0-20130923145212-a98ad7ee00ec go: downloading golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 go: downloading gopkg.in/yaml.v2 v2.3.0 go: downloading github.com/prometheus/procfs v0.0.8 go: downloading google.golang.org/protobuf v1.23.0 env CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o bin/frps ./cmd/frps # golang.org/x/net/internal/socket ../net/internal/socket/cmsghdr.go:10:10: undefined: cmsghdr ../net/internal/socket/cmsghdr.go:11:10: undefined: cmsghdr ../net/internal/socket/cmsghdr.go:12:10: undefined: cmsghdr ../net/internal/socket/cmsghdr_linux_64bit.go:11:10: undefined: cmsghdr ../net/internal/socket/socket.go:134:9: undefined: cmsghdr ../net/internal/socket/socket.go:146:9: undefined: cmsghdr ../net/internal/socket/socket.go:157:9: undefined: cmsghdr ../net/internal/socket/socket.go:171:10: undefined: cmsghdr note: module requires Go 1.17 make: *** [Makefile:23:frps] Error 2