^ profiler/inc/pal.h:2421:41: error: unknown type name 'CONTEXT' 2421 | PALIMPORT BOOL PALAPI PAL_VirtualUnwind(CONTEXT *context, KNONVOLATILE_CONTEXT_POINTERS *contextPointers); | ^ profiler/inc/pal.h:2421:59: error: unknown type name 'KNONVOLATILE_CONTEXT_POINTERS' 2421 | PALIMPORT BOOL PALAPI PAL_VirtualUnwind(CONTEXT *context, KNONVOLATILE_CONTEXT_POINTERS *contextPointers); | ^ profiler/inc/pal.h:2423:50: error: unknown type name 'CONTEXT' 2423 | PALIMPORT BOOL PALAPI PAL_VirtualUnwindOutOfProc(CONTEXT *context, KNONVOLATILE_CONTEXT_POINTERS *contextPointers, PULONG64 functionStart, SIZE_T baseAddress, UnwindReadMemoryCallback readMemoryCallback); | ^ profiler/inc/pal.h:2423:68: error: unknown type name 'KNONVOLATILE_CONTEXT_POINTERS' 2423 | PALIMPORT BOOL PALAPI PAL_VirtualUnwindOutOfProc(CONTEXT *context, KNONVOLATILE_CONTEXT_POINTERS *contextPointers, PULONG64 functionStart, SIZE_T baseAddress, UnwindReadMemoryCallback readMemoryCallback); | ^ profiler/inc/pal.h:2458:2: warning: [-W#warnings] 2458 | #warning | ^ profiler/inc/pal.h:2459:2: error: PAL_CS_NATIVE_DATA_SIZE is not defined for this architecture 2459 | #error PAL_CS_NATIVE_DATA_SIZE is not defined for this architecture | ^ profiler/inc/pal.h:2477:34: error: use of undeclared identifier 'PAL_CS_NATIVE_DATA_SIZE' 2477 | BYTE rgNativeDataStorage[PAL_CS_NATIVE_DATA_SIZE]; | ^ profiler/inc/pal.h:2939:5: error: unknown type name 'PCONTEXT' 2939 | PCONTEXT ContextRecord; | ^ profiler/inc/pal.h:3096:8: error: unknown type name 'PCONTEXT' 3096 | IN PCONTEXT pContextRecord, | ^ profiler/inc/pal.h:3667:6: error: unknown type name 'PCONTEXT' 3667 | IN PCONTEXT ContextRecord, | ^ profiler/inc/pal.h:3675:7: error: unknown type name 'PCONTEXT' 3675 | OUT PCONTEXT ContextRecord | ^ profiler/inc/pal.h:3683:40: error: unknown type name 'CONTEXT' 3683 | typedef void (*PAL_ActivationFunction)(CONTEXT *context); | ^ profiler/inc/pal.h:4429:6: error: unknown type name 'CONTEXT' 4429 | IN CONTEXT *contextRecord); | ^ profiler/inc/pal.h:4471:58: error: unknown type name 'CONTEXT' 4471 | PAL_SEHException(EXCEPTION_RECORD *pExceptionRecord, CONTEXT *pContextRecord, bool onStack = false) | ^ profiler/inc/pal.h:4519:5: error: unknown type name 'CONTEXT' 4519 | CONTEXT* GetContextRecord() | ^ profiler/inc/pal.h:4554:59: error: unknown type name 'PCONTEXT' 4554 | typedef BOOL (*PHARDWARE_EXCEPTION_SAFETY_CHECK_FUNCTION)(PCONTEXT contextRecord, PEXCEPTION_RECORD exceptionRecord); | ^ profiler/inc/pal.h:4575:8: error: unknown type name 'CONTEXT' 4575 | IN CONTEXT* context, | ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 1 warning and 20 errors generated. make: *** [Makefile:57: obj/ProcDumpProfiler.so] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.04lygE (%build) Bad exit status from /var/tmp/rpm-tmp.04lygE (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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/procdump.spec