see build https://koji.fedoraproject.org/koji/taskinfo?taskID=36304162 These are the relevant lines in the build log: BUILDSTDERR: CC libmonoutils_la-mono-contmono-error.c:573:1: warning: 'mono_error_prepare_exception_handle' defined but not used [-Wunused-function] BUILDSTDERR: 573 | mono_error_prepare_exception_handle (MonoError *oerror, MonoError *error_out) BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from mono-context.c:10: BUILDSTDERR: mono-context.c: In function 'mono_sigctx_to_monoctx': BUILDSTDERR: ../../mono/utils/mono-sigcontext.h:334:81: error: 'PT_NIP' undeclared (first use in this function) BUILDSTDERR: 334 | #define UCONTEXT_REG_NIP(ctx) (((os_ucontext*)(ctx))->uc_mcontext.gp_regs [PT_NIP]) BUILDSTDERR: | ^~~~~~ BUILDSTDERR: mono-context.c:533:16: note: in expansion of macro 'UCONTEXT_REG_NIP' BUILDSTDERR: 533 | mctx->sc_ir = UCONTEXT_REG_NIP(uc); BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: ../../mono/utils/mono-sigcontext.h:334:81: note: each undeclared identifier is reported only once for each function it appears in BUILDSTDERR: 334 | #define UCONTEXT_REG_NIP(ctx) (((os_ucontext*)(ctx))->uc_mcontext.gp_regs [PT_NIP]) BUILDSTDERR: | ^~~~~~ BUILDSTDERR: mono-context.c:533:16: note: in expansion of macro 'UCONTEXT_REG_NIP' BUILDSTDERR: 533 | mctx->sc_ir = UCONTEXT_REG_NIP(uc); BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: mono-context.c: In function 'mono_monoctx_to_sigctx': BUILDSTDERR: ../../mono/utils/mono-sigcontext.h:334:81: error: 'PT_NIP' undeclared (first use in this function) BUILDSTDERR: 334 | #define UCONTEXT_REG_NIP(ctx) (((os_ucontext*)(ctx))->uc_mcontext.gp_regs [PT_NIP]) BUILDSTDERR: | ^~~~~~ BUILDSTDERR: mono-context.c:549:2: note: in expansion of macro 'UCONTEXT_REG_NIP' BUILDSTDERR: 549 | UCONTEXT_REG_NIP(uc) = mctx->sc_ir; BUILDSTDERR: | ^~~~~~~~~~~~~~~~ BUILDSTDERR: make[5]: *** [Makefile:1370: libmonoutils_la-mono-context.lo] Error 1
this issue might be similar: https://github.com/gperftools/gperftools/issues/1009 but I did not understand what the solution would be.
This is definitely not a problem with mono trunk, sounds like a change in the 5.18 branch, will take a look ...
Seems it builds in Rawhide without changes, according to Koschei. I will close the bug on Monday, if the build succeeds.
It seems something outside of Mono was broken in Rawhide, it is working again.
It could have been caused by the kernel-headers package in Rawhide, it was broken for a short while after introducing 5.3-pre kernels.