From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Philipp Stephani
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: Fri, 15 Jul 2022 17:42:44 +0200
Message-ID:
References:
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
logging-data="31892"; mail-complaints-to="usenet@ciao.gmane.io"
Cc: 56549@debbugs.gnu.org
To: Ulrich Mueller
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 15 17:44:16 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 1oCNUG-000867-1H
for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 17:44:16 +0200
Original-Received: from localhost ([::1]:46934 helo=lists1p.gnu.org)
by lists.gnu.org with esmtp (Exim 4.90_1)
(envelope-from )
id 1oCNUE-00087b-Jj
for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 11:44:14 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52820)
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from )
id 1oCNU2-00084Y-Py
for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 11:44:02 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:44283)
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from )
id 1oCNU2-0003c2-HG
for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 11:44:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1oCNU2-0005B4-6Y
for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 11:44:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp Stephani
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Fri, 15 Jul 2022 15:44:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 56549
X-GNU-PR-Package: emacs
Original-Received: via spool by 56549-submit@debbugs.gnu.org id=B56549.165789978519820
(code B ref 56549); Fri, 15 Jul 2022 15:44:02 +0000
Original-Received: (at 56549) by debbugs.gnu.org; 15 Jul 2022 15:43:05 +0000
Original-Received: from localhost ([127.0.0.1]:42042 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1oCNT6-00059c-GD
for submit@debbugs.gnu.org; Fri, 15 Jul 2022 11:43:04 -0400
Original-Received: from mail-oa1-f48.google.com ([209.85.160.48]:45764)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1oCNT2-000592-VQ
for 56549@debbugs.gnu.org; Fri, 15 Jul 2022 11:43:02 -0400
Original-Received: by mail-oa1-f48.google.com with SMTP id
586e51a60fabf-10c0052da61so6698106fac.12
for <56549@debbugs.gnu.org>; Fri, 15 Jul 2022 08:43:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=xXbQ5TRYoNGc7G/0icJhu8pFAwvQt3ztmLyK1DT8w1I=;
b=m47W231+EywphVRc5Rx0+FAzZEwDch41a8zRQTvgenywZomJSPwWGkP41fohwlL7k9
N4Swm8R37++PkhDyn52ueKEWVZDkCa9IZQS8VzNCK8ZrZtTBzbhAQ7y0Do7gnF2taRGT
FQLN6lGBo7p8BNmrvnFqSG0Hfjc2xRtgd01VXyXzmu3IAlWSBXyV6LziXTqhkPHzTwz6
Mr8dSaGHdWXxtaeCPdh4SUh03pNCiTKbVlK91cokDN5v3SfVCDiBgAdLtSTrt2201yCb
2CMWsCGBcji+SK2Yj+dvShjibUwxCpU7f0cPBq9SsfGyId5R3/DDMc3emyCDoFJDzWlU
T7+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=xXbQ5TRYoNGc7G/0icJhu8pFAwvQt3ztmLyK1DT8w1I=;
b=b7jYRRzW8s8CijV3AjTXGs2m4aOKgDm4gPGBm+DXzhebph2BboghaPx4twasGW9c/T
J78yOheeCd6lE5L0hLIUJ8qJaKAs0n6vTqzViAn3Ce08k/CDQ3UsWtXg09MEGDf69KYp
516X1e6zrazoJ2EheutaWnvxgvh077pjv7WZcJ8Npn42PBbbx7/aYLzoWzt+DZt2sF2n
DY5m8xGSg8V5/5y3CYBvBGvo98Oe+1bhiFPlVMlyacuZu1GZnegoghxK8SfQa2LpDLA7
b+WeIxazMWYDRvaomEZtOO7vV9p+WhxdUH/BsivI0P+y8tOs8v0lIkH2ptbDroPIRe0/
lOaw==
X-Gm-Message-State: AJIora+h9Fhy/xAJ7KSD7xcPFxTK3SGyQMu7plLjigfkqKfYXyAIRyL7
4499yHKZcYogvduPNWXHOvhBa7Hz+mLe1wtdsCk=
X-Google-Smtp-Source: AGRyM1ugM/wbfcG8SmRIYL2QNML4rBbUV0BgPD5XOXk9o8hkMVsxHcUKs6kOf2QLln3KgKTO/VfoYc70IJSTBW57TdI=
X-Received: by 2002:a05:6808:21a8:b0:337:ad2b:9bdf with SMTP id
be40-20020a05680821a800b00337ad2b9bdfmr7154698oib.77.1657899775018; Fri, 15
Jul 2022 08:42:55 -0700 (PDT)
In-Reply-To:
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:237117
Archived-At:
Am Do., 14. Juli 2022 um 08:47 Uhr schrieb Ulrich Mueller :
>
> 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
Thanks for the report. Is there a good way to test for a 64-bit
userspace? Probably we want both tests.