From unknown Tue Sep 09 21:33:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39727: statx error running 'guix gc' on CentOS 7 Resent-From: Paul Garlick Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 21 Feb 2020 22:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39727 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 39727@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.158232536931056 (code B ref -1); Fri, 21 Feb 2020 22:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Feb 2020 22:49:29 +0000 Received: from localhost ([127.0.0.1]:48337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5H6v-00084p-5q for submit@debbugs.gnu.org; Fri, 21 Feb 2020 17:49:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:46867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5H6s-00084h-3Z for submit@debbugs.gnu.org; Fri, 21 Feb 2020 17:49:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44093) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5H6q-0007vr-Tt for bug-guix@gnu.org; Fri, 21 Feb 2020 17:49:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5H6p-0005Lj-Ms for bug-guix@gnu.org; Fri, 21 Feb 2020 17:49:24 -0500 Received: from smtp.hosts.co.uk ([85.233.160.19]:22505) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j5H6p-0005Jr-Gz for bug-guix@gnu.org; Fri, 21 Feb 2020 17:49:23 -0500 Received: from [79.123.23.187] (helo=pancake.local) by smtp.hosts.co.uk with esmtpsa (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim) (envelope-from ) id 1j5H6i-0004PE-BC for bug-guix@gnu.org; Fri, 21 Feb 2020 22:49:17 +0000 Message-ID: From: Paul Garlick Date: Fri, 21 Feb 2020 22:49:15 +0000 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 85.233.160.19 X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Guix, After a 'guix pull' today to commit 536cc4aae5b58b45b974530646a4916a29a8aa6c I noticed that 'guix gc' fails with the message: guix gc: error: statting `/gnu/store/.links/0pck...': Invalid argument The system is running CentOS 7: $ cat /etc/centos-release CentOS Linux release 7.7.1908 (Core) A temporary fix is to remove 'statx' from the list of functions checked in config-daemon.ac (line 96): - statvfs nanosleep strsignal statx]) + statvfs nanosleep strsignal]) This could a problem with the kernel version or coreutils [0] in CentOS 7. It seems that HAVE_STATX is set in the guix build process but then runtime calls to statx generate errors. Best regards, Paul. [0] https://bugzilla.redhat.com/show_bug.cgi?id=1760300 From unknown Tue Sep 09 21:33:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39727: statx error running 'guix gc' on CentOS 7 Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 22 Feb 2020 00:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39727 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Paul Garlick Cc: 39727@debbugs.gnu.org Received: via spool by 39727-submit@debbugs.gnu.org id=B39727.15823295665970 (code B ref 39727); Sat, 22 Feb 2020 00:00:02 +0000 Received: (at 39727) by debbugs.gnu.org; 21 Feb 2020 23:59:26 +0000 Received: from localhost ([127.0.0.1]:48441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5ICb-0001YE-QE for submit@debbugs.gnu.org; Fri, 21 Feb 2020 18:59:25 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5ICZ-0001Y1-1W for 39727@debbugs.gnu.org; Fri, 21 Feb 2020 18:59:24 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45003) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j5ICT-0002Xs-6M; Fri, 21 Feb 2020 18:59:17 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=41500 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j5ICR-0001of-T0; Fri, 21 Feb 2020 18:59:16 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Sat, 22 Feb 2020 00:59:13 +0100 In-Reply-To: (Paul Garlick's message of "Fri, 21 Feb 2020 22:49:15 +0000") Message-ID: <87sgj3ze3y.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi, Paul Garlick skribis: > After a 'guix pull' today to commit > 536cc4aae5b58b45b974530646a4916a29a8aa6c I noticed that 'guix gc' fails > with the message: > > guix gc: error: statting `/gnu/store/.links/0pck...': Invalid argument This was during the =E2=80=9Cremoving unused link=E2=80=9D phase, right? > The system is running CentOS 7: > > $ cat /etc/centos-release > CentOS Linux release 7.7.1908 (Core) What does =E2=80=9Cuname -r=E2=80=9D return? This is most likely an issue with the ancient kernel being used. It would be nice if you could try running a C program that does something like this: struct statx st; if (statx(AT_FDCWD, "/", AT_SYMLINK_NOFOLLOW | AT_STATX_DONT_SYNC, STATX_SIZE | STATX_NLINK, &st) =3D=3D -1) printf ("failed: %m\n"); It should fail similarly. Then you can try commenting out AT_STATX_DONT_SYNC and see whether it fails. Let me know how it goes! Thanks, Ludo=E2=80=99. From unknown Tue Sep 09 21:33:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39727: statx error running 'guix gc' on CentOS 7 Resent-From: Paul Garlick Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 24 Feb 2020 12:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39727 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 39727@debbugs.gnu.org Received: via spool by 39727-submit@debbugs.gnu.org id=B39727.158254877328068 (code B ref 39727); Mon, 24 Feb 2020 12:53:01 +0000 Received: (at 39727) by debbugs.gnu.org; 24 Feb 2020 12:52:53 +0000 Received: from localhost ([127.0.0.1]:52972 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6DEC-0007Ie-Qs for submit@debbugs.gnu.org; Mon, 24 Feb 2020 07:52:52 -0500 Received: from smtp.hosts.co.uk ([85.233.160.19]:51616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6DEA-0007II-Oe for 39727@debbugs.gnu.org; Mon, 24 Feb 2020 07:52:51 -0500 Received: from [79.123.23.187] (helo=pancake.local) by smtp.hosts.co.uk with esmtpsa (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim) (envelope-from ) id 1j6DE4-0002EF-B1; Mon, 24 Feb 2020 12:52:44 +0000 Message-ID: From: Paul Garlick Date: Mon, 24 Feb 2020 12:52:42 +0000 In-Reply-To: <87sgj3ze3y.fsf@gnu.org> References: <87sgj3ze3y.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Ludo, > This was during the “removing unused link” phase, right? > Yes, that's it. > The system is running CentOS 7: > > $ cat /etc/centos-release > CentOS Linux release 7.7.1908 (Core) > > What does “uname -r” return? 3.10.0-1062.12.1.el7.x86_64 > Let me know how it goes! I compiled a C program with the following code using gcc-toolchain 9.2.0: #define _GNU_SOURCE #include #include #include #include #include int main(void) { struct statx st; if (statx(AT_FDCWD, "/", AT_SYMLINK_NOFOLLOW | AT_STATX_DONT_SYNC, /* AT_SYMLINK_NOFOLLOW, */ STATX_SIZE | STATX_NLINK, &st) == -1) printf ("failed: %m\n"); return 0; } Initially, with the AT_STATX_DONT_SYNC flag, the output is: $ failed: Invalid argument Then, without the AT_STATX_DONT_SYNC flag, the program runs and there is no output. Best regards, Paul. From unknown Tue Sep 09 21:33:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39727: statx error running 'guix gc' on CentOS 7 Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 24 Feb 2020 15:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39727 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Paul Garlick Cc: 39727@debbugs.gnu.org Received: via spool by 39727-submit@debbugs.gnu.org id=B39727.158255713919145 (code B ref 39727); Mon, 24 Feb 2020 15:13:01 +0000 Received: (at 39727) by debbugs.gnu.org; 24 Feb 2020 15:12:19 +0000 Received: from localhost ([127.0.0.1]:53935 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6FP8-0004yh-KM for submit@debbugs.gnu.org; Mon, 24 Feb 2020 10:12:18 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6FP6-0004yM-3i for 39727@debbugs.gnu.org; Mon, 24 Feb 2020 10:12:18 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j6FP0-0006rJ-AR; Mon, 24 Feb 2020 10:12:10 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=60656 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j6FOz-0005HZ-Jb; Mon, 24 Feb 2020 10:12:10 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87sgj3ze3y.fsf@gnu.org> Date: Mon, 24 Feb 2020 16:12:07 +0100 In-Reply-To: (Paul Garlick's message of "Mon, 24 Feb 2020 12:52:42 +0000") Message-ID: <87h7zgm33s.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Paul, Paul Garlick skribis: > Initially, with the AT_STATX_DONT_SYNC flag, the output is: > > $ failed: Invalid argument > > Then, without the AT_STATX_DONT_SYNC flag, the program runs and there > is no output. Great. Could you apply the following patch, run the daemon with: sudo -E ./pre-inst-env guix-daemon --build-users-group=3D=E2=80=A6 then run: guix gc -C42 and confirm that it works for you? Thanks! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/nix/libstore/gc.cc b/nix/libstore/gc.cc index 77d7fa2dc7..8bc4e01eb0 100644 --- a/nix/libstore/gc.cc +++ b/nix/libstore/gc.cc @@ -581,15 +581,27 @@ void LocalStore::removeUnusedLinks(const GCState & state) #ifdef HAVE_STATX # define st_size stx_size # define st_nlink stx_nlink + static int statx_flags = AT_SYMLINK_NOFOLLOW | AT_STATX_DONT_SYNC; struct statx st; - if (statx(AT_FDCWD, path.c_str(), - AT_SYMLINK_NOFOLLOW | AT_STATX_DONT_SYNC, - STATX_SIZE | STATX_NLINK, &st) == -1) + + if (statx(AT_FDCWD, path.c_str(), statx_flags, + STATX_SIZE | STATX_NLINK, &st) == -1) { + if (errno == EINVAL) { + /* Old 3.10 kernels (CentOS 7) don't support + AT_STATX_DONT_SYNC, so try again without it. */ + statx_flags &= ~AT_STATX_DONT_SYNC; + if (statx(AT_FDCWD, path.c_str(), statx_flags, + STATX_SIZE | STATX_NLINK, &st) == -1) + throw SysError(format("statting `%1%'") % path); + } else { + throw SysError(format("statting `%1%'") % path); + } + } #else struct stat st; if (lstat(path.c_str(), &st) == -1) -#endif throw SysError(format("statting `%1%'") % path); +#endif if (st.st_nlink != 1) { actualSize += st.st_size; --=-=-=-- From unknown Tue Sep 09 21:33:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39727: statx error running 'guix gc' on CentOS 7 Resent-From: Paul Garlick Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 24 Feb 2020 19:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39727 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 39727@debbugs.gnu.org Received: via spool by 39727-submit@debbugs.gnu.org id=B39727.15825738915675 (code B ref 39727); Mon, 24 Feb 2020 19:52:01 +0000 Received: (at 39727) by debbugs.gnu.org; 24 Feb 2020 19:51:31 +0000 Received: from localhost ([127.0.0.1]:54138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6JlL-0001TS-3m for submit@debbugs.gnu.org; Mon, 24 Feb 2020 14:51:31 -0500 Received: from smtp.hosts.co.uk ([85.233.160.19]:19386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j6JlI-0001TB-8A for 39727@debbugs.gnu.org; Mon, 24 Feb 2020 14:51:28 -0500 Received: from [79.123.23.187] (helo=pancake.local) by smtp.hosts.co.uk with esmtpsa (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim) (envelope-from ) id 1j6JlA-0004zD-BA; Mon, 24 Feb 2020 19:51:20 +0000 Message-ID: From: Paul Garlick Date: Mon, 24 Feb 2020 19:51:18 +0000 In-Reply-To: <87h7zgm33s.fsf@gnu.org> References: <87sgj3ze3y.fsf@gnu.org> <87h7zgm33s.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Ludo, > Great. Could you apply the following patch, run the daemon with: > > sudo -E ./pre-inst-env guix-daemon --build-users-group=… > > then run: > > guix gc -C42 Yes, all is good. I have re-built guix with your patch and started the daemon. Now 'guix gc' runs as expected: . . . deleted or invalidated more than 42 bytes; stopping deleting `/gnu/store/trash' deleting unused links... note: currently hard linking saves 3264.68 MiB guix gc: freed 0.91850 MiBs Many thanks! CentOS 7 will be around for a few years yet. Best regards, Paul. From unknown Tue Sep 09 21:33:03 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Paul Garlick Subject: bug#39727: closed (Re: bug#39727: statx error running 'guix gc' on CentOS 7) Message-ID: References: <87lfopawh5.fsf@gnu.org> X-Gnu-PR-Message: they-closed 39727 X-Gnu-PR-Package: guix Reply-To: 39727@debbugs.gnu.org Date: Wed, 26 Feb 2020 21:08:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1582751282-1733-1" This is a multi-part message in MIME format... ------------=_1582751282-1733-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #39727: statx error running 'guix gc' on CentOS 7 which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 39727@debbugs.gnu.org. --=20 39727: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D39727 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1582751282-1733-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 39727-done) by debbugs.gnu.org; 26 Feb 2020 21:07:45 +0000 Received: from localhost ([127.0.0.1]:57832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j73uD-0000RL-2b for submit@debbugs.gnu.org; Wed, 26 Feb 2020 16:07:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j73uB-0000RA-SG for 39727-done@debbugs.gnu.org; Wed, 26 Feb 2020 16:07:44 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j73u6-0005P9-7e; Wed, 26 Feb 2020 16:07:38 -0500 Received: from 128.pool80-103-133.dynamic.orange.es ([80.103.133.128]:43074 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j73u5-0007aM-Mm; Wed, 26 Feb 2020 16:07:38 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Paul Garlick Subject: Re: bug#39727: statx error running 'guix gc' on CentOS 7 References: <87sgj3ze3y.fsf@gnu.org> <87h7zgm33s.fsf@gnu.org> Date: Wed, 26 Feb 2020 22:07:34 +0100 In-Reply-To: (Paul Garlick's message of "Mon, 24 Feb 2020 19:51:18 +0000") Message-ID: <87lfopawh5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 39727-done Cc: 39727-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Paul, Paul Garlick skribis: >> Great. Could you apply the following patch, run the daemon with: >>=20 >> sudo -E ./pre-inst-env guix-daemon --build-users-group=3D=E2=80=A6 >>=20 >> then run: >>=20 >> guix gc -C42 > > Yes, all is good.=20=20 > > I have re-built guix with your patch and started the daemon. Now 'guix > gc' runs as expected: Great, pushed as 513c0a0f4602018a49d8fd2dfa24670a3fa08ac9. Thanks, Ludo=E2=80=99. ------------=_1582751282-1733-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Feb 2020 22:49:29 +0000 Received: from localhost ([127.0.0.1]:48337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5H6v-00084p-5q for submit@debbugs.gnu.org; Fri, 21 Feb 2020 17:49:29 -0500 Received: from lists.gnu.org ([209.51.188.17]:46867) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5H6s-00084h-3Z for submit@debbugs.gnu.org; Fri, 21 Feb 2020 17:49:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44093) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5H6q-0007vr-Tt for bug-guix@gnu.org; Fri, 21 Feb 2020 17:49:25 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5H6p-0005Lj-Ms for bug-guix@gnu.org; Fri, 21 Feb 2020 17:49:24 -0500 Received: from smtp.hosts.co.uk ([85.233.160.19]:22505) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j5H6p-0005Jr-Gz for bug-guix@gnu.org; Fri, 21 Feb 2020 17:49:23 -0500 Received: from [79.123.23.187] (helo=pancake.local) by smtp.hosts.co.uk with esmtpsa (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim) (envelope-from ) id 1j5H6i-0004PE-BC for bug-guix@gnu.org; Fri, 21 Feb 2020 22:49:17 +0000 Message-ID: Subject: statx error running 'guix gc' on CentOS 7 From: Paul Garlick To: bug-guix@gnu.org Date: Fri, 21 Feb 2020 22:49:15 +0000 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 85.233.160.19 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Guix, After a 'guix pull' today to commit 536cc4aae5b58b45b974530646a4916a29a8aa6c I noticed that 'guix gc' fails with the message: guix gc: error: statting `/gnu/store/.links/0pck...': Invalid argument The system is running CentOS 7: $ cat /etc/centos-release CentOS Linux release 7.7.1908 (Core) A temporary fix is to remove 'statx' from the list of functions checked in config-daemon.ac (line 96): - statvfs nanosleep strsignal statx]) + statvfs nanosleep strsignal]) This could a problem with the kernel version or coreutils [0] in CentOS 7. It seems that HAVE_STATX is set in the guix build process but then runtime calls to statx generate errors. Best regards, Paul. [0] https://bugzilla.redhat.com/show_bug.cgi?id=1760300 ------------=_1582751282-1733-1--