-pedantic -std=c99 -DHAVE_USB=1 -c -o console.o console.c BUILDSTDERR: utils.c: In function 'progressbar': BUILDSTDERR: utils.c:56:10: warning: non-ISO-standard escape sequence, '\e' BUILDSTDERR: printf("\e[K %3d%% [", pc); BUILDSTDERR: ^~~~~~~~~~~~~~~ cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -DVERSION=\"0.3.9\" -Wall -g -I . -pedantic -std=c99 -DHAVE_USB=1 -c -o squeue/squeue.o squeue/squeue.c BUILDSTDERR: query.c: In function 'get_sw_version': BUILDSTDERR: query.c:359:38: warning: '%s' directive writing up to 1023 bytes into a region of size 1006 [-Wformat-overflow=] BUILDSTDERR: sprintf(strbuf, "Software Version: %s\n", bytes); BUILDSTDERR: ^~ ~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from query.c:22: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 20 and 1043 bytes into a destination of size 1024 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cc1: some warnings being treated as errors BUILDSTDERR: console.c: In function 'cmd_shell': BUILDSTDERR: console.c:110:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: system("/bin/sh"); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: console.c: In function 'console_prompt': BUILDSTDERR: console.c:156:3: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(1, "0xFFFF> ", 8); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: console.c:158:3: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets(line, 1024, stdin); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: console.c:160:4: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write(1, "\n", 1); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: make: *** [: query.o] Error 1 BUILDSTDERR: make: *** Waiting for unfinished jobs.... BUILDSTDERR: squeue/squeue.c: In function 'squeue_open': BUILDSTDERR: squeue/squeue.c:46:3: warning: implicit declaration of function 'chmod' [-Wimplicit-function-declaration] BUILDSTDERR: chmod(file, 0666); BUILDSTDERR: ^~~~~ BUILDSTDERR: squeue/squeue.c:65:6: warning: implicit declaration of function 'usleep'; did you mean 'sleep'? [-Wimplicit-function-declaration] BUILDSTDERR: usleep(100); BUILDSTDERR: ^~~~~~ BUILDSTDERR: sleep BUILDSTDERR: squeue/squeue.c:88:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] BUILDSTDERR: if (((int)pool) == -1) { BUILDSTDERR: ^ make: Leaving directory '/builddir/build/BUILD/0xFFFF-0.3.9/src' BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.girtz2 (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.girtz2 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do 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/0xFFFF.spec