Re,

On Mon, 25 Aug 2025 at 23:11, Timothee Mathieu <[email protected]>
wrote:

> $ guix time-machine -C channels.scm
>
/home/tmathieu/.cache/guix/inferiors/elqniarazslbnlsqgu5nzml2vwde7yks6hrdogagjslnewegsksq

OK, good.

> $ inferior=$(guix time-machine -C channels.scm)
>
> $ guix gc --referrers $inferior
> /gnu/store/0y5pd6dyzh2bf0xghp35pnhhpzp6fl39-fonts-dir.drv
> /gnu/store/3gk1ws5cd7lzsszb5rj7j4nf0z6z1pm2-fonts-dir.drv
> /gnu/store/7zmlq7qmywdl24s105br56hj569cfwwl-info-dir.drv
> /gnu/store/9g6y370dkbqyyw0lyikzn2q8skrrkfl3-info-dir.drv
> /gnu/store/hn1y38cm14s3symhqa6gwsx9ncc49x62-ca-certificate-bundle.drv
> /gnu/store/knk5z194masymyhca9g9qwq8j2x50kbz-emacs-subdirs.drv
> /gnu/store/pg632gs7n6nfdysajxkg4238g7341myl-ca-certificate-bundle.drv
> /gnu/store/x61l4cvp38mp179cafnlb4hh1mz7y3ds-emacs-subdirs.drv
> /gnu/store/9m9qslk48lv5pa36hk9n46xxnz3yw2jz-profile.drv
> /gnu/store/pq8fd6pawkb5w96nk2wkdknh9m943ass-profile.drv
> /gnu/store/r9imsxsryg3lsh52p8f7bjrzp5hx154i-profile
> /gnu/store/nw6nys0kg8118kxc9ks19n4zq2zpc0d0-profile
> /gnu/store/hj26a084miccwi8aqv9d5y69knhjf9bj-profile

Hum, I miss why you get all that.  It’s weird that you have three
profiles here.

Could you provide the output of

    guix gc --derivers $inferior

?

> $ profile=$(guix gc --referrers $inferior)

Because you all these derivations and 3 profiles above, here the
variable $profile isn’t the profile that I expected…

> $ guix gc --references $profile
> guix gc: erreur : path
`/gnu/store/0y5pd6dyzh2bf0xghp35pnhhpzp6fl39-fonts-dir.drv
> ' is not valid

…however this is also unexpected.  Somehow, I would expect something
like:

--8<---------------cut here---------------start------------->8---
$ guix gc --references
/gnu/store/h73qvv7iljwk2fsz84q282jmr02jfg8y-fonts-dir.drv
/gnu/store/8y97gfl4rzjmizfswx34hs36w66aa96g-mkfontdir-1.0.7.drv
/gnu/store/9fypczkl6mnii90mgwaanil5g6226gbf-module-import
/gnu/store/9nbpljaijxd5615sjnz8s2jspw8jw9a0-mkfontscale-1.2.3.drv
/gnu/store/bz83qk3mjwifn7ib6wpkid0v9l9hdgrg-guile-3.0.9.drv
/gnu/store/f6bcnz9p2i82y8cckk5k60j9622hhd69-fonts-dir-builder
/gnu/store/in35p1g3s6fvbxk83j7s9y4yj6gbykca-guix-science.drv
/gnu/store/mz26n1377c6s9vz860vps2hj21rcayfz-module-import-compiled.drv
/gnu/store/zx2cd0cmgli0qjid6x8q2w081mzzn7jz-guix-52d82e555.drv
--8<---------------cut here---------------end--------------->8---


> So here I seem to get an error, some part of the profile is not
> valid. Although, I checked, the file
> /gnu/store/0y5pd6dyzh2bf0xghp35pnhhpzp6fl39-fonts-dir.drv  does
> exists. Anyway, I still did the other commands.
>
> $ rm $inferior
> $ guix gc -D $(guix gc --references $profile)
> guix gc: erreur : path
`/gnu/store/0y5pd6dyzh2bf0xghp35pnhhpzp6fl39-fonts-dir.drv
> ' is not valid

Hum, this error is unexpected.  Could you report the output of

    guix gc --list-live | grep
0y5pd6dyzh2bf0xghp35pnhhpzp6fl39-fonts-dir.drv

and

    guix gc --list-dead | grep
0y5pd6dyzh2bf0xghp35pnhhpzp6fl39-fonts-dir.drv

?  And if both outputs are empty,

   guix gc --list-live | grep fonts-dir\.drv | wc -l

and

   guix gc --list-dead | grep fonts-dir\.drv | wc -l

?

> $ guix time-machine -C channels.scm
> <<<< I cut here a lot of substitute downloads >>>
>
/home/tmathieu/.cache/guix/inferiors/elqniarazslbnlsqgu5nzml2vwde7yks6hrdogagjslnewegsksq

Good.

> $ guix gc --references                    \
>      $(guix gc --referrers                  \
>         $(guix time-machine -C channels.scm))
>
/gnu/store/5zad9v0icvp9l9iadfyxwcycik43x8pm-guile-bytestructures-1.0.10.drv
> /gnu/store/6a152xj4s049kpj8cznqpkpgsliywm1v-guile-git-0.10.0.drv
> <<< I cut here, this list a bunch of drv files in the store >>>

Well, I’m interested all the output. :-)

For example, I get this:

--8<---------------cut here---------------start------------->8---
$ guix gc --references $(guix gc --referrers $(guix time-machine -C
channels.scm))
/gnu/store/30j7azqpy63m251nr887g748w18cki6r-guix-science
/gnu/store/asljmlgl7c2lw710vvv7n490i5lnw0xk-info-dir
/gnu/store/mzdzf2fqzafx25vwssgpwpjp6x9ga3br-emacs-subdirs
/gnu/store/nw6nys0kg8118kxc9ks19n4zq2zpc0d0-profile
/gnu/store/nxg5z5g7fh1c5vcrzv6d53xnaxxxnz2v-guix-52d82e555
/gnu/store/wpdq87d6azndvb94cfigsfbh2ph7j9aj-guix-package-cache
--8<---------------cut here---------------end--------------->8---

And I was expecting something similar.  Since you get many derivations,
what is the running version of guix-daemon?  Are you running an
unprivileged daemon [1]?

> $ guix time-machine -C channels.scm -- build python-jax -n --no-grafts
> guix-science/build-system/bazel.scm:104:45: In procedure
bazel-vendored-inputs:
> erreur : nss-certs : variable non liée
> conseil : Auriez-vous oublié `(use-modules (gnu packages certs))' ?
>
> $ guix time-machine -C channels.scm -- build python-jax -d --no-grafts
> guix-science/build-system/bazel.scm:104:45: In procedure
bazel-vendored-inputs:
> erreur : nss-certs : variable non liée
> conseil : Auriez-vous oublié `(use-modules (gnu packages certs))' ?
> --8<---------------cut here---------------end--------------->8---
>
> So here it is. the cache cleaning does not seem to change things,
> although there was a small error on the way I don't know if it is
> important.

I think something is twisted with your current Guix.  And it’s hard to
find… especially remotely. :-)  Sorry for the inconvenience.

What do you get if you run

    guix time-machine -q -- time-machine -C channels.scm -- build python-jax

?  Or

    guix time-machine -q --commit=52d82e555119c013cfbf9ad7671a56dc6c1a1f16 \
         -- time-machine -C channels.scm -- build python-jax

?


Cheers,
simon

1: https://hpc.guix.info/blog/2025/03/build-daemon-drops-its-privileges

Reply via email to