From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.bugs Subject: bug#56549: 28.1; Compilation failure for lib-src/seccomp-filter.c on x86_64 with 32 bit userspace Date: Thu, 14 Jul 2022 08:46:25 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29297"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) To: 56549@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 14 08:47:49 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oBsdY-0007Iq-Pn for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 08:47:48 +0200 Original-Received: from localhost ([::1]:45046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBsdX-0000qy-F0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jul 2022 02:47:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33194) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBsco-0000p1-QB for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 02:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54664) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oBsco-0001nZ-HO for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 02:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oBsco-0006Kn-6g for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 02:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ulrich Mueller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jul 2022 06:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56549 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165778121624335 (code B ref -1); Thu, 14 Jul 2022 06:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Jul 2022 06:46:56 +0000 Original-Received: from localhost ([127.0.0.1]:48561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBsci-0006KR-3Y for submit@debbugs.gnu.org; Thu, 14 Jul 2022 02:46:56 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:60524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBscf-0006KI-Ns for submit@debbugs.gnu.org; Thu, 14 Jul 2022 02:46:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33096) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBscY-0000my-G7 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 02:46:53 -0400 Original-Received: from smtp.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]:55077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1oBscS-0001jN-3w for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2022 02:46:45 -0400 Received-SPF: pass client-ip=2001:470:ea4a:1:5054:ff:fec7:86e4; envelope-from=ulm@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:236961 Archived-At: Forwarding Gentoo bug https://bugs.gentoo.org/857906: i686-pc-linux-gnu-gcc -I. -I../src -I../lib -I. -I./../src -I./../lib -Wl,-O1 -Wl,--as-needed -mtune=i686 -O2 -pipe seccomp-filter.c \ -lseccomp -o seccomp-filter In file included from seccomp-filter.c:62: seccomp-filter.c: In function 'main': ../lib/verify.h:213:41: error: static assertion failed: "verify (sizeof (long) == 8 && LONG_MIN == INT64_MIN && LONG_MAX == INT64_MAX)" 213 | # define _GL_VERIFY(R, DIAGNOSTIC, ...) _Static_assert (R, DIAGNOSTIC) | ^~~~~~~~~~~~~~ ../lib/verify.h:273:20: note: in expansion of macro '_GL_VERIFY' 273 | # define verify(R) _GL_VERIFY (R, "verify (" #R ")", -) | ^~~~~~~~~~ seccomp-filter.c:173:3: note: in expansion of macro 'verify' 173 | verify (sizeof (long) == 8 && LONG_MIN == INT64_MIN | ^~~~~~ ../lib/verify.h:213:41: error: static assertion failed: "verify (sizeof (void *) == 8)" 213 | # define _GL_VERIFY(R, DIAGNOSTIC, ...) _Static_assert (R, DIAGNOSTIC) | ^~~~~~~~~~~~~~ ... seccomp-filter.c:175:3: note: in expansion of macro 'verify' 175 | verify (sizeof (void *) == 8); | ^~~~~~ make[1]: *** [Makefile:435: seccomp-filter] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory '/var/tmp/portage/app-editors/emacs-28.1/work/emacs-28.1/lib-src' make: *** [Makefile:436: lib-src] Error 2 This is on an x86_64 machine with 32 bit userspace. AFAICS, the problem is that lib-src/seccomp-filter.c (line 173) tests for a 64 bit userspace: verify (sizeof (long) == 8 && LONG_MIN == INT64_MIN && LONG_MAX == INT64_MAX); However, lib_src/Makefile.in (line 203) tests for 64 bit hardware: ifeq ($(shell uname -m),x86_64) [...] SECCOMP_FILTER=1 endif