s -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 -o ib.o ib.c make[2]: Leaving directory '/builddir/build/BUILD/srcpd-2.1.6/src' ib.c: In function ‘readConfig_IB’: ib.c:58:35: error: implicit declaration of function ‘malloc’ [-Werror=implicit-function-declaration] 58 | buses[busnumber].driverdata = malloc(sizeof(struct _IB_DATA)); | ^~~~~~ ib.c:47:1: note: include ‘’ or provide a declaration of ‘malloc’ 46 | #include "ttycygwin.h" +++ |+#include 47 | ib.c:58:35: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch] 58 | buses[busnumber].driverdata = malloc(sizeof(struct _IB_DATA)); | ^~~~~~ ib.c:58:35: note: include ‘’ or provide a declaration of ‘malloc’ ib.c:97:35: error: implicit declaration of function ‘atoi’ [-Werror=implicit-function-declaration] 97 | __ib->number_fb = atoi((char *) txt); | ^~~~ ib.c: In function ‘end_bus_thread’: ib.c:1005:5: error: implicit declaration of function ‘free’ [-Werror=implicit-function-declaration] 1005 | free(buses[btd->bus].driverdata); | ^~~~ ib.c:1005:5: note: include ‘’ or provide a declaration of ‘free’ ib.c:1005:5: warning: incompatible implicit declaration of built-in function ‘free’ [-Wbuiltin-declaration-mismatch] ib.c:1005:5: note: include ‘’ or provide a declaration of ‘free’ ib.c: In function ‘thr_sendrec_IB’: ib.c:1819:42: warning: incompatible implicit declaration of built-in function ‘malloc’ [-Wbuiltin-declaration-mismatch] 1819 | bus_thread_t *btd = (bus_thread_t *) malloc(sizeof(bus_thread_t)); | ^~~~~~ ib.c:1819:42: note: include ‘’ or provide a declaration of ‘malloc’ ib.c: In function ‘init_bus_IB’: ib.c:804:25: warning: ‘__builtin___strncat_chk’ specified bound depends on the length of the source argument [-Wstringop-overflow=] 804 | strncat(line, buffer, strlen(buffer)); | ^ In function ‘show_firmware_version’, inlined from ‘init_lineIB’ at ib.c:911:5, inlined from ‘init_bus_IB’ at ib.c:964:22: ib.c:803:40: note: length computed here 803 | if (strlen(line) + strlen(buffer) < sizeof(line)) | ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors make[2]: *** [Makefile:518: ib.o] Error 1 make[1]: *** [Makefile:367: all] Error 2 make: *** [Makefile:439: all-recursive] Error 1 RPM build warnings: RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.IVMB31 (%build) %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.IVMB31 (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/srcpd.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 598, 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 --noclean --target riscv64 --nodeps /builddir/build/SPECS/srcpd.spec