˜throw’ will always call ‘terminate’ [-Wterminate] 90 | throw std::runtime_error ( buffer ); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wraplibxml.cpp:95:33: warning: ‘throw’ will always call ‘terminate’ [-Wterminate] 95 | throw std::runtime_error ( | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 96 | std::string ( "Can't format message: " ) + msg ); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wraplibxml.cpp: In member function ‘bool WrapLibxml::parse(const char*, size_t, const wxString&, bool, bool)’: wraplibxml.cpp:331:30: warning: ‘int xmlKeepBlanksDefault(int)’ is deprecated [-Wdeprecated-declarations] 331 | xmlKeepBlanksDefault ( indent ? 0 : 1 ); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /usr/include/libxml2/libxml/parser.h:915:17: note: declared here 915 | xmlKeepBlanksDefault (int val); | ^~~~~~~~~~~~~~~~~~~~ wraplibxml.cpp: In member function ‘bool WrapLibxml::xpath(const wxString&, const std::string&, const wxString&)’: wraplibxml.cpp:366:30: warning: ‘int xmlKeepBlanksDefault(int)’ is deprecated [-Wdeprecated-declarations] 366 | xmlKeepBlanksDefault ( 0 ); | ~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/include/libxml2/libxml/parser.h:915:17: note: declared here 915 | xmlKeepBlanksDefault (int val); | ^~~~~~~~~~~~~~~~~~~~ wraplibxml.cpp: In member function ‘wxString WrapLibxml::getLastError()’: wraplibxml.cpp:711:42: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive] 711 | xmlErrorPtr err = xmlGetLastError(); | ~~~~~~~~~~~~~~~^~ | | | const xmlError* {aka const _xmlError*} wraplibxml.cpp: In member function ‘std::pair WrapLibxml::getErrorPosition()’: wraplibxml.cpp:727:42: error: invalid conversion from ‘const xmlError*’ {aka ‘const _xmlError*’} to ‘xmlErrorPtr’ {aka ‘_xmlError*’} [-fpermissive] 727 | xmlErrorPtr err = xmlGetLastError(); | ~~~~~~~~~~~~~~~^~ | | | const xmlError* {aka const _xmlError*} wraplibxml.cpp: In static member function ‘static xmlChar* WrapLibxml::xmlFileNameToURL(const wxString&)’: wraplibxml.cpp:793:21: warning: ‘bool wxFileName::Normalize()’ is deprecated: specify the wanted flags explicitly to avoid surprises [-Wdeprecated-declarations] 793 | fn.Normalize(); | ~~~~~~~~~~~~^~ In file included from wraplibxml.h:40: /usr/include/wx-3.2/wx/filename.h:366:10: note: declared here 366 | bool Normalize() | ^~~~~~~~~ make[1]: *** [Makefile:514: wraplibxml.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/builddir/build/BUILD/xmlcopyeditor-1.2.1.3/src' make: *** [Makefile:319: all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.YNVMZr (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.YNVMZr (%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/xmlcopyeditor.spec