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:

  [gcc -c   -D_REENTRANT -D_GNU_SOURCE -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 -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -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   -DVERSION=\"0.310100\" -DXS_VERSION=\"0.310100\" -fPIC "-I/usr/lib64/perl5/CORE"   CommonMark.c
CommonMark.c: In function ‘XS_CommonMark__Node_interface_get_node’:
CommonMark.c:682:18: error: too many arguments to function ‘XSFUNCTION’; expected 0, have 1
  682 |         RETVAL = XSFUNCTION(node);
      |                  ^~~~~~~~~~ ~~~~
CommonMark.c: In function ‘XS_CommonMark__Node_interface_get_int’:
CommonMark.c:708:18: error: too many arguments to function ‘XSFUNCTION’; expected 0, have 1
  708 |         RETVAL = XSFUNCTION(node);
      |                  ^~~~~~~~~~ ~~~~
CommonMark.c: In function ‘XS_CommonMark__Node_interface_set_int’:
CommonMark.c:736:18: error: too many arguments to function ‘XSFUNCTION’; expected 0, have 2
  736 |         RETVAL = XSFUNCTION(node, value);
      |                  ^~~~~~~~~~ ~~~~
CommonMark.c: In function ‘XS_CommonMark__Node_interface_get_utf8’:
CommonMark.c:761:18: error: too many arguments to function ‘XSFUNCTION’; expected 0, have 1
  761 |         RETVAL = XSFUNCTION(node);
      |                  ^~~~~~~~~~ ~~~~
CommonMark.c: In function ‘XS_CommonMark__Node_interface_set_utf8’:
CommonMark.c:790:18: error: too many arguments to function ‘XSFUNCTION’; expected 0, have 2
  790 |         RETVAL = XSFUNCTION(node, value);
      |                  ^~~~~~~~~~ ~~~~
CommonMark.c: In function ‘XS_CommonMark__Node_interface_move_node’:
CommonMark.c:889:18: error: too many arguments to function ‘XSFUNCTION’; expected 0, have 2
  889 |         RETVAL = XSFUNCTION(node, other);
      |                  ^~~~~~~~~~ ~~~~
CommonMark.c: In function ‘XS_CommonMark__Node_interface_render’:
CommonMark.c:927:18: error: too many arguments to function ‘XSFUNCTION’; expected 0, have 2
  927 |         RETVAL = XSFUNCTION(root, options);
      |                  ^~~~~~~~~~ ~~~~
CommonMark.c: In function ‘XS_CommonMark__Node_interface_render_width’:
CommonMark.c:973:18: error: too many arguments to function ‘XSFUNCTION’; expected 0, have 3
  973 |         RETVAL = XSFUNCTION(root, options, width);
      |                  ^~~~~~~~~~ ~~~~
make: *** [Makefile:351: CommonMark.o] Error 1]: [contains the actual failures (essentially the same one several times over)]


Answer: Issue: The build ran with GCC 15, which bumps the default C version to C23. C23 changed the meaning of an empty prototype from "unspecified number of arguments" to "no arguments", so now the functions generated by perlxs always expect zero arguments, which will usually break.
Resolution: A real fix is still pending in upstream perl - see https://github.com/Perl/perl5/issues/23192 - but a quick fix is to build with -std=c17 to use an older C version with the older meaning of an empty prototype.