Subject: Re: bug#33691: pre-inst-env: "no code for module (gcrypt hash)"

From: Ludovic Courtès <[email-masked]>
Date: Thu, 13 Dec 2018 23:56:22 +0100

Hi Chris,

Chris Marusich <[email-masked]> skribis:

> $ sudo ./pre-inst-env guix system --fallback reconfigure ~/config.scm 

[...]

> In unknown file:
>            0 (scm-error misc-error #f "~A ~S" ("no code for modu…" …) …)
>
> ERROR: In procedure scm-error:
> no code for module (gcrypt hash)

As others wrote, this looks like an environment issue.  Try:

  sudo -E ./pre-inst-env guix system …

so that your user’s GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH are
preserved.

HTH,
Ludo’.