72:25: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: #define WRITE(fd, b, l) write(fd, b, l) BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: midi.c:3605:3: note: in expansion of macro 'WRITE' BUILDSTDERR: WRITE(out_fd, p, c[2]); BUILDSTDERR: ^~~~~ BUILDSTDERR: midi.c:172:25: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: #define WRITE(fd, b, l) write(fd, b, l) BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: midi.c:3696:2: note: in expansion of macro 'WRITE' BUILDSTDERR: WRITE(out_fd, c, 3); BUILDSTDERR: ^~~~~ BUILDSTDERR: midi.c:172:25: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: #define WRITE(fd, b, l) write(fd, b, l) BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: midi.c:3546:2: note: in expansion of macro 'WRITE' BUILDSTDERR: WRITE(out_fd, c, 4); BUILDSTDERR: ^~~~~ BUILDSTDERR: midi.c:3700:2: note: in expansion of macro 'WRITELONG' BUILDSTDERR: WRITELONG(len); BUILDSTDERR: ^~~~~~~~~ BUILDSTDERR: midi.c: In function 'midi_load': BUILDSTDERR: midi.c:1285:39: warning: '%d' directive writing between 1 and 3 bytes into a region of size 2 [-Wformat-overflow=] BUILDSTDERR: sprintf(as->u.meter.meter[0].bot, "%d", m2); BUILDSTDERR: ^~ BUILDSTDERR: midi.c:1285:38: note: directive argument in the range [0, 255] BUILDSTDERR: sprintf(as->u.meter.meter[0].bot, "%d", m2); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from midi.c:35: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 4 bytes into a destination of size 2 BUILDSTDERR: return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: midi.c:1392:40: warning: '%d' directive writing between 1 and 3 bytes into a region of size 2 [-Wformat-overflow=] BUILDSTDERR: sprintf(as->u.meter.meter[0].bot, "%d", m2); BUILDSTDERR: ^~ BUILDSTDERR: midi.c:1392:39: note: directive argument in the range [0, 255] BUILDSTDERR: sprintf(as->u.meter.meter[0].bot, "%d", m2); BUILDSTDERR: ^~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:873, BUILDSTDERR: from midi.c:35: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 2 and 4 bytes into a destination of size 2 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: make: *** [: tclabc.o] Error 1 BUILDSTDERR: make: *** Waiting for unfinished jobs.... BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.rPQ0dd (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.rPQ0dd (%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/tclabc.spec