ide a declaration of ‘free’ core.c:227:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] core.c:227:9: note: include ‘’ or provide a declaration of ‘free’ core.c: In function ‘addFileWatch’: core.c:257:17: error: implicit declaration of function ‘malloc’ [-Werror=implicit-function-declaration] 257 | fileWatch = malloc (sizeof (CompFileWatch)); | ^~~~~~ core.c:257:17: note: include ‘’ or provide a declaration of ‘malloc’ core.c:257:17: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch] core.c:257:17: note: include ‘’ or provide a declaration of ‘malloc’ core.c: In function ‘removeFileWatch’: core.c:301:13: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] 301 | free (w->path); | ^~~~ core.c:301:13: note: include ‘’ or provide a declaration of ‘free’ core.c:303:9: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] 303 | free (w); | ^~~~ core.c:303:9: note: include ‘’ or provide a declaration of ‘free’ gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/startup-notification-1.0 -I/usr/include/libxml2 -I/usr/include/uuid -I../include -I../include -DPLUGINDIR=\"/usr/lib64/compiz\" -DIMAGEDIR=\"/usr/share/compiz\" -DMETADATADIR=\"/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 -D_FORTIFY_SOURCE=2 -c -o texture.o texture.c gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/startup-notification-1.0 -I/usr/include/libxml2 -I/usr/include/uuid -I../include -I../include -DPLUGINDIR=\"/usr/lib64/compiz\" -DIMAGEDIR=\"/usr/share/compiz\" -DMETADATADIR=\"/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 -D_FORTIFY_SOURCE=2 -c -o display.o display.c cc1: some warnings being treated as errors make[2]: *** [Makefile:565: core.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory '/builddir/build/BUILD/compiz-core-v0.8.18/src' make[1]: *** [Makefile:572: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/compiz-core-v0.8.18' make: *** [Makefile:477: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.O3Yufg (%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.O3Yufg (%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/compiz.spec