I get the following compilation error when trying to compile emacs from the master branch at the currently latest version 80098a2830cafe0a09f18c5186bf670a91828fef
I am using Ubuntu 20.04 on an x86_64 system. I'm using gcc 10.3.0
Here is the error in detail:
seccomp-filter.c: In function ‘main’:
seccomp-filter.c:243:25: error: ‘__SNR_faccessat2’ undeclared (first use in this function)
243 | RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
| ^~~~~~~~
seccomp-filter.c:121:60: note: in definition of macro ‘RULE’
121 | int status = seccomp_rule_add_array (ctx, (action), (syscall), \
| ^~~~~~~
seccomp-filter.c:243:25: note: each undeclared identifier is reported only once for each function it appears in
243 | RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
| ^~~~~~~~
seccomp-filter.c:121:60: note: in definition of macro ‘RULE’
121 | int status = seccomp_rule_add_array (ctx, (action), (syscall), \
| ^~~~~~~
make[1]: *** [Makefile:459: seccomp-filter] Error 1
...
...