I’ve reinstalled my OS moving to Ubuntu 22.04 and hit an issue with a fresh install of the mod-plugin-builder project’s bootstrap.sh script. To be fair the error is not in the script but in one of the packages which it is pulling into the workdir. So the error is in the C file:
And the error is:
c-stack.c:55:26: error: missing binary operator before token "(" 55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384 | ^~~~~~~~ c-stack.c:135:8: error: variably modified 'buffer' at file scope 135 | char buffer[SIGSTKSZ]; | ^~~~~~
I’ve commented out the whole section of code, which clears the error but I’m not sure that’s not going to make a broken toolchain so don’t want to use that to build my plugins as I might be chasing errors in my plugins but it’s the faulty toolchain which I built:
#ifndef SIGSTKSZ # define SIGSTKSZ 16384 #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384 /* libsigsegv 2.6 through 2.8 have a bug where some architectures use more than the Linux default of an 8k alternate stack when deciding if a fault was caused by stack overflow. */ # undef SIGSTKSZ # define SIGSTKSZ 16384 #endif
So I’m wondering if anyone else has hit that issue and what the recommended fix is? Thanks for any advice.