podman: containerd/cgroups/memory.go:179:33: undefined: unix.SYS_EVENTFD2

build fails with undefined symbols on MacOS (HighSierra)

$ make                                                                                                                                                                                                                                                               [12:27:30]
touch .gopathok
go build -i -ldflags '-L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/nss/lib  -L/usr/local/opt/libarchive/lib -L/usr/local/opt/icu4c/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -X github.com/containers/libpod/libpod.gitCommit="23feb0d6f9a6a43e44f959c99100ae24d6c27f6d" -X github.com/containers/libpod/libpod.buildInfo=1542803281' -tags "seccomp btrfs_noversion exclude_graphdriver_btrfs containers_image_ostree_stub   varlink exclude_graphdriver_devicemapper" -o bin/podman github.com/containers/libpod/cmd/podman
# github.com/containers/libpod/vendor/github.com/containerd/cgroups
vendor/github.com/containerd/cgroups/memory.go:179:33: undefined: unix.SYS_EVENTFD2
vendor/github.com/containerd/cgroups/memory.go:179:55: undefined: unix.EFD_CLOEXEC
make: *** [podman] Error 2

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 23 (19 by maintainers)

Most upvoted comments

the remote-client for osx is coming along nicely … i have a PR waiting for merge that will allow for image building from an osx box backended by a linux box running podman.

We need to find a way to address this issue, even if this could mean that podman would delegate commands to a remove host (or vm) that can run. Top priority would be to be able to build containers.

There is a huge number of developers that are using MacOS ar their desktop and for which its (outdated) BSD was more than enough for writing and (unit) testing their code. Docker also worked well on these.

I am less concerned about running as most of the time my DOCKER_HOST variable points to a remote Linux host.