trunk 20201204 ftbfs on i686-gnu: ../../../src/libgo/go/syscall/socket_bsd.go:97:25: error: reference to undefined name 'AF_LINK' 97 | sa.raw.Family = AF_LINK | ^ Makefile:2957: recipe for target 'syscall.lo' failed make[6]: *** [syscall.lo] Error 1 make[6]: Leaving directory '/<<PKGBUILDDIR>>/build/i686-gnu/libgo' Makefile:2287: recipe for target 'all-recursive' failed make[5]: *** [all-recursive] Error 1
Created attachment 49702 [details] Build fix of libgo for GNU/Hurd
Hello, Looking into the build failure of libgo for GNU/Hurd reveals that since AF_LINK is not yet supported, the corresponding code for SockaddrDatalink stuff needs to be stripped off socket_bsd.go, thereby creating socket_hurd.go. This is reflected in the attached patch. Thanks!
The master branch has been updated by Ian Lance Taylor <ian@gcc.gnu.org>: https://gcc.gnu.org/g:9121f8084162ff6193a5e941cab1429e4180997a commit r11-5834-g9121f8084162ff6193a5e941cab1429e4180997a Author: Ian Lance Taylor <iant@golang.org> Date: Mon Dec 7 15:25:43 2020 -0800 syscall: don't use AF_LINK on hurd Patch from Svante Signell. Fixes PR go/98153 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/275939
Thanks. Patch committed.