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

            Bug ID: 89162
           Summary: libgo build is broken on powerpc64-linux
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: blocker
          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: ---

libtool: compile:  /home/segher/build/tot-master/./gcc/xgcc
-B/home/segher/build/tot-master/./gcc/
-B/home/segher/tot/powerpc64-unknown-linux-gnu/bin/
-B/home/segher/tot/powerpc64-unknown-linux-gnu/lib/ -isystem
/home/segher/tot/powerpc64-unknown-linux-gnu/include -isystem
/home/segher/tot/powerpc64-unknown-linux-gnu/sys-include -m32 -DHAVE_CONFIG_H
-I. -I/home/segher/src/gcc/libgo -I /home/segher/src/gcc/libgo/runtime
-I/home/segher/src/gcc/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/segher/src/gcc/libgo/../libgcc -I
/home/segher/src/gcc/libgo/../libbacktrace -I ../../../gcc/include -g -O2 -m32
-MT runtime/thread.lo -MD -MP -MF runtime/.deps/thread.Tpo -c
/home/segher/src/gcc/libgo/runtime/thread.c  -fPIC -DPIC -o
runtime/.libs/thread.o
/home/segher/src/gcc/libgo/runtime/thread.c:56:1: error: mismatch in argument 1
type of built-in function '__sync_bool_compare_and_swap_8'; expected 'volatile
void *' [-Werror=builtin-declaration-mismatch]
   56 | __sync_bool_compare_and_swap_8 (uint64*, uint64, uint64)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/segher/src/gcc/libgo/runtime/thread.c:113:1: error: mismatch in argument
1 type of built-in function '__sync_add_and_fetch_8'; expected 'volatile void
*' [-Werror=builtin-declaration-mismatch]
  113 | __sync_add_and_fetch_8 (uint64*, uint64)
      | ^~~~~~~~~~~~~~~~~~~~~~

Reply via email to