Skip to content

Conversation

jacobmarble
Copy link

Update module golang.org/x/sys to latest, in order to enable building with go >=1.18.

Using go 1.18.5 on MacOS 12.4 arm64, building bbolt results in errors of this flavor:

% go build
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/syscall_darwin.1_13.go:29:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/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
../../.gvm/pkgsets/go1.18.5/global/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
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:28:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:43:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:59:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:75:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:90:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:105:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:121:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:121:3: too many errors

The issue can be resolved by using go <1.18, or by updating the module golang.org/x/sys. golang/go#51091

Update module golang.org/x/sys to latest, in order to enable building with go >=1.18.

Using go 1.18.5 on MacOS 12.4 arm64, building bbolt results in errors of this flavor:

```
% go build
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/syscall_darwin.1_13.go:29:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/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
../../.gvm/pkgsets/go1.18.5/global/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
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:28:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:43:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:59:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:75:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:90:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:105:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:121:3: //go:linkname must refer to declared function or variable
../../.gvm/pkgsets/go1.18.5/global/pkg/mod/golang.org/x/[email protected]/unix/zsyscall_darwin_arm64.go:121:3: too many errors
```

The issue can be resolved by using go <1.18, or by updating the module golang.org/x/sys. golang/go#51091

Signed-off-by: Jacob Marble <[email protected]>
@jacobmarble jacobmarble closed this by deleting the head repository Sep 13, 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 this pull request may close these issues.

1 participant