I assume this would also work on qemu-system-alpha although I haven't tried
yet. But it should work the same way but without the "--foreign" argument.
What kernel are you running? Be aware that recent kernels on alpha
(since ecf7e0a4ad15287) now support the getuid and getgid syscalls
that the other arches always have had. I wonder if glibc has been
updated in anyway for that? If so, it should be checking kernel
version as to whether to use OSF1 syscall conventions or Linux
syscall conventions. OSF1 calling conventions should work on any
kernel, whereas Linux calling conventions only on kernels since
v5.1.