From: Philipp Stephani <p.stephani2@gmail.com>
To: me@mpsq.org
Cc: 47951@debbugs.gnu.org
Subject: bug#47951: 28.0.50; Recent seccomp changes break compilation in Docker
Date: Thu, 22 Apr 2021 16:17:32 +0200 [thread overview]
Message-ID: <CAArVCkQ04cUCG-GrsmUEn1VnCvVsAKPENODM3dW+btKMEU0b=A@mail.gmail.com> (raw)
In-Reply-To: <87fsziww7p.fsf@meril-lin-7rvk493.corp.improbable.io>
Am Do., 22. Apr. 2021 um 15:44 Uhr schrieb <me@mpsq.org>:
>
>
> Hi,
>
> Since the recent changes introduced by Philipp Stephani on seccomp (around
> commit be8328acf9aa464f848e682e63e417a18529af9e), compiling Emacs from within a
> Docker container fails.
>
> The reported error is:
>
> seccomp-filter.c:168:11: error: static_assert expression is not an integral constant expression
> verify ((uintptr_t) NULL == 0);
> ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
> ../lib/verify.h:273:32: note: expanded from macro 'verify'
> # define verify(R) _GL_VERIFY (R, "verify (" #R ")", -)
> ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
> ../lib/verify.h:213:57: note: expanded from macro '_GL_VERIFY'
> # define _GL_VERIFY(R, DIAGNOSTIC, ...) _Static_assert (R, DIAGNOSTIC)
> ^
> seccomp-filter.c:168:11: note: cast that performs the conversions of a reinterpret_cast is not allowed in a constant expression
Looks like the compiler is right, and mine is a bit too lenient. I've
hopefully fixed this with commit
aaf6b6bf80805d18180e1c16350e9473716f5915.
next prev parent reply other threads:[~2021-04-22 14:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-22 8:30 bug#47951: 28.0.50; Recent seccomp changes break compilation in Docker me
2021-04-22 14:17 ` Philipp Stephani [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-04-22 8:42 bug#47952: 28.0.50; Recent seccomp changes break compilation meril--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-22 14:18 ` Philipp Stephani
2021-04-22 15:12 ` meril--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-03 8:29 ` bug#47952: bug#47951: 28.0.50; Recent seccomp changes break compilation in Docker Lars Ingebrigtsen
2021-05-03 15:31 ` Méril Pilon via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-04 7:58 ` Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAArVCkQ04cUCG-GrsmUEn1VnCvVsAKPENODM3dW+btKMEU0b=A@mail.gmail.com' \
--to=p.stephani2@gmail.com \
--cc=47951@debbugs.gnu.org \
--cc=me@mpsq.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).