* bug#33691: pre-inst-env: "no code for module (gcrypt hash)"
@ 2018-12-09 22:41 Chris Marusich
2018-12-10 8:01 ` swedebugia
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Chris Marusich @ 2018-12-09 22:41 UTC (permalink / raw)
To: 33691
[-- Attachment #1: Type: text/plain, Size: 1996 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#33691: pre-inst-env: "no code for module (gcrypt hash)"
2018-12-09 22:41 bug#33691: pre-inst-env: "no code for module (gcrypt hash)" Chris Marusich
@ 2018-12-10 8:01 ` swedebugia
2018-12-11 7:14 ` Efraim Flashner
2018-12-13 22:56 ` Ludovic Courtès
2 siblings, 0 replies; 6+ messages in thread
From: swedebugia @ 2018-12-10 8:01 UTC (permalink / raw)
To: 33691
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#33691: pre-inst-env: "no code for module (gcrypt hash)"
2018-12-09 22:41 bug#33691: pre-inst-env: "no code for module (gcrypt hash)" Chris Marusich
2018-12-10 8:01 ` swedebugia
@ 2018-12-11 7:14 ` Efraim Flashner
2018-12-13 22:56 ` Ludovic Courtès
2 siblings, 0 replies; 6+ messages in thread
From: Efraim Flashner @ 2018-12-11 7:14 UTC (permalink / raw)
To: Chris Marusich; +Cc: 33691
[-- Attachment #1: Type: text/plain, Size: 2630 bytes --]
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@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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* bug#33691: pre-inst-env: "no code for module (gcrypt hash)"
2018-12-09 22:41 bug#33691: pre-inst-env: "no code for module (gcrypt hash)" Chris Marusich
2018-12-10 8:01 ` swedebugia
2018-12-11 7:14 ` Efraim Flashner
@ 2018-12-13 22:56 ` Ludovic Courtès
2 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2018-12-13 22:56 UTC (permalink / raw)
To: Chris Marusich; +Cc: 33691
Hi Chris,
Chris Marusich <cmmarusich@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’.
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CAEtmmezRtSh5xQaOg3K7MMZb=0v7HuD6H_HuOC6AiyHx1mMpFQ@mail.gmail.com>]
end of thread, other threads:[~2023-05-01 16:08 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-09 22:41 bug#33691: pre-inst-env: "no code for module (gcrypt hash)" Chris Marusich
2018-12-10 8:01 ` swedebugia
2018-12-11 7:14 ` Efraim Flashner
2018-12-13 22:56 ` Ludovic Courtès
[not found] <CAEtmmezRtSh5xQaOg3K7MMZb=0v7HuD6H_HuOC6AiyHx1mMpFQ@mail.gmail.com>
2023-05-01 13:06 ` Rostislav Svoboda
2023-05-01 16:07 ` Josselin Poiret via Bug reports for GNU Guix
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).