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

bbolt CLI fails to compile with linker errors #348

Closed
siennathesane opened this issue Nov 21, 2022 · 2 comments
Closed

bbolt CLI fails to compile with linker errors #348

siennathesane opened this issue Nov 21, 2022 · 2 comments

Comments

@siennathesane
Copy link

Error

When I try to install the CLI tool with go install -v go.etcd.io/bbolt/cmd/bbolt@latest, it throws this compile-time error.

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

Here is the macOS info.

image

It looks like golang/go#49219 is the cause, so I'll submit a PR for it.

@ahrtr
Copy link
Member

ahrtr commented Nov 23, 2022

Please use go 1.17 to execute go install -v go.etcd.io/bbolt/cmd/bbolt@latest

@ptabor
Copy link
Contributor

ptabor commented Dec 8, 2022

It works on my M1 pro and go 1.18. Marking a WAI.

@ptabor ptabor closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants