public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/105315] New: go build fail on ppc: has no member named 'gregs'; did you mean 'regs'?
@ 2022-04-20  1:42 guojiufu at gcc dot gnu.org
  2022-04-20  1:44 ` [Bug go/105315] " guojiufu at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: guojiufu at gcc dot gnu.org @ 2022-04-20  1:42 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug go/105315] go build fail on ppc: has no member named 'gregs'; did you mean 'regs'?
  2022-04-20  1:42 [Bug go/105315] New: go build fail on ppc: has no member named 'gregs'; did you mean 'regs'? guojiufu at gcc dot gnu.org
@ 2022-04-20  1:44 ` guojiufu at gcc dot gnu.org
  2022-04-21  0:49 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: guojiufu at gcc dot gnu.org @ 2022-04-20  1:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105315

--- Comment #1 from Jiu Fu Guo <guojiufu at gcc dot gnu.org> ---
The failure compiling command is about -m32:

/home/guojiufu/gcc/build/gcc-mainline-base/./gcc/xgcc
-B/home/guojiufu/gcc/build/gcc-mainline-base/./gcc/
-B/home/guojiufu/gcc/install/gcc-mainline-base/powerpc64-unknown-linux-gnu/bin/
-B/home/guojiufu/gcc/install/gcc-mainline-base/powerpc64-unknown-linux-gnu/lib/
-isystem
/home/guojiufu/gcc/install/gcc-mainline-base/powerpc64-unknown-linux-gnu/include
-isystem
/home/guojiufu/gcc/install/gcc-mainline-base/powerpc64-unknown-linux-gnu/sys-include
-m32 -DHAVE_CONFIG_H -I. -I/home/guojiufu/gcc/gcc-mainline-base/libgo -I
/home/guojiufu/gcc/gcc-mainline-base/libgo/runtime
-I/home/guojiufu/gcc/gcc-mainline-base/libgo/../libffi/include
-I../libffi/include -pthread -L../libatomic/.libs -fexceptions
-fnon-call-exceptions -Wall -Wextra -Wwrite-strings -Wcast-qual -Werror
-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I
/home/guojiufu/gcc/gcc-mainline-base/libgo/../libgcc -I
/home/guojiufu/gcc/gcc-mainline-base/libgo/../libbacktrace -I
../../../gcc/include -g -O2 -m32 -MT runtime/go-signal.lo -MD -MP -MF
runtime/.deps/go-signal.Tpo -c
/home/guojiufu/gcc/gcc-mainline-base/libgo/runtime/go-signal.c  -fPIC -DPIC -o
runtime/.libs/go-signal.o

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug go/105315] go build fail on ppc: has no member named 'gregs'; did you mean 'regs'?
  2022-04-20  1:42 [Bug go/105315] New: go build fail on ppc: has no member named 'gregs'; did you mean 'regs'? guojiufu at gcc dot gnu.org
  2022-04-20  1:44 ` [Bug go/105315] " guojiufu at gcc dot gnu.org
@ 2022-04-21  0:49 ` cvs-commit at gcc dot gnu.org
  2022-04-21  0:50 ` ian at airs dot com
  2022-04-21  9:16 ` guojiufu at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-04-21  0:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105315

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Ian Lance Taylor <ian@gcc.gnu.org>:

https://gcc.gnu.org/g:6a4e9934545c112eef5eb7248636baa96cbfd2c0

commit r12-8210-g6a4e9934545c112eef5eb7248636baa96cbfd2c0
Author: Ian Lance Taylor <iant@golang.org>
Date:   Wed Apr 20 14:22:41 2022 -0700

    runtime: use correct field name for PPC32 GLIBC registers

    One of these days we will get this right.

    Fixes PR go/105315

    Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/401374

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug go/105315] go build fail on ppc: has no member named 'gregs'; did you mean 'regs'?
  2022-04-20  1:42 [Bug go/105315] New: go build fail on ppc: has no member named 'gregs'; did you mean 'regs'? guojiufu at gcc dot gnu.org
  2022-04-20  1:44 ` [Bug go/105315] " guojiufu at gcc dot gnu.org
  2022-04-21  0:49 ` cvs-commit at gcc dot gnu.org
@ 2022-04-21  0:50 ` ian at airs dot com
  2022-04-21  9:16 ` guojiufu at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: ian at airs dot com @ 2022-04-21  0:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105315

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #3 from Ian Lance Taylor <ian at airs dot com> ---
Thanks, should be fixed now, I hope.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug go/105315] go build fail on ppc: has no member named 'gregs'; did you mean 'regs'?
  2022-04-20  1:42 [Bug go/105315] New: go build fail on ppc: has no member named 'gregs'; did you mean 'regs'? guojiufu at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-04-21  0:50 ` ian at airs dot com
@ 2022-04-21  9:16 ` guojiufu at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: guojiufu at gcc dot gnu.org @ 2022-04-21  9:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105315

--- Comment #4 from Jiu Fu Guo <guojiufu at gcc dot gnu.org> ---
(In reply to Ian Lance Taylor from comment #3)
> Thanks, should be fixed now, I hope.

As tested, 'go' build pass on that machine now. Thanks!

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-04-21  9:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20  1:42 [Bug go/105315] New: go build fail on ppc: has no member named 'gregs'; did you mean 'regs'? guojiufu at gcc dot gnu.org
2022-04-20  1:44 ` [Bug go/105315] " guojiufu at gcc dot gnu.org
2022-04-21  0:49 ` cvs-commit at gcc dot gnu.org
2022-04-21  0:50 ` ian at airs dot com
2022-04-21  9:16 ` guojiufu at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).