GNU bug report logs - #33691
pre-inst-env: "no code for module (gcrypt hash)"

Previous Next

Package: guix;

Reported by: Chris Marusich <cmmarusich <at> gmail.com>

Date: Sun, 9 Dec 2018 22:42:02 UTC

Severity: normal

Tags: notabug

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 33691 in the body.
You can then email your comments to 33691 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#33691; Package guix. (Sun, 09 Dec 2018 22:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chris Marusich <cmmarusich <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 09 Dec 2018 22:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Chris Marusich <cmmarusich <at> gmail.com>
To: bug-guix <at> gnu.org
Subject: pre-inst-env: "no code for module (gcrypt hash)"
Date: Sun, 09 Dec 2018 14:41:07 -0800
[Message part 1 (text/plain, inline)]
Hi,

I tried reconfiguring my system recently using pre-inst-env, using
commit 08861d259b453442c38fe93477bc62d2080b1442.  I got this error:

--8<---------------cut here---------------start------------->8---
$ sudo ./pre-inst-env guix system --fallback reconfigure ~/config.scm 
Password: 
Backtrace:
In ice-9/boot-9.scm:
  2726:13 19 (_)
In ice-9/threads.scm:
    390:8 18 (_ _)
In ice-9/boot-9.scm:
  2994:20 17 (_)
   2312:4 16 (save-module-excursion _)
  3014:26 15 (_)
