.. yes checking for atexit... yes checking for gettimeofday... yes checking for getopt_long_only... yes checking for memmove... yes checking for memset... yes checking for mkstemps... yes checking for strcasecmp... yes checking for strchr... yes checking for strdup... yes checking for strerror... yes checking for strncasecmp... yes checking for strrchr... yes checking for strtol... yes checking for strtoul... yes checking for strtoull... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating include/config.h config.status: executing depfiles commands 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 -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 -c -o src/widl-pathtools.o `test -f 'src/pathtools.c' || echo '../'`src/pathtools.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 -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 -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 -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 -c -o src/widl-expr.o `test -f 'src/expr.c' || echo '../'`src/expr.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 -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 -c -o src/widl-hash.o `test -f 'src/hash.c' || echo '../'`src/hash.c RPM build errors: BUILDSTDERR: Macro expanded in comment on line 3: (echo %snapshot_rev | cut -c1-6) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.WqLcPQ (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 700, 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/mingw-w64-tools.spec