ototypes -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 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-header.o `test -f 'src/header.c' || echo '../'`src/header.c In file included from ../include/winnt.h:24, from ../include/windef.h:279, from ../src/hash.c:24: ../include/basetsd.h:317:3: error: #error Unknown CPU architecture! 317 | # error Unknown CPU architecture! | ^~~~~ In file included from ../include/windef.h:279, from ../src/hash.c:24: ../include/winnt.h:2142:2: error: #error You need to define a CONTEXT for your CPU 2142 | #error You need to define a CONTEXT for your CPU | ^~~~~ ../include/winnt.h:2145:9: error: unknown type name 'CONTEXT' 2145 | typedef CONTEXT *PCONTEXT; | ^~~~~~~ ../include/winnt.h:2147:40: error: unknown type name 'CONTEXT'; did you mean 'PCONTEXT'? 2147 | NTSYSAPI void WINAPI RtlCaptureContext(CONTEXT*); | ^~~~~~~ | PCONTEXT In file included from ../src/hash.c:25: ../include/winbase.h:2249:55: error: unknown type name 'CONTEXT'; did you mean 'PCONTEXT'? 2249 | WINBASEAPI BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *); | ^~~~~~~ | PCONTEXT ../include/winbase.h:2614:61: error: unknown type name 'CONTEXT' 2614 | WINBASEAPI BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *); | ^~~~~~~ make: *** [Makefile:619: src/widl-hash.o] Error 1 make: *** Waiting for unfinished jobs.... error: Bad exit status from /var/tmp/rpm-tmp.PZLYmA (%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.PZLYmA (%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