| ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:422:119: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 422 | DDCCI_DB_RETURN_IF_RUN(*endptr != 0, 0, _("Can't convert value to int."), cur, {xmlFree(tmp); free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c:422:119: note: include '' or provide a declaration of 'free' 422 | DDCCI_DB_RETURN_IF_RUN(*endptr != 0, 0, _("Can't convert value to int."), cur, {xmlFree(tmp); free(profile); xmlFreeDoc(profile_doc);}); | ^~~~ ddcci.h:127:17: note: in definition of macro 'DDCCI_DB_RETURN_IF_RUN' 127 | run \ | ^~~ conf.c: In function 'ddcci_free_profile': conf.c:533:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 533 | free(profile->filename); | ^~~~ conf.c:533:9: note: include '' or provide a declaration of 'free' ddcci.c: In function 'ddcci_open': ddcci.c:1019:17: warning: '__strncat_chk' output may be truncated copying 3 bytes from a string of length 7 [-Wstringop-truncation] 1019 | strncat(buffer, mon->pnpid, 3); /* copy manufacturer id */ | ^ cc1: some warnings being treated as errors cc1: some warnings being treated as errors make[3]: *** [Makefile:519: conf.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: *** [Makefile:519: monitor_db.lo] Error 1 libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src -DLOCALEDIR=\"/usr/share/locale\" -DDDCPCIDIR=\"/usr/libexec/ddccontrol\" -I/usr/include/libxml2 -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/sysprof-6 -pthread -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 -fcommon -Wall -DDATADIR=\"/usr/share/ddccontrol-db\" -DBINDIR=\"/usr/bin\" -c ddcci.c -o ddcci.o >/dev/null 2>&1 make[3]: Leaving directory '/builddir/build/BUILD/ddccontrol-0.6.1/src/lib' make[2]: *** [Makefile:430: all-recursive] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/ddccontrol-0.6.1/src' make[1]: Leaving directory '/builddir/build/BUILD/ddccontrol-0.6.1/src' make[1]: *** [Makefile:369: all] Error 2 make: *** [Makefile:447: all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.QNV4En (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.QNV4En (%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/ddccontrol.spec