Centos7 build failing
See
https://gitlab.haskell.org/ghc/ghc/-/jobs/1281456
command was: gcc -c _build/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils_hsc_make.c -o _build/stage0/libraries/ghc-heap/build/GHC/Exts/Heap/Utils_hsc_make.o -I_build/stage0/libraries/ghc-heap/build -I/builds/ghc/ghc/libraries/containers/containers/include -I/builds/ghc/ghc/_build/stage0/libraries/containers/containers/build/include -I/opt/ghc/9.4.3/lib/ghc-9.4.3/lib/x86_64-linux-ghc-9.4.3/base-4.17.0.0/include -I/opt/ghc/9.4.3/lib/ghc-9.4.3/lib/x86_64-linux-ghc-9.4.3/ghc-bignum-1.3/include -I/opt/ghc/9.4.3/lib/ghc-9.4.3/lib/x86_64-linux-ghc-9.4.3/rts-1.0.2/include -Wall -Werror=unused-but-set-variable -Wno-error=inline -include _build/stage0/libraries/ghc-heap/build/autogen/cabal_macros.h -Dx86_64_HOST_ARCH=1 -Dlinux_HOST_OS=1 -D__GLASGOW_HASKELL__=904
error: In file included from /opt/ghc/9.4.3/lib/ghc-9.4.3/lib/x86_64-linux-ghc-9.4.3/rts-1.0.2/include/Rts.h:38:0,
from Utils.hsc:7:
/opt/ghc/9.4.3/lib/ghc-9.4.3/lib/x86_64-linux-ghc-9.4.3/rts-1.0.2/include/Stg.h:35:3: error: #error __STDC_VERSION__ does not advertise C99, C++11 or later
# error __STDC_VERSION__ does not advertise C99, C++11 or later
^
In file included from /opt/ghc/9.4.3/lib/ghc-9.4.3/lib/x86_64-linux-ghc-9.4.3/rts-1.0.2/include/Rts.h:251:0,
from Utils.hsc:7:
/opt/ghc/9.4.3/lib/ghc-9.4.3/lib/x86_64-linux-ghc-9.4.3/rts-1.0.2/include/rts/storage/ClosureMacros.h: In function ‘zeroSlop’:
/opt/ghc/9.4.3/lib/ghc-9.4.3/lib/x86_64-linux-ghc-9.4.3/rts-1.0.2/include/rts/storage/ClosureMacros.h:535:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (uint32_t i = offset; i < size; i++) {
^
/opt/ghc/9.4.3/lib/ghc-9.4.3/lib/x86_64-linux-ghc-9.4.3/rts-1.0.2/include/rts/storage/ClosureMacros.h:535:5: note: use option -std=c99 or -std=gnu99 to compile your code
Also failing on nightly, I am trying to establish when it started failing.