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

[Bug] Latest version compile error on darwin (macOs) #22

Open
XavierFilipe opened this issue Oct 31, 2024 · 0 comments
Open

[Bug] Latest version compile error on darwin (macOs) #22

XavierFilipe opened this issue Oct 31, 2024 · 0 comments

Comments

@XavierFilipe
Copy link

XavierFilipe commented Oct 31, 2024

The latest version of this lib include some dependencies that are only compiled on Linux.

For example: containerd/cgroups.

go: upgraded github.com/cch123/gogctuner v0.0.0-20220714084524-712d934a61a3 => v0.0.0-20240820051400-6fadbbd25d74
go: added github.com/containerd/cgroups v1.1.0
go: added github.com/coreos/go-systemd/v22 v22.5.0
go: added github.com/docker/go-units v0.5.0
go: added github.com/godbus/dbus/v5 v5.1.0
go: added github.com/opencontainers/runtime-spec v1.2.0

Error on build:

github.com/containerd/cgroups
../../../../go/pkg/mod/github.com/containerd/cgroups@v1.1.0/memory.go:463:19: undefined: unix.Eventfd
../../../../go/pkg/mod/github.com/containerd/cgroups@v1.1.0/memory.go:463:35: undefined: unix.EFD_CLOEXEC
../../../../go/pkg/mod/github.com/containerd/cgroups@v1.1.0/utils.go:69:13: undefined: unix.CGROUP2_SUPER_MAGIC
../../../../go/pkg/mod/github.com/containerd/cgroups@v1.1.0/utils.go:76:23: undefined: unix.CGROUP2_SUPER_MAGIC

Any way to add an alternative for macOs? or at least compilation directives.

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

1 participant