rror=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-typegen.o `test -f 'src/typegen.c' || echo '../'`src/typegen.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\" -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-typelib.o `test -f 'src/typelib.c' || echo '../'`src/typelib.c BUILDSTDERR: In file included from ../include/winnt.h:24, BUILDSTDERR: from ../include/windef.h:252, BUILDSTDERR: from ../src/typelib.c:38: BUILDSTDERR: ../include/basetsd.h:321:3: error: #error Unknown CPU architecture! BUILDSTDERR: # error Unknown CPU architecture! BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ../include/windef.h:252, BUILDSTDERR: from ../src/typelib.c:38: BUILDSTDERR: ../include/winnt.h:2050:2: error: #error You need to define a CONTEXT for your CPU BUILDSTDERR: #error You need to define a CONTEXT for your CPU BUILDSTDERR: ^~~~~ BUILDSTDERR: ../include/winnt.h:2053:9: error: unknown type name 'CONTEXT' BUILDSTDERR: typedef CONTEXT *PCONTEXT; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: ../include/winnt.h:2055:40: error: unknown type name 'CONTEXT'; did you mean 'PCONTEXT'? BUILDSTDERR: NTSYSAPI void WINAPI RtlCaptureContext(CONTEXT*); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: PCONTEXT BUILDSTDERR: In file included from ../src/typelib.c:39: BUILDSTDERR: ../include/winbase.h:1876:55: error: unknown type name 'CONTEXT'; did you mean 'PCONTEXT'? BUILDSTDERR: WINBASEAPI BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: PCONTEXT BUILDSTDERR: ../include/winbase.h:2221:61: error: unknown type name 'CONTEXT' BUILDSTDERR: WINBASEAPI BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: make: *** [Makefile:688: src/widl-typelib.o] Error 1 BUILDSTDERR: make: *** Waiting for unfinished jobs.... BUILDSTDERR: ../src/typegen.c: In function 'get_required_buffer_size_type': BUILDSTDERR: ../src/typegen.c:3695:16: warning: 'uname' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: return get_required_buffer_size_type(utype, uname, NULL, FALSE, alignment); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.1y9ZGU (%build) BUILDSTDERR: Macro expanded in comment on line 3: (echo %snapshot_rev | cut -c1-6) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.1y9ZGU (%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/mingw-w64-tools.spec