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 libdeltacloud.c -fPIC -DPIC -o .libs/libdeltacloud.o libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2 -Wall -Werror -I../include/libdeltacloud -fno-strict-aliasing -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 image.c -fPIC -DPIC -o .libs/image.o common.c: In function 'set_error_from_xml': common.c:409:8: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers] 409 | last = xmlGetLastError(); | ^ curl_action.c: In function 'do_multipart_post_url': curl_action.c:321:3: error: 'CURLOPT_HTTPPOST' is deprecated: since 7.56.0. Use CURLOPT_MIMEPOST [-Werror=deprecated-declarations] 321 | res = curl_easy_setopt(curl, CURLOPT_HTTPPOST, httppost); | ^~~ In file included from curl_action.h:28, from curl_action.c:25: /usr/include/curl/curl.h:1196:3: note: declared here 1196 | CURLOPTDEPRECATED(CURLOPT_HTTPPOST, CURLOPTTYPE_OBJECTPOINT, 24, | ^~~~~~~~~~~~~~~~~ libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2 -Wall -Werror -I../include/libdeltacloud -fno-strict-aliasing -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 image.c -o image.o >/dev/null 2>&1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/libxml2 -Wall -Werror -I../include/libdeltacloud -fno-strict-aliasing -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 libdeltacloud.c -o libdeltacloud.o >/dev/null 2>&1 cc1: all warnings being treated as errors make[2]: *** [Makefile:496: curl_action.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... cc1: all warnings being treated as errors make[2]: *** [Makefile:496: common.lo] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/libdeltacloud-0.9/src' make[1]: *** [Makefile:473: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/libdeltacloud-0.9' make: *** [Makefile:380: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.D7OgX7 (%build) RPM build warnings: RPM build errors: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.D7OgX7 (%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/libdeltacloud.spec