LL, currow, curcol, | ^~~~~ | eval gram.y:972:69: error: implicit declaration of function ‘doseval’; did you mean ‘seval’? [-Werror=implicit-function-declaration] 972 | | S_SEVAL e { doseval($2, currow, curcol, macrofd); } | ^~~~~~~ | seval gram.y:981:70: error: implicit declaration of function ‘dogetkey’ [-Werror=implicit-function-declaration] 981 | | S_GETKEY { dogetkey(); } | ^ gram.y:881:43: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 881 | write(macrofd, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gram.y:887:43: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 887 | write($3, line, strlen(line)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gram.y:999:43: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 999 | system($2); | ^~~~~~~~~~~ gcc -O2 -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 -DSYSV3 -std=gnu89 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -DQREF -DTROFF -DSCNAME=\"SC\" -o scqref qhelp.c gcc -O2 -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 -DSYSV3 -std=gnu89 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -o psc psc.c pvmtbl.o pxmalloc.o cc1: some warnings being treated as errors make: *** [Makefile:444: sc.o] Error 1 make: *** Waiting for unfinished jobs.... cc1: some warnings being treated as errors make: *** [Makefile:453: vi.o] Error 1 cc1: some warnings being treated as errors make: *** [Makefile:418: gram.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.fBelY3 (%build) Bad exit status from /var/tmp/rpm-tmp.fBelY3 (%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/sc.spec