unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47951: 28.0.50; Recent seccomp changes break compilation in Docker
@ 2021-04-22  8:30 me
  2021-04-22 14:17 ` Philipp Stephani
  0 siblings, 1 reply; 8+ messages in thread
From: me @ 2021-04-22  8:30 UTC (permalink / raw)
  To: 47951


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
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 1568937 1176236)
 (symbols 48 70381 51)
 (strings 32 262321 70216)
 (string-bytes 1 8574627)
 (vectors 16 155314)
 (vector-slots 8 4893116 597798)
 (floats 8 1233 1802)
 (intervals 56 5595 1540)
 (buffers 992 17))

-- 
---
Méril Pilon





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#47952: 28.0.50; Recent seccomp changes break compilation
@ 2021-04-22  8:42 meril--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-04-22 14:18 ` Philipp Stephani
  0 siblings, 1 reply; 8+ messages in thread
From: meril--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-22  8:42 UTC (permalink / raw)
  To: 47952

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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#47951: 28.0.50; Recent seccomp changes break compilation in Docker
  2021-04-22  8:30 me
@ 2021-04-22 14:17 ` Philipp Stephani
  0 siblings, 0 replies; 8+ messages in thread
From: Philipp Stephani @ 2021-04-22 14:17 UTC (permalink / raw)
  To: me; +Cc: 47951

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.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#47952: 28.0.50; Recent seccomp changes break compilation
  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
  0 siblings, 1 reply; 8+ messages in thread
From: Philipp Stephani @ 2021-04-22 14:18 UTC (permalink / raw)
  To: meril; +Cc: 47952

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@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?





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#47952: 28.0.50; Recent seccomp changes break compilation
  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
  0 siblings, 1 reply; 8+ messages in thread
From: meril--- via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-04-22 15:12 UTC (permalink / raw)
  To: Philipp Stephani; +Cc: 47952

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@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@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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#47952: bug#47951: 28.0.50; Recent seccomp changes break compilation in Docker
  2021-04-22 15:12   ` meril--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-05-03  8:29     ` Lars Ingebrigtsen
  2021-05-03 15:31       ` Méril Pilon via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 8+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-03  8:29 UTC (permalink / raw)
  To: meril; +Cc: 47951, Philipp Stephani, 47952

"" <meril@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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#47952: bug#47951: 28.0.50; Recent seccomp changes break compilation in Docker
  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
  0 siblings, 1 reply; 8+ messages in thread
From: Méril Pilon via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-05-03 15:31 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 47951, Philipp Stephani, 47952

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@gnus.org> writes:

> "" <meril@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





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#47951: 28.0.50; Recent seccomp changes break compilation in Docker
  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
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Ingebrigtsen @ 2021-05-04  7:58 UTC (permalink / raw)
  To: Méril Pilon; +Cc: 47951, Philipp Stephani, 47952

Méril Pilon <meril@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





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-05-04  7:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2021-04-22  8:30 me
2021-04-22 14:17 ` Philipp Stephani

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).