Given following log snippets, their explanation, and nothing else, explain what failure, if any, occurred during build of this package.

  Snippets are in a format of [X] : [Y], where [X] is a log snippet, and [Y] is the explanation.

  Snippets are delimited with '================'.

  Drawing on information from all snippets, provide a concise explanation of the issue and recommend a solution.

  Explanation of the issue, and recommended solution, should take a handful of sentences.

  Snippets:

  [error: Bad exit status from /var/tmp/rpm-tmp.wNPS2P (%build)
]: [The failure happened in %build phase.]
=============
[Match_inv.c: In function ‘f_match_inv_add’:
Match_inv.c:40:13: error: too many arguments to function ‘match_extra_fn[match_extra_fn_n]’; expected 0, have 6
   40 |             match_extra_fn[match_extra_fn_n](-1, NULL, NULL, 0, inv_out, &(match_extra_fn_local[match_extra_fn_n]));
      |             ^~~~~~~~~~~~~~                   ~~
Match_inv.c:44:13: error: too many arguments to function ‘match_extra_fn[match_extra_fn_n]’; expected 0, have 7
   44 |             match_extra_fn[match_extra_fn_n](-1, NULL, NULL, 0, inv_out, &(match_extra_fn_local[match_extra_fn_n]),arg1);
      |             ^~~~~~~~~~~~~~                   ~~
Match_inv.c:52:13: error: too many arguments to function ‘match_extra_fn[match_extra_fn_n]’; expected 0, have 8
   52 |             match_extra_fn[match_extra_fn_n](-1, NULL, NULL, 0, inv_out, &(match_extra_fn_local[match_extra_fn_n]),arg1,arg2);
      |             ^~~~~~~~~~~~~~                   ~~
Match_inv.c:69:17: error: too many arguments to function ‘match_extra_fn[j]’; expected 0, have 6
   69 |                 match_extra_fn[j](-1, NULL, NULL, 0, inv_out, &(match_extra_fn_local[j]));
      |                 ^~~~~~~~~~~~~~    ~~
Match_inv.c:71:17: error: too many arguments to function ‘match_extra_fn[j]’; expected 0, have 7
   71 |                 match_extra_fn[j](-1, NULL, NULL, 0, inv_out, &(match_extra_fn_local[j]), match_extra_fn_arg1[j] );
      |                 ^~~~~~~~~~~~~~    ~~
Match_inv.c: In function ‘match_inv’:
Match_inv.c:213:17: error: too many arguments to function ‘match_extra_fn[j]’; expected 0, have 6
  213 |                 match_extra_fn[j](mode, sec, data, ndata, inv_out, &(match_extra_fn_local[j]));
      |                 ^~~~~~~~~~~~~~    ~~~~
Match_inv.c:215:17: error: too many arguments to function ‘match_extra_fn[j]’; expected 0, have 7
  215 |                 match_extra_fn[j](mode, sec, data, ndata, inv_out, &(match_extra_fn_local[j]),match_extra_fn_arg1[j]);
      |                 ^~~~~~~~~~~~~~    ~~~~
Match_inv.c:217:17: error: too many arguments to function ‘match_extra_fn[j]’; expected 0, have 8
  217 |                 match_extra_fn[j](mode, sec, data, ndata, inv_out, &(match_extra_fn_local[j]),
      |                 ^~~~~~~~~~~~~~    ~~~~
make: *** [makefile:60: Match_inv.o] Error 1
make: *** Waiting for unfinished jobs....
gcc -c  -I.. -I/usr/include/netcdf -I/usr/include/mysql -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fopenmp  Lola.c
gcc -c  -I.. -I/usr/include/netcdf -I/usr/include/mysql -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fopenmp  Match_fs.c
gcc -c  -I.. -I/usr/include/netcdf -I/usr/include/mysql -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fopenmp  Macro.c
gcc -c  -I.. -I/usr/include/netcdf -I/usr/include/mysql -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fopenmp  Match.c
gcc -c  -I.. -I/usr/include/netcdf -I/usr/include/mysql -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fopenmp  Mem_buffer.c]: [You are using incompatible gcc syntax.]


Answer: Issue: Your code is using C15 standard, while defaults move to C23. 

Resolution: The best move is to report this to upstream and as a temporary fix pass -std=gnu17 to gcc.

 export CFLAGS="-std=gnu17"