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

failing to build on aarch64-darwin #359

Closed
shmish111 opened this issue Jul 19, 2022 · 2 comments
Closed

failing to build on aarch64-darwin #359

shmish111 opened this issue Jul 19, 2022 · 2 comments

Comments

@shmish111
Copy link

I've opened NixOS/nixpkgs#182108 in the nixpkgs repo but if you know nothing about nix I still think you might be able to help with the issue here:

# golang.org/x/sys/unix
vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go:29:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go:27:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go:40:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:28:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:43:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:59:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:75:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:90:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:105:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:121:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:121:3: too many errors

I guess maybe it's some library that needs a different version or something, any help would be appreciated.

@aw185176
Copy link

I get the same error on x86_64 as well, FWIW

@ahmetb
Copy link
Owner

ahmetb commented Jul 20, 2022

We don't use vendor/ directory so I'm not sure where that's coming from. I also don't know who packaged this for Nix (I have no knowledge of nix) but perhaps it can be solved by updating the dependencies.

This issue suggests it was a Go bug golang/go#51706 and golang/go#49219. So consider updating the nix package to use newer Go.

@ahmetb ahmetb closed this as completed Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants