es -fstack-clash-protection -D_REENTRANT -DPTHREADS -c -o libemf.lo libemf.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../config -I../include -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 -D_REENTRANT -DPTHREADS -c libemf.cpp -fPIC -DPIC -o .libs/libemf.o BUILDSTDERR: In file included from ../include/libEMF/wine/windef.h:16, BUILDSTDERR: from ../include/libEMF/emf.h:27, BUILDSTDERR: from libemf.h:32, BUILDSTDERR: from libemf.cpp:24: BUILDSTDERR: ../include/libEMF/wine/winnt.h:65:3: error: #error Unknown CPU architecture! BUILDSTDERR: # error Unknown CPU architecture! BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ../include/libEMF/wine/windef.h:16, BUILDSTDERR: from ../include/libEMF/emf.h:27, BUILDSTDERR: from libemf.h:32, BUILDSTDERR: from libemf.cpp:24: BUILDSTDERR: ../include/libEMF/wine/winnt.h:1505: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/libEMF/wine/winnt.h:1508:9: error: 'CONTEXT' does not name a type; did you mean 'CONTEXT86'? BUILDSTDERR: typedef CONTEXT *PCONTEXT; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: CONTEXT86 BUILDSTDERR: ../include/libEMF/wine/winnt.h:2775:3: error: 'PCONTEXT' does not name a type; did you mean 'CONTEXT86'? BUILDSTDERR: PCONTEXT ContextRecord; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: CONTEXT86 BUILDSTDERR: ../include/libEMF/wine/winnt.h:2788:37: error: 'PCONTEXT' has not been declared BUILDSTDERR: PCONTEXT,struct __EXCEPTION_FRAME **); BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: In file included from ../include/libEMF/emf.h:28, BUILDSTDERR: from libemf.h:32, BUILDSTDERR: from libemf.cpp:24: BUILDSTDERR: ../include/libEMF/wine/winbase.h:120:9: error: 'PCONTEXT' does not name a type; did you mean 'CONTEXT86'? BUILDSTDERR: typedef PCONTEXT LPCONTEXT; BUILDSTDERR: ^~~~~~~~ BUILDSTDERR: CONTEXT86 BUILDSTDERR: In file included from ../include/libEMF/emf.h:28, BUILDSTDERR: from libemf.h:32, BUILDSTDERR: from libemf.cpp:24: BUILDSTDERR: ../include/libEMF/wine/winbase.h:1243:44: error: 'CONTEXT' has not been declared BUILDSTDERR: BOOL WINAPI GetThreadContext(HANDLE,CONTEXT *); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: ../include/libEMF/wine/winbase.h:1377:50: error: 'CONTEXT' does not name a type; did you mean 'CONTEXT86'? BUILDSTDERR: BOOL WINAPI SetThreadContext(HANDLE,const CONTEXT *); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: CONTEXT86 make[1]: Leaving directory '/builddir/build/BUILD/libemf-1.0.9/libemf' BUILDSTDERR: make[1]: *** [Makefile:446: libemf.lo] Error 1 BUILDSTDERR: make: *** [Makefile:401: all-recursive] Error 1 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.xkFK2b (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.xkFK2b (%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/libEMF.spec