Can't compile osmc for RPI3

I’m trying to make an osmc installer for a raspberry pi 3B+, but I’m getting an error when building host-m4 1.4.18. The error is as follows:

In file included from /usr/include/signal.h:328,
                 from ./signal.h:52,
                 from c-stack.c:49:
c-stack.c:55:26: error: missing binary operator before token "("
   55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
      |                          ^~~~~~~~

This Stack Overflow post suggests updating Buildroot as a workaround. However, setting BUILDROOT_VERSION="2022.11" in installer/target/build.sh gives me the error

Applying patch all-000-add-osmc-package.patch
patching file package/Config.in
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file package/Config.in.rej
patching file package/osmc/Config.in
patching file package/osmc/osmc.mk
Exiting build with return code 1

I’m not sure where to go from here. This feels like a bug to me, but I’ve never built a kernel before, so it’s possible I’m missing an essential package or making a mistake somewhere. I’ve installed build-essentials, libssl-dev, and other essential packages on my main system, built and installed the armv7-toolchain, and run make rbp2. I’m working from a machine running Ubuntu 22.04

Haven’t tested on Ubuntu 22.04, but it should be working fine on Debian, which OSMC is based on.

Thanks - I’ll give it a shot.