In unknown file:
          14 (primitive-load-path "guix/store" #<procedure 22f46a0 a…>)
In guix/store.scm:
     20:0 13 (_)
In ice-9/boot-9.scm:
   2874:4 12 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
  2887:24 11 (_)
   222:29 10 (map1 (((guix utils)) ((guix config)) ((guix #)) ((…)) …))
   222:29  9 (map1 (((guix config)) ((guix memoization)) ((guix …)) …))
   222:29  8 (map1 (((guix memoization)) ((guix serialization)) (#) …))
   222:29  7 (map1 (((guix serialization)) ((guix monads)) ((# #)) …))
   222:29  6 (map1 (((guix monads)) ((guix records)) ((guix #)) (#) …))
   222:29  5 (map1 (((guix records)) ((guix base16)) ((guix #)) (#) …))
   222:29  4 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)) # …))
   222:29  3 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) (#) …))
   222:17  2 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #)) # …))
   2803:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ …)
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)
--8<---------------cut here---------------end--------------->8---

I expected pre-inst-env to make all the necessary dependencies
available.  I was surprised that the guix command was unable to find
(gcrypt hash), even though I thought pre-inst-env would make it
available.

Is this a bug, or am I doing something wrong?

-- 
Chris
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#33691; Package guix. (Mon, 10 Dec 2018 08:03:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: swedebugia <swedebugia <at> riseup.net>
To: bug-guix <at> gnu.org
Subject: Re: bug#33691: pre-inst-env: "no code for module (gcrypt hash)"
Date: Mon, 10 Dec 2018 09:01:26 +0100
On 2018-12-09 23:41, Chris Marusich wrote:
> Hi,
> 
> I tried reconfiguring my system recently using pre-inst-env, using
> commit 08861d259b453442c38fe93477bc62d2080b1442.  I got this error:
> 
> --8<---------------cut here---------------start------------->8---
> $ sudo ./pre-inst-env guix system --fallback reconfigure ~/config.scm
> Password:
> Backtrace:
> In ice-9/boot-9.scm:
>    2726:13 19 (_)
> In ice-9/threads.scm:
>      390:8 18 (_ _)
> In ice-9/boot-9.scm:
>    2994:20 17 (_)
>     2312:4 16 (save-module-excursion _)
>    3014:26 15 (_)
> In unknown file:
>            14 (primitive-load-path "guix/store" #<procedure 22f46a0 a…>)
> In guix/store.scm:
>       20:0 13 (_)
> In ice-9/boot-9.scm:
>     2874:4 12 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
>    2887:24 11 (_)
>     222:29 10 (map1 (((guix utils)) ((guix config)) ((guix #)) ((…)) …))
>     222:29  9 (map1 (((guix config)) ((guix memoization)) ((guix …)) …))
>     222:29  8 (map1 (((guix memoization)) ((guix serialization)) (#) …))
>     222:29  7 (map1 (((guix serialization)) ((guix monads)) ((# #)) …))
>     222:29  6 (map1 (((guix monads)) ((guix records)) ((guix #)) (#) …))
>     222:29  5 (map1 (((guix records)) ((guix base16)) ((guix #)) (#) …))
>     222:29  4 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)) # …))
>     222:29  3 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) (#) …))
>     222:17  2 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #)) # …))
>     2803:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ …)
> 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)
> --8<---------------cut here---------------end--------------->8---
> 
> I expected pre-inst-env to make all the necessary dependencies
> available.  I was surprised that the guix command was unable to find
> (gcrypt hash), even though I thought pre-inst-env would make it
> available.
> 
> Is this a bug, or am I doing something wrong?
> 

I ran into this also and solved it with running guix environment guix 
first. Did you try that?

-- 
Cheers
Swedebugia




Information forwarded to bug-guix <at> gnu.org:
bug#33691; Package guix. (Tue, 11 Dec 2018 07:15:06 GMT) Full text and rfc822 format available.

Message #11 received at 33691 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Chris Marusich <cmmarusich <at> gmail.com>
Cc: 33691 <at> debbugs.gnu.org
Subject: Re: bug#33691: pre-inst-env: "no code for module (gcrypt hash)"
Date: Tue, 11 Dec 2018 09:14:44 +0200
[Message part 1 (text/plain, inline)]
On Sun, Dec 09, 2018 at 02:41:07PM -0800, Chris Marusich wrote:
> Hi,
> 
> I tried reconfiguring my system recently using pre-inst-env, using
> commit 08861d259b453442c38fe93477bc62d2080b1442.  I got this error:
> 
> --8<---------------cut here---------------start------------->8---
> $ sudo ./pre-inst-env guix system --fallback reconfigure ~/config.scm 
> Password: 
> Backtrace:
> In ice-9/boot-9.scm:
>   2726:13 19 (_)
> In ice-9/threads.scm:
>     390:8 18 (_ _)
> In ice-9/boot-9.scm:
>   2994:20 17 (_)
>    2312:4 16 (save-module-excursion _)
>   3014:26 15 (_)
> In unknown file:
>           14 (primitive-load-path "guix/store" #<procedure 22f46a0 a…>)
> In guix/store.scm:
>      20:0 13 (_)
> In ice-9/boot-9.scm:
>    2874:4 12 (define-module* _ #:filename _ #:pure _ #:version _ # _ …)
>   2887:24 11 (_)
>    222:29 10 (map1 (((guix utils)) ((guix config)) ((guix #)) ((…)) …))
>    222:29  9 (map1 (((guix config)) ((guix memoization)) ((guix …)) …))
>    222:29  8 (map1 (((guix memoization)) ((guix serialization)) (#) …))
>    222:29  7 (map1 (((guix serialization)) ((guix monads)) ((# #)) …))
>    222:29  6 (map1 (((guix monads)) ((guix records)) ((guix #)) (#) …))
>    222:29  5 (map1 (((guix records)) ((guix base16)) ((guix #)) (#) …))
>    222:29  4 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)) # …))
>    222:29  3 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) (#) …))
>    222:17  2 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #)) # …))
>    2803:6  1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ …)
> 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)
> --8<---------------cut here---------------end--------------->8---
> 
> I expected pre-inst-env to make all the necessary dependencies
> available.  I was surprised that the guix command was unable to find
> (gcrypt hash), even though I thought pre-inst-env would make it
> available.
> 
> Is this a bug, or am I doing something wrong?
> 

I come across this sometimes. I don't have a 100% method of fixing it,
but I normally run:

guix pull
guix environment --pure guix
make clean-go
./bootstrap
./configure --localstatedir=/var --sysconfdir=/etc
exit
./pre-inst-env guix environment guix -- make


-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#33691; Package guix. (Thu, 13 Dec 2018 22:57:02 GMT) Full text and rfc822 format available.

Message #14 received at 33691 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Chris Marusich <cmmarusich <at> gmail.com>
Cc: 33691 <at> debbugs.gnu.org
Subject: Re: bug#33691: pre-inst-env: "no code for module (gcrypt hash)"
Date: Thu, 13 Dec 2018 23:56:22 +0100
Hi Chris,

Chris Marusich <cmmarusich <at> gmail.com> 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’.




Added tag(s) notabug. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 13 Dec 2018 23:01:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 33691 <at> debbugs.gnu.org and Chris Marusich <cmmarusich <at> gmail.com> Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 13 Dec 2018 23:01:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 11 Jan 2019 12:24:10 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Rostislav Svoboda <rostislav.svoboda <at> gmail.com> to control <at> debbugs.gnu.org. (Mon, 01 May 2023 13:05:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#33691; Package guix. (Mon, 01 May 2023 13:08:01 GMT) Full text and rfc822 format available.

Message #25 received at 33691 <at> debbugs.gnu.org (full text, mbox):

From: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>
To: 33691 <at> debbugs.gnu.org
Subject: bug#33691: pre-inst-env: "no code for module (gcrypt hash)"
Date: Mon, 1 May 2023 15:06:34 +0200
I get this error when the order of packages is "wrong". E.g. this fails:

  guix shell --development pwclient guix --pure
  ./pre-inst-env guix build pwclient

but this works:

  guix shell --development guix pwclient --pure
  ./pre-inst-env guix build pwclient

Cheers
Bost




Information forwarded to bug-guix <at> gnu.org:
bug#33691; Package guix. (Mon, 01 May 2023 16:08:02 GMT) Full text and rfc822 format available.

Message #28 received at 33691 <at> debbugs.gnu.org (full text, mbox):

From: Josselin Poiret <dev <at> jpoiret.xyz>
To: Rostislav Svoboda <rostislav.svoboda <at> gmail.com>, 33691 <at> debbugs.gnu.org
Subject: Re: bug#33691: pre-inst-env: "no code for module (gcrypt hash)"
Date: Mon, 01 May 2023 18:07:52 +0200
[Message part 1 (text/plain, inline)]
Hi Rostislav,

Rostislav Svoboda <rostislav.svoboda <at> gmail.com> writes:

> I get this error when the order of packages is "wrong". E.g. this fails:
>
>   guix shell --development pwclient guix --pure
>   ./pre-inst-env guix build pwclient
>
> but this works:
>
>   guix shell --development guix pwclient --pure
>   ./pre-inst-env guix build pwclient

--development only affects the next package specification, not all of
them, hence the behavior you're seeing.

HTH,
-- 
Josselin Poiret
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 30 May 2023 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 330 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.