ions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -DVERSION=\"1.10\" -c -o src/stalld.o src/stalld.c In file included from src/stalld.c:41: src/stalld.h: In function 'sched_setattr': src/stalld.h:103:23: error: '__NR_sched_setattr' undeclared (first use in this function); did you mean 'sched_setattr'? 103 | return syscall(__NR_sched_setattr, pid, attr, flags); | ^~~~~~~~~~~~~~~~~~ | sched_setattr src/stalld.h:103: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:109:24: error: '__NR_sched_getattr' undeclared (first use in this function); did you mean 'sched_getattr'? 109 | return syscall (__NR_sched_getattr, pid , attr, size, flags); | ^~~~~~~~~~~~~~~~~~ | sched_getattr src/stalld.h:110:1: warning: control reaches end of non-void function [-Wreturn-type] 110 | } | ^ src/stalld.h: In function 'sched_setattr': src/stalld.h:104:1: warning: control reaches end of non-void function [-Wreturn-type] 104 | } | ^ make: *** [: src/stalld.o] Error 1 make -C tests VERSION=1.10 CFLAGS="-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -DVERSION=\"1.10\"" LDFLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld " make[1]: Entering directory '/builddir/build/BUILD/stalld-1.10/tests' make[1]: Leaving directory '/builddir/build/BUILD/stalld-1.10/tests' make[1]: Entering directory '/builddir/build/BUILD/stalld-1.10/tests' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -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 -fstack-clash-protection -DVERSION="1.10" -o test01 test01.c -lpthread make[1]: Leaving directory '/builddir/build/BUILD/stalld-1.10/tests' RPM build errors: make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. error: Bad exit status from /var/tmp/rpm-tmp.AK2Haw (%build) Bad exit status from /var/tmp/rpm-tmp.AK2Haw (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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