https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105315
Bug ID: 105315 Summary: go build fail on ppc: has no member named 'gregs'; did you mean 'regs'? Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: go Assignee: ian at airs dot com Reporter: guojiufu at gcc dot gnu.org CC: cmang at google dot com Target Milestone: --- On P8 BE machine, I encounter a build failure. libgo/runtime/go-signal.c:236:59: error: 'union uc_regs_ptr' has no member named 'gregs'; did you mean 'regs'? 236 | ret.sigpc = ((ucontext_t*)(context))->uc_mcontext.gregs[32]; The machine is: Architecture: ppc64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Big Endian Model name: POWER8 (architected), altivec supported reproduce command: $GCC_SRC/configure --enable-languages=c,c++,go --with-cpu=native --with-long-double-128 --prefix=~/install/gcc-mainline-base make -j 30 It may be the commit "r12-8168 af27d545dc6132dcd67d1ee854372ea9cfd2a225" which cause this issue.