I'm getting this error when building:
nsterm.m:6225:3: error: call to undeclared function 'safe_calln'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
safe_calln (Qrun_hook_with_args,
^
1 error generated.
I used the latest commit from the Emacs 29 branch, 2f98b13. I also got the same error with a commit from a few weeks ago.
I'm on Sonoma 14.0, M1 machine.