GNU bug report logs - #47952
28.0.50; Recent seccomp changes break compilation

Previous Next

Package: emacs;

Reported by: "" <meril <at> mailfence.com>

Date: Thu, 22 Apr 2021 13:44:02 UTC

Severity: normal

Tags: fixed, moreinfo

Merged with 47951

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47952 in the body.
You can then email your comments to 47952 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#47952; Package emacs. (Thu, 22 Apr 2021 13:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "" <meril <at> mailfence.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 22 Apr 2021 13:44:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "" <meril <at> mailfence.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; Recent seccomp changes break compilation
Date: Thu, 22 Apr 2021 09:42:11 +0100
Hi,

The recent changes on seccomp introduced by Philipp Stephani (around commit
be8328acf9aa464f848e682e63e417a18529af9e) break the compilation when Emacs is
built within a Docker container.

The 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
1 error generated.
make[1]: *** [Makefile:433: seccomp-filter] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:419: lib-src] Error 2

Thank you

In GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.28, cairo version 1.17.4)
 of 2021-04-08 built on ab91f5cae90f
Repository revision: 1000227d38b4f139f1e393e6bfb613829fcc92d0
Repository branch: pgtk-nativecomp
Windowing system distributor 'System Description: Arch Linux

Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games
 --with-sound=alsa --with-modules --with-x-toolkit=gtk3 --with-cairo
 --with-xwidgets --with-native-compilation --with-pgtk
 --without-compress-install --without-gconf --without-gsettings
 --without-m17n-flt --enable-autodepend --enable-link-time-optimization
 CC=/usr/bin/clang 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -g
 -flto' LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
 CPPFLAGS=-D_FORTIFY_SOURCE=2 'CPP=/usr/bin/clang -E''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM HARFBUZZ JPEG JSON LCMS2 LIBOTF
LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG
SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XIM XWIDGETS GTK3 ZLIB

Important settings:
  value of $LC_COLLATE: C
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8

Major mode: N/A

Minor modes in effect:
  N/A

Load-path shadows:
None found.

Features:
(nativecomp emacs)

Memory information:
((conses 16 1728860 1056828)
 (symbols 48 76485 37)
 (strings 32 291745 60043)
 (string-bytes 1 9529995)
 (vectors 16 189912)
 (vector-slots 8 6163460 507432)
 (floats 8 1413 2807)
 (intervals 56 9385 3328)
 (buffers 992 28))

-- 
---
Méril Pilon




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47952; Package emacs. (Thu, 22 Apr 2021 14:19:02 GMT) Full text and rfc822 format available.

Message #8 received at 47952 <at> debbugs.gnu.org (full text, mbox):

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: meril <at> mailfence.com
Cc: 47952 <at> debbugs.gnu.org
Subject: Re: bug#47952: 28.0.50; Recent seccomp changes break compilation
Date: Thu, 22 Apr 2021 16:18:13 +0200
Am Do., 22. Apr. 2021 um 15:44 Uhr schrieb meril--- via Bug reports
for GNU Emacs, the Swiss army knife of text editors
<bug-gnu-emacs <at> gnu.org>:
>
> Hi,
>
> The recent changes on seccomp introduced by Philipp Stephani (around commit
> be8328acf9aa464f848e682e63e417a18529af9e) break the compilation when Emacs is
> built within a Docker container.
>
> The 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
> 1 error generated.
> make[1]: *** [Makefile:433: seccomp-filter] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make: *** [Makefile:419: lib-src] Error 2
>

Is this the same as Bug#47951?




Merged 47951 47952. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 22 Apr 2021 15:22:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47952; Package emacs. (Thu, 22 Apr 2021 15:45:01 GMT) Full text and rfc822 format available.

Message #13 received at 47952 <at> debbugs.gnu.org (full text, mbox):

From: "" <meril <at> mailfence.com>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 47952 <at> debbugs.gnu.org
Subject: Re: bug#47952: 28.0.50; Recent seccomp changes break compilation
Date: Thu, 22 Apr 2021 16:12:26 +0100
Hi,

Thanks for your quick answer, I will test the new commit shortly.

Yes, is it the same as Bug#47951, I made a mistake and sent the same email
twice.

Thank you

Best

Philipp Stephani <p.stephani2 <at> gmail.com> writes:

> Am Do., 22. Apr. 2021 um 15:44 Uhr schrieb meril--- via Bug reports
> for GNU Emacs, the Swiss army knife of text editors
> <bug-gnu-emacs <at> gnu.org>:
>>
>> Hi,
>>
>> The recent changes on seccomp introduced by Philipp Stephani (around commit
>> be8328acf9aa464f848e682e63e417a18529af9e) break the compilation when Emacs is
>> built within a Docker container.
>>
>> The 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
>> 1 error generated.
>> make[1]: *** [Makefile:433: seccomp-filter] Error 1
>> make[1]: *** Waiting for unfinished jobs....
>> make: *** [Makefile:419: lib-src] Error 2
>>
>
> Is this the same as Bug#47951?


-- 
---
Méril Pilon




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47952; Package emacs. (Mon, 03 May 2021 08:30:03 GMT) Full text and rfc822 format available.

Message #16 received at 47952 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "" <meril <at> mailfence.com>
Cc: 47951 <at> debbugs.gnu.org, Philipp Stephani <p.stephani2 <at> gmail.com>,
 47952 <at> debbugs.gnu.org
Subject: Re: bug#47951: 28.0.50; Recent seccomp changes break compilation in
 Docker
Date: Mon, 03 May 2021 10:29:17 +0200
"" <meril <at> mailfence.com> writes:

> Thanks for your quick answer, I will test the new commit shortly.

Did you have a chance to check the patch by now?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Mon, 03 May 2021 08:30:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47952; Package emacs. (Mon, 03 May 2021 15:34:02 GMT) Full text and rfc822 format available.

Message #21 received at 47952 <at> debbugs.gnu.org (full text, mbox):

From: Méril Pilon <meril <at> mailfence.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 47951 <at> debbugs.gnu.org, Philipp Stephani <p.stephani2 <at> gmail.com>,
 47952 <at> debbugs.gnu.org
Subject: Re: bug#47951: 28.0.50; Recent seccomp changes break compilation in
 Docker
Date: Mon, 03 May 2021 16:31:39 +0100
Hi Lars,

I confirm that this issue is now fixed. The patch works great.

Thanks to the maintainers for their work on this.

Best

Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> "" <meril <at> mailfence.com> writes:
>
>> Thanks for your quick answer, I will test the new commit shortly.
>
> Did you have a chance to check the patch by now?


-- 
---
Méril Pilon




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#47952; Package emacs. (Tue, 04 May 2021 07:59:02 GMT) Full text and rfc822 format available.

Message #24 received at 47952 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Méril Pilon <meril <at> mailfence.com>
Cc: 47951 <at> debbugs.gnu.org, Philipp Stephani <p.stephani2 <at> gmail.com>,
 47952 <at> debbugs.gnu.org
Subject: Re: bug#47951: 28.0.50; Recent seccomp changes break compilation in
 Docker
Date: Tue, 04 May 2021 09:58:35 +0200
Méril Pilon <meril <at> mailfence.com> writes:

> I confirm that this issue is now fixed. The patch works great.

Thanks for checking.  I'm closing this bug report, then.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 04 May 2021 07:59:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 47951 <at> debbugs.gnu.org and "" <me <at> mpsq.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 04 May 2021 07:59:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 01 Jun 2021 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 328 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.