C14N.c: In function ‘load_xpath_expr’: src/xml_C14N.c:240:5: warning: ‘__xmlLoadExtDtdDefaultValue’ is deprecated [-Wdeprecated-declarations] 240 | xmlLoadExtDtdDefaultValue = XML_DETECT_IDS | XML_COMPLETE_ATTRS; | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/xml_C14N.c:12: /usr/include/libxml2/libxml/xmlversion.h:499:27: note: declared here 499 | attrs XMLPUBFUN type *__##name(void); | ^~ /usr/include/libxml2/libxml/parser.h:854:16: note: in expansion of macro ‘XML_DECLARE_GLOBAL’ 854 | #define XML_OP XML_DECLARE_GLOBAL | ^~~~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/parser.h:838:3: note: in expansion of macro ‘XML_OP’ 838 | XML_OP(xmlLoadExtDtdDefaultValue, int, XML_DEPRECATED) \ | ^~~~~~ /usr/include/libxml2/libxml/parser.h:851:3: note: in expansion of macro ‘XML_GLOBALS_PARSER_CORE’ 851 | XML_GLOBALS_PARSER_CORE \ | ^~~~~~~~~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/parser.h:855:1: note: in expansion of macro ‘XML_GLOBALS_PARSER’ 855 | XML_GLOBALS_PARSER | ^~~~~~~~~~~~~~~~~~ src/xml_C14N.c:241:5: warning: ‘xmlSubstituteEntitiesDefault’ is deprecated [-Wdeprecated-declarations] 241 | xmlSubstituteEntitiesDefault(1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/xml_C14N.c:24: /usr/include/libxml2/libxml/parser.h:911:17: note: declared here 911 | xmlSubstituteEntitiesDefault(int val); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/builddir/build/BUILD/xmlstarlet-1.6.1' make[1]: Entering directory '/builddir/build/BUILD/xmlstarlet-1.6.1' gcc -DHAVE_CONFIG_H -I. -I//include -I/usr/include/libxml2 -Wall -pedantic -ansi -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -c -o src/xml.o src/xml.c src/xml.c: In function ‘main’: src/xml.c:300:43: warning: passing argument 2 of ‘xmlSetStructuredErrorFunc’ from incompatible pointer type [-Wincompatible-pointer-types] 300 | xmlSetStructuredErrorFunc(&errorInfo, reportError); | ^~~~~~~~~~~ | | | void (*)(void *, xmlError *) {aka void (*)(void *, struct _xmlError *)} In file included from /usr/include/libxml2/libxml/xpath.h:26, from src/xmlstar.h:15, from src/xml.c:46: /usr/include/libxml2/libxml/xmlerror.h:898:57: note: expected ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void *, const struct _xmlError *)’} but argument is of type ‘void (*)(void *, xmlError *)’ {aka ‘void (*)(void *, struct _xmlError *)’} 898 | xmlStructuredErrorFunc handler); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ make[1]: Leaving directory '/builddir/build/BUILD/xmlstarlet-1.6.1' make: *** [Makefile:718: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.UGS6Vk (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.UGS6Vk (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/xmlstarlet.spec