at-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -fno-strict-aliasing -c sanei_usb.c -fPIC -DPIC -o .libs/sanei_usb.o sanei_usb.c: In function ‘sanei_usb_testing_enable_replay’: sanei_usb.c:509:21: error: implicit declaration of function ‘xmlReadFile’ [-Werror=implicit-function-declaration] 509 | testing_xml_doc = xmlReadFile(testing_xml_path, NULL, 0); | ^~~~~~~~~~~ sanei_usb.c:509:19: warning: assignment to ‘xmlDoc *’ {aka ‘struct _xmlDoc *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 509 | testing_xml_doc = xmlReadFile(testing_xml_path, NULL, 0); | ^ sanei_usb.c: In function ‘sanei_usb_testing_exit’: sanei_usb.c:1326:3: error: implicit declaration of function ‘xmlCleanupParser’ [-Werror=implicit-function-declaration] 1326 | xmlCleanupParser(); | ^~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [Makefile:536: sanei_usb.lo] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/sane-backends-1.2.1/sanei' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/builddir/build/BUILD/sane-backends-1.2.1/sanei' /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../include/sane -D_REENTRANT -DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share -DPATH_SANE_LOCK_DIR=/var/lock -DV_MAJOR=1 -DV_MINOR=2 -I. -I. -I../include -I../include -I/usr/include/libusb-1.0 -I/usr/include/libxml2 -Wall -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -fno-strict-aliasing -c -o sanei_magic.lo sanei_magic.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include/sane -D_REENTRANT -DPATH_SANE_CONFIG_DIR=/etc/sane.d -DPATH_SANE_DATA_DIR=/usr/share -DPATH_SANE_LOCK_DIR=/var/lock -DV_MAJOR=1 -DV_MINOR=2 -I. -I. -I../include -I../include -I/usr/include/libusb-1.0 -I/usr/include/libxml2 -Wall -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -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 -fno-strict-aliasing -c sanei_magic.c -fPIC -DPIC -o .libs/sanei_magic.o make[2]: Leaving directory '/builddir/build/BUILD/sane-backends-1.2.1/sanei' make[1]: *** [Makefile:608: all-recursive] Error 1 make: *** [Makefile:498: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.hiXCod (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.hiXCod (%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/sane-backends.spec