r provide a declaration of 'calloc' 29 | #include "mag_options.h" +++ |+#include 30 | mag.c:1085:10: warning: incompatible implicit declaration of built-in function 'calloc' [-Wbuiltin-declaration-mismatch] 1085 | ms = calloc (1, sizeof (MagScreen)); | ^~~~~~ mag.c:1085:10: note: include '' or provide a declaration of 'calloc' mag.c: In function 'magFiniScreen': mag.c:1190:5: error: implicit declaration of function 'free' [-Werror=implicit-function-declaration] 1190 | free (ms); | ^~~~ mag.c:1190:5: note: include '' or provide a declaration of 'free' mag.c:1190:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] mag.c:1190:5: note: include '' or provide a declaration of 'free' mag.c: In function 'magInitDisplay': mag.c:1209:10: error: implicit declaration of function 'malloc' [-Werror=implicit-function-declaration] 1209 | md = malloc (sizeof (MagDisplay)); | ^~~~~~ mag.c:1209:10: note: include '' or provide a declaration of 'malloc' mag.c:1209:10: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] mag.c:1209:10: note: include '' or provide a declaration of 'malloc' mag.c:1220:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 1220 | free (md); | ^~~~ mag.c:1220:9: note: include '' or provide a declaration of 'free' mag.c: In function 'magFiniDisplay': mag.c:1253:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 1253 | free (md); | ^~~~ mag.c:1253:5: note: include '' or provide a declaration of 'free' libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../include -I/usr/include/libxml2 -I/usr/include/startup-notification-1.0 -I/usr/include/compiz -I/usr/include/uuid -DDATADIR=\"/usr/share/compiz\" -DLIBDIR=\"/usr/lib64\" -DLOCALEDIR=\"/usr/share/locale\" -DIMAGEDIR=\"/usr/share/compiz\" -O2 -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 -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -fno-strict-aliasing -c mag_options.c -o mag_options.o >/dev/null 2>&1 cc1: some warnings being treated as errors make[4]: *** [Makefile:517: mag.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... make[4]: Leaving directory '/builddir/build/BUILD/compiz-plugins-main-v0.8.18/src/mag' make[3]: *** [Makefile:411: all] Error 2 make[3]: Leaving directory '/builddir/build/BUILD/compiz-plugins-main-v0.8.18/src/mag' make[2]: *** [Makefile:442: all-recursive] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/compiz-plugins-main-v0.8.18/src' make[1]: *** [Makefile:553: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/compiz-plugins-main-v0.8.18' make: *** [Makefile:456: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.PqbgUz (%build) Bad exit status from /var/tmp/rpm-tmp.PqbgUz (%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/compiz-plugins-main.spec