G_H -I. -I.. -I./include -I../include -DDEFAULT_INCLUDE_DIR=\"/usr/i686-w64-mingw32/sys-root/mingw/include\" -DDEFAULT_BINDIR=\"/usr/bin\" -O3 -g -Wall -Wformat -Wpacked -Wmissing-declarations -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-aliasing=2 -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 -c -o src/widl-pathtools.o `test -f 'src/pathtools.c' || echo '../'`src/pathtools.c ../src/pathtools.c: In function 'pathlist_relocation': ../src/pathtools.c:545:10: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 545 | return (to_path_list); | ^ In file included from /usr/include/string.h:519, from ../src/pathtools.c:18: In function 'strncpy', inlined from 'get_relative_path' at ../src/pathtools.c:140:3: /usr/include/bits/string_fortified.h:91:10: warning: 'strncpy' accessing 0 or more bytes at offsets 2 and 0 may overlap up to 18446744073709551612 bytes at offset [2, 9223372036854775807] [-Wrestrict] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/pathtools.c: In function 'get_relocated_path_list': ../src/pathtools.c:493:13: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 493 | result[0] = '\0'; | ~~~~~~~~~~^~~~~~ ../src/pathtools.c:488:28: note: at offset 0 to an object with size 0 allocated by 'malloc' here 488 | char * result = (char *) malloc (result_size); | ^~~~~~~~~~~~~~~~~~~~ gcc -DHAVE_CONFIG_H -I. -I.. -I./include -I../include -DDEFAULT_INCLUDE_DIR=\"/usr/i686-w64-mingw32/sys-root/mingw/include\" -DDEFAULT_BINDIR=\"/usr/bin\" -O3 -g -Wall -Wformat -Wpacked -Wmissing-declarations -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-aliasing=2 -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 -c -o src/widl-client.o `test -f 'src/client.c' || echo '../'`src/client.c gcc -DHAVE_CONFIG_H -I. -I.. -I./include -I../include -DDEFAULT_INCLUDE_DIR=\"/usr/i686-w64-mingw32/sys-root/mingw/include\" -DDEFAULT_BINDIR=\"/usr/bin\" -O3 -g -Wall -Wformat -Wpacked -Wmissing-declarations -Wimplicit-function-declaration -Wmissing-prototypes -Wstrict-aliasing=2 -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 -c -o src/widl-expr.o `test -f 'src/expr.c' || echo '../'`src/expr.c error: Bad exit status from /var/tmp/rpm-tmp.ZR4f0B (%build) RPM build errors: Macro expanded in comment on line 3: (echo %snapshot_rev | cut -c1-6) Bad exit status from /var/tmp/rpm-tmp.ZR4f0B (%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/mingw-w64-tools.spec