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

Install fails on M1 Macbook #178

Closed
nickcorin opened this issue Apr 12, 2021 · 3 comments
Closed

Install fails on M1 Macbook #178

nickcorin opened this issue Apr 12, 2021 · 3 comments
Labels
Milestone

Comments

@nickcorin
Copy link

gotop version:

N / A (cannot install)

OS/Arch:

ProductName: macOS
ProductVersion: 11.2.3
BuildVersion: 20D91

Terminal emulator:

alacritty 0.7.2 (5ac8060)

Any relevant hardware info:

This build fails on the new M1 ARM architecture. I'm using an M1 Macbook Pro 13".

tmux version:

tmux 3.1c

I'm struggling to install gotop using Homebrew or just using go install.

Both fail with the following error message:

src/github.com/xxxserxxx/gotop/logging/logging_arm64.go:11:2: undefined: syscall.Dup3
@nickcorin
Copy link
Author

IIRC dup(3) is only available on Linux, but now Darwin is using ARM architecture which has broken the logic of the build tags in the logging package.

@nickcorin
Copy link
Author

I've opened a PR, but just making sure it's backwards compatible.

@xxxserxxx xxxserxxx added this to the v4.1.2 milestone Jul 20, 2021
@xxxserxxx
Copy link
Owner

Should be resolved with v4.1.2, which is being released now-ish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants