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

build on aarch64 broken #31

Open
ericvh opened this issue Apr 1, 2019 · 1 comment
Open

build on aarch64 broken #31

ericvh opened this issue Apr 1, 2019 · 1 comment

Comments

@ericvh
Copy link

ericvh commented Apr 1, 2019

Dup2 not available in aarch64 golang.

# github.com/gocircuit/circuit/kit/debug
kit/debug/sigpanic_save_panic_trace.go:28:2: undefined: syscall.Dup2
Makefile:2: recipe for target 'nix' failed
make: *** [nix] Error 2
@hoijui
Copy link

hoijui commented Apr 20, 2019

This seems related to #14. A related upsteam (golang) issue can be found here: golang/go#11981

so if I understood the upstream comments right, you should be able to replace syscall.Dup2 with syscall.Dup3, on ARM64.

Edit: Dup 3 takes an additional parameter flags int, which I assume could be set to 0 (comments on that?).

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

2 participants