https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81324
Bug ID: 81324 Summary: libgo does not build with glibc 2.18 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: segher at gcc dot gnu.org CC: cmang at google dot com Target Milestone: --- Since quite a while GCC fails building libgo: In file included from /home/segher/src/gcc/libgo/sysinfo.c:109:0: /usr/include/linux/ptrace.h:58:8: error: redefinition of 'struct ptrace_peeksiginfo_args' struct ptrace_peeksiginfo_args { ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/segher/src/gcc/libgo/sysinfo.c:66:0: /usr/include/sys/ptrace.h:161:8: note: originally defined here struct ptrace_peeksiginfo_args ^~~~~~~~~~~~~~~~~~~~~~~ make[4]: *** No rule to make target `s-gen-sysinfo', needed by `gen-sysinfo.go'. Stop. This is with glibc 2.18, on a powerpc64-linux system. I disabled the include of <linux/ptrace.h> (it isn't needed) to get further, since there was work on that same problem for ia64 (which I cannot find currently, sigh); but unfortunately the patch that was committed is for ia64 only.