ybe-uninitialized $(pkg-config --cflags libtracefs) -c -o src/osnoise_hist.o src/osnoise_hist.c gcc -O -g -DVERSION=\"5.18.4\" -flto=auto -ffat-lto-objects -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -Wno-maybe-uninitialized $(pkg-config --cflags libtracefs) -c -o src/osnoise_top.o src/osnoise_top.c gcc -O -g -DVERSION=\"5.18.4\" -flto=auto -ffat-lto-objects -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -Wno-maybe-uninitialized $(pkg-config --cflags libtracefs) -c -o src/rtla.o src/rtla.c gcc -O -g -DVERSION=\"5.18.4\" -flto=auto -ffat-lto-objects -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -Wno-maybe-uninitialized $(pkg-config --cflags libtracefs) -c -o src/timerlat.o src/timerlat.c gcc -O -g -DVERSION=\"5.18.4\" -flto=auto -ffat-lto-objects -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -Wno-maybe-uninitialized $(pkg-config --cflags libtracefs) -c -o src/timerlat_hist.o src/timerlat_hist.c gcc -O -g -DVERSION=\"5.18.4\" -flto=auto -ffat-lto-objects -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -Wno-maybe-uninitialized $(pkg-config --cflags libtracefs) -c -o src/timerlat_top.o src/timerlat_top.c gcc -O -g -DVERSION=\"5.18.4\" -flto=auto -ffat-lto-objects -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -Wno-maybe-uninitialized $(pkg-config --cflags libtracefs) -c -o src/trace.o src/trace.c gcc -O -g -DVERSION=\"5.18.4\" -flto=auto -ffat-lto-objects -fexceptions -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -Wno-maybe-uninitialized $(pkg-config --cflags libtracefs) -c -o src/utils.o src/utils.c src/utils.c: In function 'sched_setattr': src/utils.c:242:17: error: '__NR_sched_setattr' undeclared (first use in this function); did you mean 'sched_setattr'? 242 | return syscall(__NR_sched_setattr, pid, attr, flags); | ^~~~~~~~~~~~~~~~~~ | sched_setattr src/utils.c:242:17: note: each undeclared identifier is reported only once for each function it appears in src/utils.c: In function 'sched_getattr': src/utils.c:248:17: error: '__NR_sched_getattr' undeclared (first use in this function); did you mean 'sched_getattr'? 248 | return syscall(__NR_sched_getattr, pid, attr, size, flags); | ^~~~~~~~~~~~~~~~~~ | sched_getattr src/utils.c: In function 'sched_setattr': src/utils.c:243:1: warning: control reaches end of non-void function [-Wreturn-type] 243 | } | ^ make: *** [: src/utils.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.QcjSE7 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.QcjSE7 (%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/kernel-tools.spec