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

Build fails on go1.18 due to out-of-date golang.org/x/sys dependency. #1491

Closed
kaorihinata opened this issue Mar 21, 2022 · 0 comments · Fixed by #1493
Closed

Build fails on go1.18 due to out-of-date golang.org/x/sys dependency. #1491

kaorihinata opened this issue Mar 21, 2022 · 0 comments · Fixed by #1493

Comments

@kaorihinata
Copy link

kaorihinata commented Mar 21, 2022

I was bumping and testing packages this morning, and Kompose currently (both 1.26.1 and HEAD) fails to build with go1.18 due to its indirect dependency on version v0.0.0-20201029080932-201ba4db2418 of golang.org/x/sys. I've tested bumping the version up to v0.0.0-20220319134239-a9b59b0215f8 and confirmed that it builds. I can run tests if that would be useful.

Platform is macOS 12.3 (Darwin), architecture is arm64, etc. Let me know if you need anything else as far as build environment goes.

Error(s) below:

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

...and the upstream issue, as I believe this was just really poor timing with Go cleaning out the skeletons from their own closet:
golang/go#49219

Anyway, let me know if you need anything else.

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

Successfully merging a pull request may close this issue.

1 participant