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

gor on arm64: undefined: unix.SYS_POLL #1034

Open
emetriqChris opened this issue Dec 21, 2021 · 2 comments · May be fixed by #1140
Open

gor on arm64: undefined: unix.SYS_POLL #1034

emetriqChris opened this issue Dec 21, 2021 · 2 comments · May be fixed by #1140

Comments

@emetriqChris
Copy link

Moin,

I'm trying to compile gor (latest checkout from github) on a Ubuntu ARM64 machine (I tried Ubuntu 20.04 and 22.04). For 22.04 I'm using libpcap 1.10.1 and go 1.17.3 (both installed from Ubuntu Repo).

The build fails with

capture/sock_linux.go:144:27: undefined: unix.SYS_POLL

The corresponding code is

_, _, e := unix.Syscall(unix.SYS_POLL, uintptr(unsafe.Pointer(poll)), 1, sock.pollTimeout)

I found golang/go#16052 which doesn't help me. Do you have any idea how to compile gor on aarch64?

Thanks a lot!

Christian Kelinski

P.S. I forgot how I managed this, but we've a goreplay v1.0.0 up and running on aarch64

@emetriqChris
Copy link
Author

Hi,

I changed the Syscall from unix.SYS_POLL to unix.SYS_PPOLL and at least I'm able to compile gor on a Ubuntu 20.04 aarch64 machine.

Doing the test from your tutorial was also possible, so basically it's working. But I'm not sure if there are any downsides.

Greetings,
Christian

@jauderho
Copy link
Contributor

Ran into this same issue while trying to build an arm64 container for goreplay.

jauderho added a commit to jauderho/dockerfiles that referenced this issue Jan 19, 2022
Remove ARM for now. Issue at buger/goreplay#1034
@avdv avdv linked a pull request Nov 8, 2022 that will close this issue
avdv added a commit to avdv/goreplay that referenced this issue Nov 8, 2022
The former works on all unix systems, the latter does not since `unix.SYS_POLL` does
not exist on arm64 linux.

Fixes buger#1034
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

Successfully merging a pull request may close this issue.

2 participants