Subject: bug#76383: guix time-machine: Failure to compute derivation

From: Simon Tournier <[email-masked]>
Date: Mon, 10 Mar 2025 19:49:36 +0100

Hi,

On Mon, 17 Feb 2025 at 11:32, David <[email-masked]> wrote:

> $ ./contrib/guix/guix-build

Well, it’s difficult to follow what this script is doing…

> Found macOS SDK at 
> '/bitcoin/depends/SDKs/Xcode-15.0-15A240d-extracted-SDK-with-libcxx-headers', 
> using...
> Checking that we can connect to the guix-daemon...
> building

[... MANY STUFF RUN IN PARALLEL ...]

> /gnu/store/mm4gq96ww2smzqdypkf27cdja8in2kda-gnutls-3.7.7.tar.xz.drv...
> |sha256 hash mismatch for 
> /gnu/store/sziaihhn2rs2p95gfn83yi78b9dlj2qi-gnutls-3.7.7.tar.xz:
>    expected hash: 01i1gl15k6qwvxmxx0by1mn9nlmcmym18wdpm7dn9awfsp8474dy
>    actual hash: 0zc8z414h1m8n5pdwm4sainh7d99jhpb4w510lxa6jy17784c7zk
> hash mismatch for store item 
> '/gnu/store/sziaihhn2rs2p95gfn83yi78b9dlj2qi-gnutls-3.7.7.tar.xz'

--8<---------------cut here---------------start------------->8---
$ guix build /gnu/store/mm4gq96ww2smzqdypkf27cdja8in2kda-gnutls-3.7.7.tar.xz.drv --check --no-substitutes
The following derivation will be built:
  /gnu/store/mm4gq96ww2smzqdypkf27cdja8in2kda-gnutls-3.7.7.tar.xz.drv
building /gnu/store/mm4gq96ww2smzqdypkf27cdja8in2kda-gnutls-3.7.7.tar.xz.drv...

Starting download of /gnu/store/1vka8lhfvcb2cdy49gd87nhap26yqkcy-gnutls-3.7.7.tar.xz
>From http://artfiles.org/gnupg.org/gnutls/v3.7/gnutls-3.7.7.tar.xz...
download failed "http://artfiles.org/gnupg.org/gnutls/v3.7/gnutls-3.7.7.tar.xz" 404 "Not Found"

Starting download of /gnu/store/1vka8lhfvcb2cdy49gd87nhap26yqkcy-gnutls-3.7.7.tar.xz
>From http://www.crysys.hu/gnutls/v3.7/gnutls-3.7.7.tar.xz...
following redirection to `https://www.crysys.hu/gnutls/v3.7/gnutls-3.7.7.tar.xz'...
downloading from http://www.crysys.hu/gnutls/v3.7/gnutls-3.7.7.tar.xz ...

warning: rewriting hashes in `/gnu/store/sziaihhn2rs2p95gfn83yi78b9dlj2qi-gnutls-3.7.7.tar.xz'; cross fingers
sha256 hash mismatch for /gnu/store/sziaihhn2rs2p95gfn83yi78b9dlj2qi-gnutls-3.7.7.tar.xz:
  expected hash: 01i1gl15k6qwvxmxx0by1mn9nlmcmym18wdpm7dn9awfsp8474dy
  actual hash:   0ncvc51yxibs395yywm6z4654i3wvv24hrhcgxlsbzrpvihkbsl5
hash mismatch for store item '/gnu/store/sziaihhn2rs2p95gfn83yi78b9dlj2qi-gnutls-3.7.7.tar.xz'
build of /gnu/store/mm4gq96ww2smzqdypkf27cdja8in2kda-gnutls-3.7.7.tar.xz.drv failed
View build log at '/var/log/guix/drvs/mm/4gq96ww2smzqdypkf27cdja8in2kda-gnutls-3.7.7.tar.xz.drv.gz'.
guix build: error: build of `/gnu/store/mm4gq96ww2smzqdypkf27cdja8in2kda-gnutls-3.7.7.tar.xz.drv' failed
--8<---------------cut here---------------end--------------->8---

Argh!  Crossing the fingers had not been enough… But please notice that…

--8<---------------cut here---------------start------------->8---
$ guix build /gnu/store/mm4gq96ww2smzqdypkf27cdja8in2kda-gnutls-3.7.7.tar.xz.drv
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
6.4 MB will be downloaded:
  /gnu/store/sziaihhn2rs2p95gfn83yi78b9dlj2qi-gnutls-3.7.7.tar.xz
substituting /gnu/store/sziaihhn2rs2p95gfn83yi78b9dlj2qi-gnutls-3.7.7.tar.xz...
downloading from https://ci.guix.gnu.org/nar/sziaihhn2rs2p95gfn83yi78b9dlj2qi-gnutls-3.7.7.tar.xz ...
 gnutls-3.7.7.tar.xz  6.1MiB                                               1.7MiB/s 00:04 ▕██████████████████▏ 100.0%

/gnu/store/sziaihhn2rs2p95gfn83yi78b9dlj2qi-gnutls-3.7.7.tar.xz
--8<---------------cut here---------------end--------------->8---

…the item is available.

Well, I do not know if it is a bug or not.

Cheers,
simon