c ../airscan-xml.c ../airscan-xml.c: In function ‘xml_rd_parse’: ../airscan-xml.c:126:23: warning: assignment to ‘xmlStructuredErrorFunc’ {aka ‘void (*)(void *, const struct _xmlError *)’} from incompatible pointer type ‘void (*)(void *, xmlError *)’ {aka ‘void (*)(void *, struct _xmlError *)’} [-Wincompatible-pointer-types] 126 | ctxt->sax->serror = xml_rd_error_callback; | ^ ../airscan-xml.c: In function ‘xml_rd_node_value_uint’: ../airscan-xml.c:406:9: error: implicit declaration of function ‘strtoul’; did you mean ‘strtok’? [-Werror=implicit-function-declaration] 406 | v = strtoul(s, &end, 10); | ^~~~~~~ | strtok cc1: some warnings being treated as errors [31/71] gcc -Ilibsane-airscan.so.1.p -I. -I.. -I/usr/include/p11-kit-1 -I/usr/include/libpng16 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -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 -fPIC -pthread -D_REENTRANT -MD -MQ libsane-airscan.so.1.p/airscan-zeroconf.c.o -MF libsane-airscan.so.1.p/airscan-zeroconf.c.o.d -o libsane-airscan.so.1.p/airscan-zeroconf.c.o -c ../airscan-zeroconf.c [32/71] gcc -Ilibsane-airscan.so.1.p -I. -I.. -I/usr/include/p11-kit-1 -I/usr/include/libpng16 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -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 -fPIC -pthread -D_REENTRANT -MD -MQ libsane-airscan.so.1.p/airscan-wsdd.c.o -MF libsane-airscan.so.1.p/airscan-wsdd.c.o.d -o libsane-airscan.so.1.p/airscan-wsdd.c.o -c ../airscan-wsdd.c [33/71] gcc -Ilibsane-airscan.so.1.p -I. -I.. -I/usr/include/p11-kit-1 -I/usr/include/libpng16 -I/usr/include/libxml2 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -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 -fPIC -pthread -D_REENTRANT -MD -MQ libsane-airscan.so.1.p/http_parser.c.o -MF libsane-airscan.so.1.p/http_parser.c.o.d -o libsane-airscan.so.1.p/http_parser.c.o -c ../http_parser.c ninja: build stopped: subcommand failed. INFO: autodetecting backend as ninja INFO: calculating backend command to run: /usr/bin/ninja -C /builddir/build/BUILD/sane-airscan-0.99.27/redhat-linux-build -j 4 -v error: Bad exit status from /var/tmp/rpm-tmp.4tmES9 (%build) Bad exit status from /var/tmp/rpm-tmp.4tmES9 (%build) RPM build errors: 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-airscan.spec