8: 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[0]'} [-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[0]'} [-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[0]'} [-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[0]'} [-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[0]'} [-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.YtsqJA (%build) Bad exit status from /var/tmp/rpm-tmp.YtsqJA (%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