~ghost08/photon#8: 
undefined: syscall.Dup2 when compiling on aarch64

Really love photon but I'm having trouble on my arm64 devices. I am a noob with compiling golang so might be doing something wrong here but I don't think aarch64 supports syscall.Dup2

#git.sr.ht/~ghost08/photon/imgproc

imgproc/stdout_redirect.go:39:19: undefined: syscall.Dup2 imgproc/stdout_redirect.go:64:10: undefined: syscall.Dup2 make: *** [Makefile:16: photon] Error 2

Status
RESOLVED CLOSED
Submitter
~sim
Assigned to
No-one
Submitted
1 year, 9 months ago
Updated
1 year, 7 months ago
Labels
No labels applied.

~ghost08 1 year, 9 months ago

That's interesting. I'll take a look at it if I have some time.

leave this here, maybe it helps: https://github.com/tamird/cockroach/commit/8f19305c87d0be870e60fef1fe57b4058c901c3d

~sim 1 year, 9 months ago

Thanks, the issue is the same on my Pinephone (PostmarketOS) and Raspberry Pi (Arch) when compiling from git, and the AUR package fails with Yay too.

I notice that the folks at Termux have managed to package photon so I guess they patched their version.

~sim 1 year, 9 months ago

~sim 1 year, 9 months ago

Perfect! Many thanks

~ghost08 REPORTED CLOSED 1 year, 7 months ago

Register here or Log in to comment, or comment via email.