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

Cannot build on darwin undefined: unix.SYS_IOCTL #1045

Closed
JWDobken opened this issue Oct 24, 2020 · 4 comments
Closed

Cannot build on darwin undefined: unix.SYS_IOCTL #1045

JWDobken opened this issue Oct 24, 2020 · 4 comments
Labels

Comments

@JWDobken
Copy link

JWDobken commented Oct 24, 2020

While following the developer guide I am trying to build the package for mac:

$ GOOS=darwin GOARCH=amd64 make build
==> Checking that code complies with gofmt requirements...
go install
# github.com/moby/term
vendor/github.com/moby/term/tc.go:13:28: undefined: unix.SYS_IOCTL
vendor/github.com/moby/term/tc.go:18:28: undefined: unix.SYS_IOCTL
vendor/github.com/moby/term/termios_bsd.go:24:31: undefined: unix.SYS_IOCTL
vendor/github.com/moby/term/termios_bsd.go:37:31: undefined: unix.SYS_IOCTL
make: *** [build] Error 2
  • System Version: macOS 10.15.7 (19H2)
  • Kernel Version: Darwin 19.6.0
  • go version go1.14.10 darwin/amd64

I found a related issue with another project: ory/dockertest#212

@JWDobken JWDobken added the bug label Oct 24, 2020
@JWDobken JWDobken changed the title Cannot build for Mac: undefined: unix.SYS_IOCTL Cannot build on darwin undefined: unix.SYS_IOCTL Oct 24, 2020
@JWDobken
Copy link
Author

JWDobken commented Oct 24, 2020

I reproduced the issue with docker, running the alpine docker container interactively:

$ docker run -ti -e GOOS=darwin -e GOARCH=amd64 -v $GOPATH/bin:/go/bin -v $(PWD):/go/terraform-provider-kubernetes golang:1.14.10-alpine3.12 sh

then:

# cd terraform-provider-kubernetes
# go build
# github.com/moby/term
vendor/github.com/moby/term/tc.go:13:28: undefined: unix.SYS_IOCTL
vendor/github.com/moby/term/tc.go:18:28: undefined: unix.SYS_IOCTL
vendor/github.com/moby/term/termios_bsd.go:24:31: undefined: unix.SYS_IOCTL
vendor/github.com/moby/term/termios_bsd.go:37:31: undefined: unix.SYS_IOCTL

@alexsomesan
Copy link
Member

Indeed, this seems to be an issue. It fails building on native macOS as well.
Fix is in PR above ^^

@alexsomesan
Copy link
Member

We just released v1.13.3 which should no longer have this issue.

@ghost
Copy link

ghost commented Nov 28, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Nov 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants