On Tue, Oct 29, 2024 at 2:04 PM Samuel Thibault
wrote:
>
> * libgo/go/syscall/syscall_funcs.go: Do not build on GNU/Hurd.
> * libgo/go/syscall/syscall_funcs_stubs.go: Build on GNU/Hurd.
> * libgo/runtime/go-nosys.c: Do not produce syscall() stub on
> GNU/Hurd.
>
T
GNU/Hurd does not actually have syscall(), it just has a stub that
always return ENOSYS, and defines __stub_syscall. It does however
expose a declaration for it:
extern long int syscall (long int __sysno, ...) __THROW;
that conflicts with the stub that libgo produces
int
syscall(int numbe