Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/sys zsyscall_darwin_arm64 being checked on Apple Silicon #56553

Closed
reskin89 opened this issue Nov 3, 2022 · 1 comment
Closed

x/sys zsyscall_darwin_arm64 being checked on Apple Silicon #56553

reskin89 opened this issue Nov 3, 2022 · 1 comment

Comments

@reskin89
Copy link

reskin89 commented Nov 3, 2022

Currently on an M1 Apple Silicon Macbook, when building a project that has golang.org/x/sys/unix it attempts to check zsyscall_darwin_arm64.go which seems to have invalid link names:

golang.org/x/sys/unix/zsyscall_darwin_arm64.go:28:3: //go:linkname must refer to declared function or variable
golang.org/x/sys/unix/zsyscall_darwin_arm64.go:43:3: //go:linkname must refer to declared function or variable
golang.org/x/sys/unix/zsyscall_darwin_arm64.go:59:3: //go:linkname must refer to declared function or variable
golang.org/x/sys/unix/zsyscall_darwin_arm64.go:75:3: //go:linkname must refer to declared function or variable
golang.org/x/sys/unix/zsyscall_darwin_arm64.go:90:3: //go:linkname must refer to declared function or variable
golang.org/x/sys/unix/zsyscall_darwin_arm64.go:105:3: //go:linkname must refer to declared function or variable
golang.org/x/sys/unix/zsyscall_darwin_arm64.go:121:3: //go:linkname must refer to declared function or variable
golang.org/x/sys/unix/zsyscall_darwin_arm64.go:136:3: //go:linkname must refer to declared function or variable
golang.org/x/sys/unix/zsyscall_darwin_arm64.go:151:3: //go:linkname must refer to declared function or variable
golang.org/x/sys/unix/zsyscall_darwin_arm64.go:166:3: //go:linkname must refer to declared function or variable
➜  go version
go version go1.19.3 darwin/arm64
@gopherbot gopherbot added this to the Unreleased milestone Nov 3, 2022
@mdempsky
Copy link
Contributor

mdempsky commented Nov 3, 2022

Duplicate of #55889.

As a workaround, you can run: go get -u golang.org/x/sys/unix

@mdempsky mdempsky closed this as completed Nov 3, 2022
@golang golang locked and limited conversation to collaborators Nov 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants