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

Windows - arm64 build error #100

Closed
amitsaha opened this issue Dec 31, 2021 · 0 comments
Closed

Windows - arm64 build error #100

amitsaha opened this issue Dec 31, 2021 · 0 comments

Comments

@amitsaha
Copy link
Contributor

Building fails on Windows ARM64 with Go 1.17:

PS C:\Users\amits\work\github.com\99designs\keyring> $env:GOOS="windows"
PS C:\Users\amits\work\github.com\99designs\keyring> $env:GOARCH="arm64"
PS C:\Users\amits\work\github.com\99designs\keyring> go build
# golang.org/x/sys/windows
..\..\..\..\go\pkg\mod\golang.org\x\sys@v0.0.0-20190712062909-fae7ac547cb7\windows\dll_windows.go:24:6: missing function body
..\..\..\..\go\pkg\mod\golang.org\x\sys@v0.0.0-20190712062909-fae7ac547cb7\windows\dll_windows.go:25:6: missing function body
..\..\..\..\go\pkg\mod\golang.org\x\sys@v0.0.0-20190712062909-fae7ac547cb7\windows\zsyscall_windows.go:2533:38: undefined: WSAData
..\..\..\..\go\pkg\mod\golang.org\x\sys@v0.0.0-20190712062909-fae7ac547cb7\windows\zsyscall_windows.go:2773:51: undefined: Servent
..\..\..\..\go\pkg\mod\golang.org\x\sys@v0.0.0-20190712062909-fae7ac547cb7\windows\zsyscall_windows.go:2787:50: undefined: Servent

Upgrading the golang.org/x/sys package gets the build to pass:

> go get golang.org/x/sys
go get: upgraded golang.org/x/sys v0.0.0-20190712062909-fae7ac547cb7 => v0.0.0-20211216021012-1d35b9e2eb4e

> go build #works

>
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

2 participants