t in enumerated type ‘xmlXPathObjectType’ [-Wswitch] 478 | case XPATH_POINT: | ^~~~ wraplibxml.cpp:489:9: warning: case value ‘6’ not in enumerated type ‘xmlXPathObjectType’ [-Wswitch] 489 | case XPATH_RANGE: | ^~~~ wraplibxml.cpp:490:9: warning: case value ‘7’ not in enumerated type ‘xmlXPathObjectType’ [-Wswitch] 490 | case XPATH_LOCATIONSET: | ^~~~ 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() | ^~~~~~~~~ g++ -DPACKAGE_NAME=\"xmlcopyeditor\" -DPACKAGE_TARNAME=\"xmlcopyeditor\" -DPACKAGE_VERSION=\"1.2.1.3\" -DPACKAGE_STRING=\"xmlcopyeditor\ 1.2.1.3\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"xmlcopyeditor\" -DVERSION=\"1.2.1.3\" -DGETTEXT_PACKAGE=\"xmlcopyeditor\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -I/usr/include/libxml2 -Wall -g -fexceptions -I/usr/lib64/wx/include/gtk3-unicode-3.2 -I/usr/include/wx-3.2 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -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 -fasynchronous-unwind-tables -fno-omit-frame-pointer -Wall -g -fexceptions -I/usr/lib64/wx/include/gtk3-unicode-3.2 -I/usr/include/wx-3.2 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -D__NO_GTK__ -c -o wrapregex.o wrapregex.cpp 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.mHYHtq (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.mHYHtq (%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