Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/stalld.spec'], chrootPath='/var/lib/mock/f33-build-408914-62747/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/stalld.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1607644800 Wrote: /builddir/build/SRPMS/stalld-1.4-1.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/stalld.spec'], chrootPath='/var/lib/mock/f33-build-408914-62747/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/stalld.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1607644800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.a6XySh + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf stalld-1.4 + /usr/bin/xz -dc /builddir/build/SOURCES/stalld-1.4.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd stalld-1.4 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.vJvekh + umask 022 + cd /builddir/build/BUILD + cd stalld-1.4 + /usr/bin/make -O -j4 V=1 VERBOSE=1 '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 -DVERSION=\"1.4\"' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' 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 -DVERSION=\"1.4\" -c -o src/throttling.o src/throttling.c In file included from src/throttling.c:31: src/stalld.h: In function 'sched_setattr': src/stalld.h:72:23: error: '__NR_sched_setattr' undeclared (first use in this function); did you mean 'sched_setattr'? 72 | return syscall(__NR_sched_setattr, pid, attr, flags); | ^~~~~~~~~~~~~~~~~~ | sched_setattr src/stalld.h:72: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:78:24: error: '__NR_sched_getattr' undeclared (first use in this function); did you mean 'sched_getattr'? 78 | return syscall (__NR_sched_getattr, pid , attr, size, flags); | ^~~~~~~~~~~~~~~~~~ | sched_getattr make: *** [: src/throttling.o] Error 1 make: *** Waiting for unfinished jobs.... 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 -DVERSION=\"1.4\" -c -o src/utils.o src/utils.c In file included from src/utils.c:30: src/stalld.h: In function 'sched_setattr': src/stalld.h:72:23: error: '__NR_sched_setattr' undeclared (first use in this function); did you mean 'sched_setattr'? 72 | return syscall(__NR_sched_setattr, pid, attr, flags); | ^~~~~~~~~~~~~~~~~~ | sched_setattr src/stalld.h:72: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:78:24: error: '__NR_sched_getattr' undeclared (first use in this function); did you mean 'sched_getattr'? 78 | return syscall (__NR_sched_getattr, pid , attr, size, flags); | ^~~~~~~~~~~~~~~~~~ | sched_getattr make: *** [: src/utils.o] Error 1 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 -DVERSION=\"1.4\" -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:72:23: error: '__NR_sched_setattr' undeclared (first use in this function); did you mean 'sched_setattr'? 72 | return syscall(__NR_sched_setattr, pid, attr, flags); | ^~~~~~~~~~~~~~~~~~ | sched_setattr src/stalld.h:72: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:78:24: error: '__NR_sched_getattr' undeclared (first use in this function); did you mean 'sched_getattr'? 78 | return syscall (__NR_sched_getattr, pid , attr, size, flags); | ^~~~~~~~~~~~~~~~~~ | sched_getattr src/stalld.h:79:1: warning: control reaches end of non-void function [-Wreturn-type] 79 | } | ^ src/stalld.h: In function 'sched_setattr': src/stalld.h:73:1: warning: control reaches end of non-void function [-Wreturn-type] 73 | } | ^ make: *** [: src/stalld.o] Error 1 make -C tests VERSION=1.4 make[1]: Entering directory '/builddir/build/BUILD/stalld-1.4/tests' make[1]: Leaving directory '/builddir/build/BUILD/stalld-1.4/tests' make[1]: Entering directory '/builddir/build/BUILD/stalld-1.4/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 -DVERSION=\"1.4\" -o test01 test01.c -lpthread make[1]: Leaving directory '/builddir/build/BUILD/stalld-1.4/tests' make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.vJvekh (%build) Bad exit status from /var/tmp/rpm-tmp.vJvekh (%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