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

            Bug ID: 117537
           Summary: [15 regression] Failed cross build for
                    aarch64_be-unknown-linux-gnu
                    (libgcc/config/libbid/bid_conf.h:847:25: error:
                    missing braces around initializer
                    [-Werror=missing-braces])
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: libgcc
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
                CC: jsm28 at gcc dot gnu.org
  Target Milestone: ---

Following some discussion on IRC today, I finally changed my various cross
builds to use trunk.

Anyway, this fell out:
```
/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/build/./gcc/xgcc
-B/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/build/./gcc/
-B/usr/aarch64_be-unknown-linux-gnu/bin/
-B/usr/aarch64_be-unknown-linux-gnu/lib/ -isystem
/usr/aarch64_be-unknown-linux-gnu/include -isystem
/usr/aarch64_be-unknown-linux-gnu/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC
-DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-error=narrowing -Wwrite-strings
-Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
-isystem ./include  -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector -fno-stack-clash-protection  -Werror -Wno-prio-ctor-dtor
-fPIC -I. -I. -I../.././gcc
-I/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/gcc-15-20241110/libgcc
-I/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/gcc-15-20241110/libgcc/.
-I/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/gcc-15-20241110/libgcc/../gcc
-I/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/gcc-15-20241110/libgcc/../include
-I/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/gcc-15-20241110/libgcc/config/libbid
-DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS   -o bid128_to_uint64.o -MT
bid128_to_uint64.o -MD -MP -MF bid128_to_uint64.dep -c
/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/gcc-15-20241110/libgcc/config/libbid/bid128_to_uint64.c
In file included from
/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/gcc-15-20241110/libgcc/config/libbid/bid_internal.h:27,
                 from
/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/gcc-15-20241110/libgcc/config/libbid/bid128_to_uint64.c:24:
/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/gcc-15-20241110/libgcc/config/libbid/bid128_to_uint64.c:
In function '__bid128_to_uint64_rnint':
/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/gcc-15-20241110/libgcc/config/libbid/bid_conf.h:847:25:
error: missing braces around initializer [-Werror=missing-braces]
  847 |        UINT128 arg_name={ bid_##arg_name.w[1], bid_##arg_name.w[0]};
      |                         ^
/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/gcc-15-20241110/libgcc/config/libbid/bid_conf.h:871:8:
note: in expansion of macro 'COPY_ARG_VAL'
  871 |        COPY_ARG_VAL(arg_name)
      |        ^~~~~~~~~~~~
/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/gcc-15-20241110/libgcc/config/libbid/bid_conf.h:1050:6:
note: in expansion of macro 'PROLOG_VAL'
 1050 |      PROLOG_VAL(arg_name)                      \
      |      ^~~~~~~~~~
/var/tmp/portage/cross-aarch64_be-unknown-linux-gnu/gcc-15.0.0_pre20241110/work/gcc-15-20241110/libgcc/config/libbid/bid128_to_uint64.c:30:1:
note: in expansion of macro 'BID128_FUNCTION_ARG1_NORND_CUSTOMRESTYPE'
   30 | BID128_FUNCTION_ARG1_NORND_CUSTOMRESTYPE (UINT64,
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

I assume this started with the libgcc change a little while ago from the arm
folks to enable -Werror for arm.

Reply via email to