Subject: bug#50232: Guix pull as root fails

From: Maxim Cournoyer <[email-masked]>
Date: Sat, 20 Nov 2021 23:41:55 -0500

Hello,

jgart <[email-masked]> writes:

> Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
> Building from this channel:
>   guix      https://git.savannah.gnu.org/git/guix.git	0f853ab
> Computing Guix derivation for 'x86_64-linux'...  building /gnu/store/fkh7acn6qcdyva67ik9z7ss69a4vsh1w-subversion-1.14.1.tar.bz2.drv...
> Backtrace:
>           13 (primitive-load "/gnu/store/61py0qg0d3fizz7f4c6yfgmsyxxdbk7a-compute-guix-derivation")
> In ice-9/eval.scm:
>     155:9 12 (_ _)
>     159:9 11 (_ #(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#(#<directory (guile-u?> ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?) ?))
> In ice-9/boot-9.scm:
>     152:2 10 (with-fluid* _ _ _)
>     152:2  9 (with-fluid* _ _ _)
> In ./guix/store.scm:
>   2108:24  8 (run-with-store #<store-connection 256.99 7f2f16ea4280> _ #:guile-for-build _ #:system _ #:target _)
>    1945:8  7 (_ _)
> In ./guix/gexp.scm:
>    275:18  6 (_ _)
>    1156:2  5 (_ _)
>    1022:2  4 (_ _)
>     868:4  3 (_ _)
> In ./guix/store.scm:
>   1993:12  2 (_ #<store-connection 256.99 7f2f16ea4280>)
>    1395:5  1 (map/accumulate-builds #<store-connection 256.99 7f2f16ea4280> _ _)
>   1406:15  0 (_ #<store-connection 256.99 7f2f16ea4280> _ _)
>
> ./guix/store.scm:1406:15: ERROR:
>   1. &store-protocol-error:
>       message: "build of `/gnu/store/f2x4iww7rb38hcss42nz8frrjiz3m5z3-subversion-1.14.1.drv' failed"
>       status: 1
> guix pull: error: You found a bug: the program '/gnu/store/61py0qg0d3fizz7f4c6yfgmsyxxdbk7a-compute-guix-derivation'
> failed to compute the derivation for Guix (version: "0f853ab7731da4784a24cad7b08d6b9b633f5787"; system: "x86_64-linux";
> host version: "1.3.0"; pull-version: 1).
> Please report it by email to <[email-masked]>.

Do you still have
/gnu/store/f2x4iww7rb38hcss42nz8frrjiz3m5z3-subversion-1.14.1.drv
around?  Does it fail every time with

--8<---------------cut here---------------start------------->8---
guix build /gnu/store/f2x4iww7rb38hcss42nz8frrjiz3m5z3-subversion-1.14.1.drv
--8<---------------cut here---------------end--------------->8---

If not, you've found a nondeterministic failure (nondeterministic
failures in tests are often at cause).

Otherwise, I'm afraid there's not much we can do/know to debug the issue
further.

Thanks,

Maxim