Terraform-provider-kubernetes: Cannot build on darwin undefined: unix.SYS_IOCTL

Created on 24 Oct 2020  ·  4Comments  ·  Source: hashicorp/terraform-provider-kubernetes

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: https://github.com/ory/dockertest/issues/212

bug

Most helpful comment

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

All 4 comments

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

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

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

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!

Was this page helpful?
0 / 5 - 0 ratings