Skip to content

Conversation

mariusgrigaitis
Copy link

With old version of x/sys build fails.

See https://stackoverflow.com/questions/71507321/go-1-18-build-error-on-mac-unix-syscall-darwin-1-13-go253-golinkname-mus

go get -u golang.org/x/sys

AKAMAI_LOG=debug  akamai install cli-dns
 DEBUG[0000] INSTALL START             command=install
Attempting to fetch command from https://github.com/akamai/cli-dns.git... ... [OK]
 DEBUG[0000] Go binary found: /opt/homebrew/bin/go command=install
 DEBUG[0000] /opt/homebrew/bin/go version: go version go1.18.2 darwin/arm64 command=install
  INFO[0000] go.sum found, running go module package manager command=install
Installing... [=         ]  DEBUG[0000] Unable to build binary (akamai-dns):
# golang.org/x/sys/unix
../../pkg/mod/golang.org/x/[email protected]/unix/syscall_darwin.1_13.go:25:3: //go:linkname must refer to declared function or variable
../../pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.1_13.go:27:3: //go:linkname must refer to declared function or variable
../../pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.1_13.go:40:3: //go:linkname must refer to declared function or variable
../../pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:28:3: //go:linkname must refer to declared function or variable
../../pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:43:3: //go:linkname must refer to declared function or variable
../../pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:59:3: //go:linkname must refer to declared function or variable
../../pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:75:3: //go:linkname must refer to declared function or variable
../../pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:90:3: //go:linkname must refer to declared function or variable
../../pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:105:3: //go:linkname must refer to declared function or variable
../../pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:121:3: //go:linkname must refer to declared function or variable
../../pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:121:3: too many errors
 command=install
Installing... ... [WARN]
unable to build binary: dns
  WARN[0000] unable to build binary: dns command=install
$ go version
go version go1.18.2 darwin/arm64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant