https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104290
Svante Signell <svante.signell at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |svante.signell at gmail dot com --- Comment #1 from Svante Signell <svante.signell at gmail dot com> --- Created attachment 52345 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52345&action=edit Adding hurd to unixsock_readmsg_cloexec.go fixes the build of libgo Hello, The attached patch fixes the build of libgo for GNU/Hurd for gcc-12-20220126 when patching the generated libgo/Makefile as follows: change ../libbacktrace/libbacktrace.la to ../../libbacktrace/libbacktrace.la and remove libatomic from the linkage: LIBATOMIC = ../libatomic/libatomic_convenience.la PTHREAD_CFLAGS = -pthread -L../libatomic/.libs since libatomic is not built yet. It should built before libgo but does not. Unknown why, it may be a problem with the Debian stuff. Additionally, continuing, the build of gotools fails: go1: error: '-fsplit-stack' currently only supported on GNU/Linux go1: error: '-fsplit-stack' is not supported by this compiler configuration The reason for this also unknown so far, libgo and gotools built fine with split-stack on gcc-11. Is this problem related to that libatomic not yet has bee built?? Thanks!