I think this is a problem with the kcp-go package. Building the package for darwin/arm64 gives me the same error:
$ GOOS=darwin GOARCH=arm64 go install github.com/xtaci/kcp-go # golang.org/x/net/internal/socket dev/go/src/golang.org/x/net/internal/socket/cmsghdr.go:9:10: undefined: cmsghdr - elias -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.