From: Colin Baxter <m43cap@yandex.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: , emacs-devel@gnu.org
Subject: Re: Build failure: 'seccomp-filter'
Date: Sun, 11 Apr 2021 08:50:48 +0100 [thread overview]
Message-ID: <87wnt9qmxz.fsf@yandex.com> (raw)
In-Reply-To: <83mtu546b0.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 11 Apr 2021 10:41:07 +0300")
>>>>> 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,
next prev parent reply other threads:[~2021-04-11 7:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-11 6:45 Build failure: 'seccomp-filter' Colin Baxter
2021-04-11 7:41 ` Eli Zaretskii
2021-04-11 7:50 ` Colin Baxter [this message]
2021-04-11 10:12 ` Philipp Stephani
2021-04-11 10:45 ` Colin Baxter
2021-04-11 14:31 ` Philipp
2021-04-11 14:40 ` Philipp Stephani
2021-04-11 14:52 ` Philipp Stephani
2021-04-11 15:40 ` Colin Baxter
2021-04-11 15:55 ` Andreas Schwab
2021-04-11 17:03 ` Colin Baxter
2021-04-11 18:50 ` Philipp Stephani
2021-04-11 22:31 ` Andreas Schwab
2021-04-12 7:22 ` Philipp Stephani
2021-04-11 15:18 ` Colin Baxter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wnt9qmxz.fsf@yandex.com \
--to=m43cap@yandex.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.