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/libpri.spec'], chrootPath='/var/lib/mock/f33-build-246095-50757/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/libpri.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=1564012800 Wrote: /builddir/build/SRPMS/libpri-1.6.0-5.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/libpri.spec'], chrootPath='/var/lib/mock/f33-build-246095-50757/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/libpri.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=1564012800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.kipjyJ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libpri-1.6.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/libpri-1.6.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libpri-1.6.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/sed -ri -e 's@\$\(INSTALL_BASE\)\/lib@/usr/lib64@g' Makefile + /usr/bin/sed -ri -e '\@/sbin\/restorecon@d' Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.JyooEM + umask 022 + cd /builddir/build/BUILD + cd libpri-1.6.0 + make -j4 gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT copy_string.o -MF .copy_string.o.d -MP -c -o copy_string.o copy_string.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri.o -MF .pri.o.d -MP -c -o pri.o pri.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT q921.o -MF .q921.o.d -MP -c -o q921.o q921.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT prisched.o -MF .prisched.o.d -MP -c -o prisched.o prisched.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT q931.o -MF .q931.o.d -MP -c -o q931.o q931.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri_aoc.o -MF .pri_aoc.o.d -MP -c -o pri_aoc.o pri_aoc.c q921.c: In function 'q921_dump': q921.c:1333:71: error: array subscript 0 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 1333 | if ((h->u.ft == 3) && (h->u.m3 == 0) && (h->u.m2 == 0) && (h->u.data[0] == 0x0f)) { | ~~~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:1338:38: error: array subscript 3 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 1338 | type = q921_tei_mgmt2str(h->u.data[3]); | ~~~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:1340:19: error: array subscript 1 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 1340 | ri = (h->u.data[1] << 8) | h->u.data[2]; | ~~~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:1340:40: error: array subscript 2 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 1340 | ri = (h->u.data[1] << 8) | h->u.data[2]; | ~~~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:1342:13: error: array subscript 4 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 1342 | action = &h->u.data[4]; | ^~~~~~~~~~~~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c: In function 'q921_mdl_send.constprop': q921.c:215:9: error: array subscript 0 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 215 | f->data[0] = 0x0f; /* Management entity */ | ~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:216:9: error: array subscript 1 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 216 | f->data[1] = (ri >> 8) & 0xff; | ~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:217:9: error: array subscript 2 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 217 | f->data[2] = ri & 0xff; | ~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:218:9: error: array subscript 3 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 218 | f->data[3] = message; | ~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:219:9: error: array subscript 4 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 219 | f->data[4] = (ai << 1) | 1; | ~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri_cc.o -MF .pri_cc.o.d -MP -c -o pri_cc.o pri_cc.c gcc -g -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -fPIC -O2 -MD -MT pri_facility.o -MF .pri_facility.o.d -MP -c -o pri_facility.o pri_facility.c q921.c: In function 'q921_receive': q921.c:1501:13: error: array subscript 0 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 1501 | if (h->data[0] != 0x0f) { | ~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:1510:13: error: array subscript 3 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 1510 | if (h->data[3] != Q921_TEI_IDENTITY_CHECK_RESPONSE | ~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:1511:15: error: array subscript 4 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 1511 | && !(h->data[4] & 0x01)) { | ~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:1528:15: error: array subscript 1 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 1528 | ri = (h->data[1] << 8) | h->data[2]; | ~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:1528:34: error: array subscript 2 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 1528 | ri = (h->data[1] << 8) | h->data[2]; | ~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:1529:16: error: array subscript 4 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 1529 | tei = (h->data[4] >> 1); | ~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:1531:17: error: array subscript 3 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 1531 | switch (h->data[3]) { | ~~~~~~~^~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ q921.c:1606:12: error: array subscript 4 is outside the bounds of an interior zero-length array 'u_int8_t[0]' {aka 'unsigned char[]'} [-Werror=zero-length-bounds] 1606 | action = &h->data[4]; | ^~~~~~~~~~~ In file included from pri_internal.h:35, from q921.c:38: pri_q921.h:136:11: note: while referencing 'data' 136 | u_int8_t data[0]; /* Any further data */ | ^~~~ cc1: all warnings being treated as errors make: *** [Makefile:189: q921.o] Error 1 make: *** Waiting for unfinished jobs.... q931.c: In function 'q931_receive': q931.c:7688:25: error: array subscript 17 is outside the bounds of an interior zero-length array 'unsigned char[0]' [-Werror=zero-length-bounds] 7688 | h->raw[h->crlen + 2] -= 0x8; | ^~ In file included from pri_internal.h:36, from q931.c:32: pri_q931.h:40:16: note: while referencing 'raw' 40 | unsigned char raw[0]; | ^~~ q931.c:7688:25: error: array subscript 17 is outside the bounds of an interior zero-length array 'unsigned char[0]' [-Werror=zero-length-bounds] 7688 | h->raw[h->crlen + 2] -= 0x8; | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from pri_internal.h:36, from q931.c:32: pri_q931.h:40:16: note: while referencing 'raw' 40 | unsigned char raw[0]; | ^~~ cc1: all warnings being treated as errors make: *** [Makefile:189: q931.o] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.JyooEM (%build) Bad exit status from /var/tmp/rpm-tmp.JyooEM (%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/libpri.spec