emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build failure: 'seccomp-filter'


From: Colin Baxter
Subject: Re: Build failure: 'seccomp-filter'
Date: Sun, 11 Apr 2021 08:50:48 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

>>>>> Eli Zaretskii <eliz@gnu.org> writes:

    >> From: Colin Baxter <m43cap@yandex.com> Cc: Date: Sun, 11 Apr 2021
    >> 07:45:19 +0100
    >> 
    >> I get a build with the latest pull of emacs:
    >> 
    >> Makefile:415: recipe for target 'seccomp-filter' failed make[1]:
    >> *** [seccomp-filter] Error 1 make[1]: Leaving directory
    >> '/home/redknight/git/emacs/lib-src' Makefile:396: recipe for
    >> target 'lib-src' failed make: *** [lib-src] Error 2

    > Are there no error or warning messages before the "Makefile:415"
    > one?  If there are, please show all the messages.

Yes, sorry, I missed the earlier errors. Here is the full list beginning
after the attempt to compile seccomp-filter:

---------- Begin error list ------------

  CCLD     seccomp-filter
seccomp-filter.c: In function ‘main’:
seccomp-filter.c:142:23: error: ‘SCMP_ACT_KILL_PROCESS’ undeclared (first use 
in this function)
   ctx = seccomp_init (SCMP_ACT_KILL_PROCESS);
                       ^~~~~~~~~~~~~~~~~~~~~
seccomp-filter.c:142:23: note: each undeclared identifier is reported only once 
for each function it appears in
seccomp-filter.c:151:18: error: ‘SCMP_FLTATR_CTL_LOG’ undeclared (first use in 
this function)
   set_attribute (SCMP_FLTATR_CTL_LOG, 0);
                  ^~~~~~~~~~~~~~~~~~~
In file included from seccomp-filter.c:55:0:
../lib/verify.h:213:41: error: static assertion failed: "verify (sizeof (void 
*) == 8)"
 # define _GL_VERIFY(R, DIAGNOSTIC, ...) _Static_assert (R, DIAGNOSTIC)
                                         ^
../lib/verify.h:273:20: note: in expansion of macro ‘_GL_VERIFY’
 # define verify(R) _GL_VERIFY (R, "verify (" #R ")", -)
                    ^~~~~~~~~~
seccomp-filter.c:156:3: note: in expansion of macro ‘verify’
   verify (sizeof (void *) == 8);
   ^~~~~~
seccomp-filter.c:169:9: warning: implicit declaration of function ‘SCMP_A2_32’ 
[-Wimplicit-function-declaration]
         SCMP_A2_32 (SCMP_CMP_MASKED_EQ,
         ^
seccomp-filter.c:105:48: note: in definition of macro ‘RULE’
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                                ^~~~~~~~~~~
seccomp-filter.c:105:20: warning: nested extern declaration of ‘SCMP_A2_32’ 
[-Wnested-externs]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                    ^
seccomp-filter.c:168:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (mmap),
   ^~~~
seccomp-filter.c:174:9: warning: implicit declaration of function ‘SCMP_A3_32’ 
[-Wimplicit-function-declaration]
         SCMP_A3_32 (SCMP_CMP_MASKED_EQ,
         ^
seccomp-filter.c:105:48: note: in definition of macro ‘RULE’
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                                ^~~~~~~~~~~
seccomp-filter.c:105:20: warning: nested extern declaration of ‘SCMP_A3_32’ 
[-Wnested-externs]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                    ^
seccomp-filter.c:168:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (mmap),
   ^~~~
seccomp-filter.c:105:47: warning: missing braces around initializer 
[-Wmissing-braces]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:168:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (mmap),
   ^~~~
seccomp-filter.c:105:47: note: (near initialization for ‘arg_array’)
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:168:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (mmap),
   ^~~~
seccomp-filter.c:105:47: warning: missing braces around initializer 
[-Wmissing-braces]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:179:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (mmap),
   ^~~~
seccomp-filter.c:105:47: note: (near initialization for ‘arg_array’)
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:179:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (mmap),
   ^~~~
seccomp-filter.c:105:47: warning: missing braces around initializer 
[-Wmissing-braces]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:189:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (mprotect),
   ^~~~
seccomp-filter.c:105:47: note: (near initialization for ‘arg_array’)
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:189:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (mprotect),
   ^~~~
seccomp-filter.c:196:9: warning: implicit declaration of function ‘SCMP_A1_32’ 
[-Wimplicit-function-declaration]
         SCMP_A1_32 (SCMP_CMP_EQ, FUTEX_WAKE_PRIVATE));
         ^
seccomp-filter.c:105:48: note: in definition of macro ‘RULE’
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                                ^~~~~~~~~~~
seccomp-filter.c:105:20: warning: nested extern declaration of ‘SCMP_A1_32’ 
[-Wnested-externs]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                    ^
seccomp-filter.c:195:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (futex),
   ^~~~
seccomp-filter.c:105:47: warning: missing braces around initializer 
[-Wmissing-braces]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:195:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (futex),
   ^~~~
seccomp-filter.c:105:47: note: (near initialization for ‘arg_array’)
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:195:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (futex),
   ^~~~
seccomp-filter.c:105:47: warning: missing braces around initializer 
[-Wmissing-braces]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:238:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (open),
   ^~~~
seccomp-filter.c:105:47: note: (near initialization for ‘arg_array’)
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:238:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (open),
   ^~~~
seccomp-filter.c:105:47: warning: missing braces around initializer 
[-Wmissing-braces]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:243:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (openat),
   ^~~~
seccomp-filter.c:105:47: note: (near initialization for ‘arg_array’)
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:243:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (openat),
   ^~~~
seccomp-filter.c:251:9: warning: implicit declaration of function ‘SCMP_A0_32’ 
[-Wimplicit-function-declaration]
         SCMP_A0_32 (SCMP_CMP_EQ, STDIN_FILENO),
         ^
seccomp-filter.c:105:48: note: in definition of macro ‘RULE’
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                                ^~~~~~~~~~~
seccomp-filter.c:105:20: warning: nested extern declaration of ‘SCMP_A0_32’ 
[-Wnested-externs]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                    ^
seccomp-filter.c:250:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (ioctl),
   ^~~~
seccomp-filter.c:105:47: warning: missing braces around initializer 
[-Wmissing-braces]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:250:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (ioctl),
   ^~~~
seccomp-filter.c:105:47: note: (near initialization for ‘arg_array’)
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:250:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (ioctl),
   ^~~~
seccomp-filter.c:105:47: warning: missing braces around initializer 
[-Wmissing-braces]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:255:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (fcntl),
   ^~~~
seccomp-filter.c:105:47: note: (near initialization for ‘arg_array’)
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:255:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (fcntl),
   ^~~~
seccomp-filter.c:105:47: warning: missing braces around initializer 
[-Wmissing-braces]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:257:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (fcntl64),
   ^~~~
seccomp-filter.c:105:47: note: (near initialization for ‘arg_array’)
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:257:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (fcntl64),
   ^~~~
seccomp-filter.c:274:9: warning: implicit declaration of function ‘SCMP_A2_64’ 
[-Wimplicit-function-declaration]
         SCMP_A2_64 (SCMP_CMP_EQ, 0) /* new_limit == NULL */);
         ^
