From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sidharth Kshatriya Newsgroups: gmane.emacs.devel Subject: Re: seccomp-filter.c compilation error when trying to compile emacs master Date: Sun, 23 Jan 2022 21:34:00 +0530 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000afd78a05d6420095" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3512"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jan 23 17:07:31 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nBfOt-0000lM-Ju for ged-emacs-devel@m.gmane-mx.org; Sun, 23 Jan 2022 17:07:31 +0100 Original-Received: from localhost ([::1]:33640 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nBfOs-0002N1-1e for ged-emacs-devel@m.gmane-mx.org; Sun, 23 Jan 2022 11:07:30 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:45462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nBfLn-0001WP-59 for emacs-devel@gnu.org; Sun, 23 Jan 2022 11:04:19 -0500 Original-Received: from [2607:f8b0:4864:20::736] (port=43631 helo=mail-qk1-x736.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nBfLj-0008DH-Ap for emacs-devel@gnu.org; Sun, 23 Jan 2022 11:04:18 -0500 Original-Received: by mail-qk1-x736.google.com with SMTP id h2so16966695qkp.10 for ; Sun, 23 Jan 2022 08:04:12 -0800 (PST) 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; bh=sRESYOdl1x8xlsKLHARCwjJqyIBjQzpbykE6Gg0TrOk=; b=YktyNW1ldjSDpOTzfMiuZIRQEkmzCW+tnK1+/4qUIIdzAXiMTFSwiQrYUaUBPtaQD1 ua7Fp+D+7yc/tmdRXSBDRAv6d6jltnx6xthdwyfbxj7y6hnnS6zcKh2vGpzvMR8aNjra Pylq8n6zgIgyXkzn0j8e7o5EXhS8vs7zx9o0Vdu8t2ZI+ehS0zCebGT6bUw5wTwBEKSB vbFX85Us8hiSL+SHaV6CX7H3APulxJqkt8mG/1GUugJ/M1bRtlz7sWtIuFzxDSc9uloM TGmOBfu+BNEH52hNPTezlTW6i6HDQ8BoYPK5Rhhg8nhMzFfr5k+owbQtHOoc12HuXE4k oNlA== 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; bh=sRESYOdl1x8xlsKLHARCwjJqyIBjQzpbykE6Gg0TrOk=; b=BTMPUID6qQagtSFn09ERvOh24GnELc7v+k0/SZpA2AsInoi1Cf8sPnmT3rpWBA66CA 38v9tWoObG+2i60ThY8hdStlb4NBVwEtGIrlTe2N17P9xDJUidVwDtsQBEWNvV6nRyFU ZBNr7+XoR5JxW8d9tD6nsWAhAxSjeRwHCdUCsOwvlyVsMhFkXem1pZI2icQzkc3lGwfP 1DPCzBIgG/pSXY/Fwk5+PhH6onxEnOzuOvft79lKG49wyab0uSm/RDWrE7/73UfFyrmO Tqnq8YK/QXSFMRZ1pSMHuDCTsNa1OqNsVK8t0jeCqc4K5cfxk7AT4F6iD7VdWzSaf260 7IYw== X-Gm-Message-State: AOAM531/eOyfL/UueOetoIm1D2mnaCbOJ78fWPfRd85jFnzSc5SstAfN oudTebKsz6tTFZSjxEX2an83+SjmghkUOD7GqAJNzw1Dal4= X-Google-Smtp-Source: ABdhPJyrWPtdKhHvhP6EDPhzWlhDWZ1LUr7oAB9KXTleXukE73ZpiZVe4fuDGvnlh5x0E3N/Kd9EfABO51M7dfxVtJA= X-Received: by 2002:a05:620a:414b:: with SMTP id k11mr8756711qko.5.1642953851261; Sun, 23 Jan 2022 08:04:11 -0800 (PST) In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::736 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::736; envelope-from=sid.kshatriya@gmail.com; helo=mail-qk1-x736.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:285262 Archived-At: --000000000000afd78a05d6420095 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable As a temporary workaround, I reverted 6d3608be88e1b30d2d10ee81f14dd485275c20ff [Seccomp: improve support for newer versions of glibc (Bug#51073)] on my local emacs git and this fixes the compilation issue. However, I haven't looked into solving the problem properly. On Sun, Jan 23, 2022 at 9:01 PM Sidharth Kshatriya wrote: > P.S. I configure emacs for compilation like this: > ./configure --disable-build-details --with-modules --with-cairo > --with-native-compilation --prefix=3D/home/abcxyz/emacs-build-master > --with-mailutils --with-xinput2 --with-pgtk --with-file-notification=3Din= otify > > On Sun, Jan 23, 2022 at 9:00 PM Sidharth Kshatriya < > sid.kshatriya@gmail.com> wrote: > >> I get the following compilation error when trying to compile emacs from >> the master branch at the currently latest version >> 80098a2830cafe0a09f18c5186bf670a91828fef >> >> I am using Ubuntu 20.04 on an x86_64 system. I'm using gcc 10.3.0 >> >> >> *Here is the error in detail:* >> seccomp-filter.c: In function =E2=80=98main=E2=80=99: >> seccomp-filter.c:243:25: error: =E2=80=98__SNR_faccessat2=E2=80=99 undec= lared (first use >> in this function) >> 243 | RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2)); >> | ^~~~~~~~ >> seccomp-filter.c:121:60: note: in definition of macro =E2=80=98RULE=E2= =80=99 >> 121 | int status =3D seccomp_rule_add_array (ctx, (action), >> (syscall), \ >> | ^~~~~= ~~ >> seccomp-filter.c:243:25: note: each undeclared identifier is reported >> only once for each function it appears in >> 243 | RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2)); >> | ^~~~~~~~ >> seccomp-filter.c:121:60: note: in definition of macro =E2=80=98RULE=E2= =80=99 >> 121 | int status =3D seccomp_rule_add_array (ctx, (action), >> (syscall), \ >> | ^~~~~= ~~ >> make[1]: *** [Makefile:459: seccomp-filter] Error 1 >> ... >> ... >> > --000000000000afd78a05d6420095 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
As a temporary workaround, I reverted 6d3608be88e1b30= d2d10ee81f14dd485275c20ff [Seccomp: improve support for newer versions of g= libc (Bug#51073)] on my local emacs git and this fixes the compilation issu= e. However, I haven't looked into solving the problem properly.

On Sun, Jan 23, 2022 at 9:01 PM Sidharth Kshatriya <sid.kshatriya@gmail.com> = wrote:
P.S. I configure emacs for compilation like this:
.= /configure --disable-build-details --with-modules --with-cairo --with-nativ= e-compilation --prefix=3D/home/abcxyz/emacs-build-master --with-mailutils -= -with-xinput2 --with-pgtk --with-file-notification=3Dinotify
On Sun, J= an 23, 2022 at 9:00 PM Sidharth Kshatriya <sid.kshatriya@gmail.com> wrote:
<= /div>
I get the following compilation error when trying to compile emacs from t= he master branch at the currently latest version 80098a2830cafe0a09f18c5186= bf670a91828fef

I am using Ubuntu 20.04 on an x86_6= 4 system. I'm using gcc 10.3.0

Here = is the error in detail:
seccomp-filter.c: In function =E2= =80=98main=E2=80=99:
seccomp-filter.c:243:25: error: =E2=80=98__SNR_facc= essat2=E2=80=99 undeclared (first use in this function)
=C2=A0 243 | =C2= =A0 RULE (SCMP_ACT_ALLOW, SCMP_SYS (faccessat2));
=C2=A0 =C2=A0 =C2=A0 |= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ^~~~~~~~
seccomp-filter.c:121:60: note: in definition of macr= o =E2=80=98RULE=E2=80=99
=C2=A0 121 | =C2=A0 =C2=A0 =C2=A0 int status = =3D seccomp_rule_add_array (ctx, (action), (syscall), \
=C2=A0 =C2=A0 = =C2=A0 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~= ~
seccomp-filter.c:243:25: note: each undeclared identifier is reported = only once for each function it appears in
=C2=A0 243 | =C2=A0 RULE (SCMP= _ACT_ALLOW, SCMP_SYS (faccessat2));
=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^~~~= ~~~~
seccomp-filter.c:121:60: note: in definition of macro =E2=80=98RULE= =E2=80=99
=C2=A0 121 | =C2=A0 =C2=A0 =C2=A0 int status =3D seccomp_rule_= add_array (ctx, (action), (syscall), \
=C2=A0 =C2=A0 =C2=A0 | =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^~~~~~~
make[1]: ***= [Makefile:459: seccomp-filter] Error 1
...
...
--000000000000afd78a05d6420095--