Skip to content

Syscall runtime errors on M1 Macs (darwin/arm64) #1041

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

Closed
ANPetru opened this issue Jul 5, 2021 · 3 comments
Closed

Syscall runtime errors on M1 Macs (darwin/arm64) #1041

ANPetru opened this issue Jul 5, 2021 · 3 comments

Comments

@ANPetru
Copy link

ANPetru commented Jul 5, 2021

I have been having the same issue as this one: #1027, and this commit solved the build errors :#1029

But unfortunately I am now having the following runtime error: Uncaught Error: runtime error: native function not implemented: syscall.libc_sysctl_trampoline

@nevkontakte
Copy link
Member

Unfortunately, this might be tricky for be to debug, since I don't have access to an M1 Mac (or any Mac for that matter).

Is your target environment nodejs or the browser? In the latter case I'd recommend a workaround of building with GOOS=linux. At this point in time linux support is much better tested and supported.

@ANPetru
Copy link
Author

ANPetru commented Jul 6, 2021

I tried building with GOOS=linux and it work's correctly, no runtime errors. I will use this workaround for now
Thank you!

@nevkontakte
Copy link
Member

I believe since #1111 this should no longer be an issue. Feel free to reopen if I'm mistaken.

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

No branches or pull requests

2 participants