seccomp-filter.c:105:48: note: in definition of macro ‘RULE’
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                                ^~~~~~~~~~~
seccomp-filter.c:105:20: warning: nested extern declaration of ‘SCMP_A2_64’ 
[-Wnested-externs]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                    ^
seccomp-filter.c:272:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (prlimit64),
   ^~~~
seccomp-filter.c:105:47: warning: missing braces around initializer 
[-Wmissing-braces]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:272:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (prlimit64),
   ^~~~
seccomp-filter.c:105:47: note: (near initialization for ‘arg_array’)
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:272:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (prlimit64),
   ^~~~
seccomp-filter.c:105:47: warning: missing braces around initializer 
[-Wmissing-braces]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:277:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ERRNO (EPERM), SCMP_SYS (prlimit64),
   ^~~~
seccomp-filter.c:105:47: note: (near initialization for ‘arg_array’)
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:277:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ERRNO (EPERM), SCMP_SYS (prlimit64),
   ^~~~
seccomp-filter.c:294:9: warning: implicit declaration of function ‘SCMP_A0_64’ 
[-Wimplicit-function-declaration]
         SCMP_A0_64 (SCMP_CMP_MASKED_EQ,
         ^
seccomp-filter.c:105:48: note: in definition of macro ‘RULE’
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                                ^~~~~~~~~~~
seccomp-filter.c:105:20: warning: nested extern declaration of ‘SCMP_A0_64’ 
[-Wnested-externs]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                    ^
seccomp-filter.c:293:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (clone),
   ^~~~
seccomp-filter.c:105:47: warning: missing braces around initializer 
[-Wmissing-braces]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:293:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (clone),
   ^~~~
seccomp-filter.c:105:47: note: (near initialization for ‘arg_array’)
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:293:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (clone),
   ^~~~
seccomp-filter.c:105:47: warning: missing braces around initializer 
[-Wmissing-braces]
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:306:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (prctl),
   ^~~~
seccomp-filter.c:105:47: note: (near initialization for ‘arg_array’)
       const struct scmp_arg_cmp arg_array[] = {__VA_ARGS__};         \
                                               ^
seccomp-filter.c:306:3: note: in expansion of macro ‘RULE’
   RULE (SCMP_ACT_ALLOW, SCMP_SYS (prctl),
   ^~~~
Makefile:415: recipe for target 'seccomp-filter' failed
make[1]: *** [seccomp-filter] Error 1
make[1]: Leaving directory '/home/redknight/git/emacs/lib-src'
Makefile:396: recipe for target 'lib-src' failed
make: *** [lib-src] Error 2

--------------- End error list ---------

Best wishes,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]