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

Prefer using the unix package #138

Open
sergiu128 opened this issue Nov 1, 2024 · 0 comments
Open

Prefer using the unix package #138

sergiu128 opened this issue Nov 1, 2024 · 0 comments

Comments

@sergiu128
Copy link
Collaborator

Problem:

[sergiu@LT-00142 binance]$ uname -a
Darwin LT-00142 23.6.0 Darwin Kernel Version 23.6.0: Wed Jul 31 20:49:39 PDT 2024; root:xnu-10063.141.1.700.5~1/RELEASE_ARM64_T6000 arm64
[sergiu@LT-00142 binance]$ GOOS=linux GOARCH=amd64 go build main.go 
[sergiu@LT-00142 binance]$ GOOS=linux GOARCH=arm64 go build main.go 
# github.com/talostrading/sonic/internal
../../internal/poll_linux.go:151:11: undefined: syscall.SYS_EPOLL_WAIT

Using unix.EpollCreate from the unix package works, so we should use that one:

[sergiu@LT-00142 somethng]$ GOOS=linux GOARCH=arm64 go build main.go 
[sergiu@LT-00142 somethng]$ GOOS=linux GOARCH=amd64 go build main.go 

golang issue here.

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