Subject: bug#39727: closed (Re: bug#39727: statx error running 'guix gc' on CentOS 7)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 26 Feb 2020 21:08:02 +0000

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 [email-masked].

-- 
39727: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=39727
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#39727: statx error running 'guix gc' on CentOS 7
From: Ludovic Courtès <[email-masked]>
To: Paul Garlick <[email-masked]>
Cc: [email-masked]
Date: Wed, 26 Feb 2020 22:07:34 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Paul,

Paul Garlick <[email-masked]> skribis:

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

Great, pushed as 513c0a0f4602018a49d8fd2dfa24670a3fa08ac9.

Thanks,
Ludo’.

Subject: statx error running 'guix gc' on CentOS 7
From: Paul Garlick <[email-masked]>
To: [email-masked]
Date: Fri, 21 Feb 2020 22:49:15 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

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