tack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fno-omit-frame-pointer -DVERSION=\"1.16\" -c -o src/stalld.o src/stalld.c In file included from src/stalld.c:40: src/stalld.h: In function ‘sched_setattr’: src/stalld.h:110:23: error: ‘__NR_sched_setattr’ undeclared (first use in this function); did you mean ‘sched_setattr’? 110 | return syscall(__NR_sched_setattr, pid, attr, flags); | ^~~~~~~~~~~~~~~~~~ | sched_setattr src/stalld.h:110:23: note: each undeclared identifier is reported only once for each function it appears in src/stalld.h: In function ‘sched_getattr’: src/stalld.h:116:24: error: ‘__NR_sched_getattr’ undeclared (first use in this function); did you mean ‘sched_getattr’? 116 | return syscall (__NR_sched_getattr, pid , attr, size, flags); | ^~~~~~~~~~~~~~~~~~ | sched_getattr src/stalld.h:117:1: warning: control reaches end of non-void function [-Wreturn-type] 117 | } | ^ src/stalld.h: In function ‘sched_setattr’: src/stalld.h:111:1: warning: control reaches end of non-void function [-Wreturn-type] 111 | } | ^ make: *** [: src/stalld.o] Error 1 make -C tests VERSION=1.16 CFLAGS="-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 -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 -DVERSION=\"1.16\"" LDFLAGS="-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 " make[1]: Entering directory '/builddir/build/BUILD/stalld-1.16/tests' 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 -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 -DVERSION="1.16" -o test01 test01.c -lpthread make[1]: Leaving directory '/builddir/build/BUILD/stalld-1.16/tests' error: Bad exit status from /var/tmp/rpm-tmp.JFRJsh (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.JFRJsh (%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/stalld.spec