Hi,
On Mon, 25 Aug 2025 at 21:07, Timothee Mathieu <[email protected]>
wrote:
> $ guix time-machine -C channels.scm -- show nss-certs | grep location
> location: gnu/packages/certs.scm:131:2
I do know understand how these both...
> 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))' ?
...are possible.
> For the other commands,
>
> $ guix gc --referrers $inferior
>
> Returns nothing
Ahah!! Sorry my bad. Oop copy paste… It was missing:
--8<---------------cut here---------------start------------->8---
$ guix time-machine -C channels.scm
/home/simon/.cache/guix/inferiors/elqniarazslbnlsqgu5nzml2vwde7yks6hrdogagjslnewegsksq
$ inferior=$(guix time-machine -C channels.scm)
--8<---------------cut here---------------end--------------->8---
Ok, then let get the associated profile:
--8<---------------cut here---------------start------------->8---
$ guix gc --referrers $inferior
/gnu/store/nw6nys0kg8118kxc9ks19n4zq2zpc0d0-profile
$ profile=$(guix gc --referrers $inferior)
--8<---------------cut here---------------end--------------->8---
And let list the references of this profile:
--8<---------------cut here---------------start------------->8---
$ guix gc --references $profile
/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---
Could you provide all the outputs?
Then let remove what retains the cache:
--8<---------------cut here---------------start------------->8---
$ rm $inferior
--8<---------------cut here---------------end--------------->8---
Then when you run “guix gc” it will delete these “dead” items.
The command
$ guix gc -D $(guix gc --references $profile)
was to avoid the removal of all the others “dead” items. Maybe you wanted
to
keep some… Too late, oops, sorry. :-) But the ones we would like to clean
are still there I guess before the `rm` line above.
Now, the cache is cleaned. Therefore, could you run again
guix time-machine -C channels.scm
? And provide the output of
guix gc --references \
$(guix gc --referrers \
$(guix time-machine -C channels.scm))
> Instead, I substituted with doing just a guix gc (which maybe I
> should do more frequently :p).
Well, this only clean the time-machine cache if you have not run
recently. Which is not the case, I guess. Therefore, you have not
rebuilt the local cache associated to the time-machine. (You have
cleaned all the “dead” store items but the time-machine at hand was
supposed to be “dead”; see above :-))
> $ guix time-machine --channels=channels.scm -- build python-jax
Instead of that, could you provide the output of
guix time-machine -C channels.scm -- build python-jax -n --no-grafts
? And the output of
$ guix time-machine -C channels.scm -- build python-jax -d --no-grafts
/gnu/store/m18wif1qmym296jw2pc2hsg7zrrdvbh8-python-jax-0.4.28.drv
?
> Remark that I reproduced this bug on two computers.
Weird. And I cannot reproduce. )-:
Do you run Guix System on Guix on the top of which distro?
Cheers,
simon