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

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 23 Dec 2024 21:10:02 +0000

Your bug report

#74925: failed to compute the derivation for Guix

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].

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

Subject: Re: bug#74925: failed to compute the derivation for Guix
From: Simon Josefsson <[email-masked]>
To: Ludovic Courtès <[email-masked]>
Cc: [email-masked]
Date: Mon, 23 Dec 2024 22:07:06 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

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

Subject: failed to compute the derivation for Guix
From: Simon Josefsson <[email-masked]>
To: [email-masked]
Date: Tue, 17 Dec 2024 11:15:05 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi

I am running 'guix pull' on arm64 from Debian, and ran into the
backtrace below.

The following commands reproduce it inside a fresh Debian trixie
container in a GitLab shared runner:

apt-get update
apt-get install -y guix podman ca-certificates
(guix-daemon --disable-chroot --build-users-group=_guixbuild &)
guix pull --url=https://gitlab.com/debdistutils/guix/mirror.git

Complete output can be shown here:

https://gitlab.com/debdistutils/guix/container/-/jobs/8661689121

GitLab job code here:

https://gitlab.com/debdistutils/guix/container/-/blob/a50ac13449cab37c8eafa88ad0537ecf8051b4e5/.gitlab-ci.yml#L35

Any ideas?  Some reources problem isn't impossible, the node should have
8 vCPUs, 32GB RAM and 100GB disk.

/Simon

Backtrace:
In guix/scripts/substitute.scm:
   856:15 19 (_)
    650:2 18 (process-substitution _ _ _ #:cache-urls _ #:acl _ # _ # ?)
In ice-9/boot-9.scm:
  1752:10 17 (with-exception-handler _ _ #:unwind? _ # _)
In guix/scripts/substitute.scm:
    525:9 16 (download-nar #<<narinfo> path: "/gnu/store/kplxgw9yzz?> ?)
In guix/serialization.scm:
    424:4 15 (fold-archive _ _ _ _)
   468:33 14 (read "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwjb-lib?" ?)
   468:33 13 (read "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwjb-lib?" ?)
   468:33 12 (read "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwjb-lib?" ?)
   468:33 11 (read "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwjb-lib?" ?)
   442:24 10 (read "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwjb-lib?" ?)
   525:24  9 (_ "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwjb-libgit?" ?)
In ice-9/ports.scm:
   467:11  8 (call-with-output-file "/gnu/store/kplxgw9yzzf09d6vx56?" ?)
In unknown file:
           7 (open-file "/gnu/store/kplxgw9yzzf09d6vx564fwc316vicwj?" ?)
In ice-9/boot-9.scm:
  1685:16  6 (raise-exception _ #:continuable? _)
  1683:16  5 (raise-exception _ #:continuable? _)
  1685:16  4 (raise-exception _ #:continuable? _)
  1780:13  3 (_ #<&compound-exception components: (#<&error> #<&orig?>)
Backtrace:
          18 (primitive-load "/gnu/store/y0a6ck768ixr4zwdn3zg2wvwzn1j2kf6-compute-guix-derivation")
In ice-9/eval.scm:
    155:9 17 (_ _)
    159:9 16 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#<directory (guile-u?> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
In ice-9/boot-9.scm:
    152:2 15 (with-fluid* _ _ _)
    152:2 14 (with-fluid* _ _ _)
In ./guix/store.scm:
  2210:24 13 (run-with-store #<store-connection 256.99 1e7edc80> #<procedure 2b25cbe0 at ./guix/self.scm:1365:2 (st?> ?)
   2038:8 12 (_ #<store-connection 256.99 1e7edc80>)
In ./guix/gexp.scm:
   300:22 11 (_ #<store-connection 256.99 1e7edc80>)
   1218:2 10 (_ #<store-connection 256.99 1e7edc80>)
   1085:2  9 (_ #<store-connection 256.99 1e7edc80>)
    926:4  8 (_ #<store-connection 256.99 1e7edc80>)
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'
failed to compute the derivation for Guix (version: "c3290cee6add60b7e56f5f919d9498d78542790a"; system: "aarch64-linux";
host version: "1.4.0"; pull-version: 1).
Please report the COMPLETE output above by email to <[email-masked]>.