On Fri, Nov 15, 2024 at 7:21 PM builder--- via Gcc-testresults
<gcc-testresu...@gcc.gnu.org> wrote:
>
> A new failure has been detected on builder gcc-fedora-arm64 while building 
> gcc.
>
> Full details are available at:
>     https://builder.sourceware.org/buildbot/#/builders/183/builds/8332

Aarch64 build fails now due to -Werror being on by default and both
libgcc2.c and float.h define INFINITY (after the switch over to C23 by
default).

../../../gcc/libgcc/libgcc2.c:2676:9: error: ‘INFINITY’ redefined [-Werror]
 2676 | #define INFINITY        CONCAT2(__builtin_huge_val, CEXT) ()
      |         ^~~~~~~~
In file included from ../../../gcc/libgcc/../gcc/tsystem.h:45,
                 from ../../../gcc/libgcc/libgcc2.c:27:
/home/builder/worker/gcc-fedora-arm64/gcc-build/gcc/include/float.h:262:9:
note: this is the location of the previous definition
  262 | #define INFINITY        (__builtin_inff ())
      |         ^~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:512: _divhc3.o] Error 1

Should we do #undef INFINITY in libgcc2.c? change all of the uses of
INFINITY to something else?

Thanks,
Andrew



>
> Build state: failed compile (failure)
> Revision: e77fd9aa89c210db6006fcefb03d80bae0fae851
> Worker: fedora-arm64
> Build Reason: (unknown)
> Blamelist: GCC Administrator <gccad...@gcc.gnu.org>, Gaius Mulley 
> <gaiusm...@gmail.com>, Jonathan Wakely <jwak...@redhat.com>, Joseph Myers 
> <josmy...@redhat.com>, Pan Li <pan2...@intel.com>
>
> Steps:
>
> - 0: worker_preparation ( success )
>
> - 1: git checkout ( success )
>     Logs:
>         - stdio: 
> https://builder.sourceware.org/buildbot/#/builders/183/builds/8332/steps/1/logs/stdio
>
> - 2: rm -rf gcc-build ( success )
>     Logs:
>         - stdio: 
> https://builder.sourceware.org/buildbot/#/builders/183/builds/8332/steps/2/logs/stdio
>
> - 3: configure ( success )
>     Logs:
>         - stdio: 
> https://builder.sourceware.org/buildbot/#/builders/183/builds/8332/steps/3/logs/stdio
>         - config.log: 
> https://builder.sourceware.org/buildbot/#/builders/183/builds/8332/steps/3/logs/config_log
>
> - 4: make ( failure )
>     Logs:
>         - stdio: 
> https://builder.sourceware.org/buildbot/#/builders/183/builds/8332/steps/4/logs/stdio
>         - warnings (144): 
> https://builder.sourceware.org/buildbot/#/builders/183/builds/8332/steps/4/logs/warnings__144_
>

Reply via email to