widl-hash.o `test -f 'src/hash.c' || echo '../'`src/hash.c BUILDSTDERR: In file included from ../include/winnt.h:24, BUILDSTDERR: from ../include/windef.h:252, BUILDSTDERR: from ../src/hash.c:24: 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/hash.c:24: 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: ../src/pathtools.c: In function 'pathlist_relocation': BUILDSTDERR: ../src/pathtools.c:549:10: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] BUILDSTDERR: return (to_path_list); BUILDSTDERR: ^ BUILDSTDERR: ../src/expr.c: In function 'resolve_expression': BUILDSTDERR: ../src/expr.c:570:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: if (!result.is_variable) BUILDSTDERR: ^~ BUILDSTDERR: ../src/expr.c:574:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: result.is_variable = FALSE; BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from ../src/hash.c:25: 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:534: src/widl-hash.o] Error 1 BUILDSTDERR: make: *** Waiting for unfinished jobs.... BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from ../src/pathtools.c:18: BUILDSTDERR: In function 'strncpy', BUILDSTDERR: inlined from 'get_relative_path' at ../src/pathtools.c:142:3: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' accessing 0 or more bytes at offsets 2 and 0 may overlap up to 18446744073709551612 bytes at offset [2, 9223372036854775807] [-Wrestrict] BUILDSTDERR: return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.Rd6liX (%build) BUILDSTDERR: Macro expanded in comment on line 3: (echo %snapshot_rev | cut -c1-6) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.Rd6liX (%build) RPM build errors: 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