Subject: Re: bug#74925: failed to compute the derivation for Guix

From: Simon Josefsson <[email-masked]>
Date: Mon, 23 Dec 2024 22:07:06 +0100

Ludovic Courtès <[email-masked]> writes:

> Hello,
>
> Simon Josefsson <[email-masked]> skribis:
>
>> (guix-daemon --disable-chroot --build-users-group=_guixbuild &)
>> guix pull --url=https://gitlab.com/debdistutils/guix/mirror.git
>
> [...]
>
>> In ./guix/store.scm:
>>   2095:12  7 (_ #<store-connection 256.99 1e7edc80>)
>>   1437:13  6 (map/accumulate-builds #<store-connection 256.99 1e7edc80> #<procedure 25cd1c20 at ./guix/store.scm:20?> ?)
>>    1433:5  5 (map/accumulate-builds #<store-connection 256.99 1e7edc80> #<procedure 3614d880 at ./guix/store.scm:14?> ?)
>>   1449:15  4 (_ #<store-connection 256.99 1e7edc80> ("/gnu/store/vsv3dax6czpp5xnvks4zm1a2yg694hqv-guix-daemon-1.?" ?) ?)
>>   1449:15  3 (loop #f)
>>    746:11  2 (process-stderr #<store-connection 256.99 1e7edc80> _)
>> In ./guix/serialization.scm:
>>    101:11  1 (read-int #<input-output: file 10>)
>>      79:6  0 (get-bytevector-n* #<input-output: file 10> 8)
>> ./guix/serialization.scm:79:6: In procedure get-bytevector-n*:
>> ERROR:
>>   1. &nar-error:
>>       file: #f
>>       port: #<input-output: file 10>
>> guix pull: error: You found a bug: the program '/gnu/store/y0a6ck768ixr4zwdn3zg2wvwzn1j2kf6-compute-guix-derivation'
>
> Could it be due to guix-daemon not running in a UTF-8 locale?
>
> IOW, does it help if you run:
>
>   LC_ALL=C.UTF-8 guix-daemon …
>
> ?

Yes, thank you!  I get other backtraces now, but I believe this
particular bug can be closed.

Although maybe 'guix-daemon' want to set LC_ALL=C.UTF-8 internally if it
is known that things won't work with it...

/Simon