pre-inst-env: "no code for module (gcrypt hash)"

  • Done
  • quality assurance status badge
Details
6 participants
  • Chris Marusich
  • Josselin Poiret
  • Efraim Flashner
  • Ludovic Courtès
  • Rostislav Svoboda
  • swedebugia
Owner
unassigned
Submitted by
Chris Marusich
Severity
normal

Debbugs page

C
C
Chris Marusich wrote on 9 Dec 2018 14:41
(address . bug-guix@gnu.org)
87bm5uz5ks.fsf@gmail.com
Hi,

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

Toggle snippet (35 lines)
$ 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)

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
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlwNmgMACgkQ3UCaFdgi
Rp0H1BAAp95gzJYSgpJXQ0M0Y0wprc6Ik+x7aIV8inlL9F5FoQWkh4WX7j46pZsR
gFqgk2I4byRs87qdH6kZXFctcI9tCcX2rwVek9M7F0SNpiDS0ywEhifE5LDZQcor
y1BCAs8jVkQjSMAxodNSLQy56recenqgJ20n9S40Wmqi6re6a7CXujKSEv3hMu3c
24Dd3uF7ZxSPenqxOs+Op5dylgGkqpN7k4hJohkHsiJddVSN++2CV67aeoFejqqK
RTIP+aASIBIMm/GMUDCbkIObVYp/UrDb/9Mr6hhJtbyEwoQ07cvRXwS8WUvdBqw1
tM0QQfktKnpMEd2YF+4NHe1Z3Qk4UBKZCVrbzRMxTfQ+Sy6zj4mVk2fU9QxVrUj4
lsRbKu9Ao1qJjm2XQyvTCSSqvdKyct+s3NHHUMCS8CKkuD/iFfsk/BtMFkDMFhuC
ZAxIoiJ5s6hcC37ahbmb7CyQz4vaLz8CC6wr9Un/3FV0ya8cwTeEWmgnLGjpDIcp
gOnuX7MthHUMpJQLVPuIrtnmLMnVOBNxKSoa4SW4WYQBUKa1ckyl3UHqcb0gPBeZ
v0FcbQt7cRaq3X4l3jLKztw//+5Qk0VcOFItL0dnq1TZVUxYpIo1i6wBifFehmOt
5wR0QfDAJl8nrj5ep9o9ol63kGuw1ioexp44WUtIo4ESWgSjAYY=
=vd7B
-----END PGP SIGNATURE-----

S
S
swedebugia wrote on 10 Dec 2018 00:01
(address . bug-guix@gnu.org)
cdb8612f-759d-0ef2-c343-1ba2793b3eab@riseup.net
On 2018-12-09 23:41, Chris Marusich wrote:
Toggle quote (49 lines)
> 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
E
E
Efraim Flashner wrote on 10 Dec 2018 23:14
(name . Chris Marusich)(address . cmmarusich@gmail.com)(address . 33691@debbugs.gnu.org)
20181211071444.GB1323@macbook41
On Sun, Dec 09, 2018 at 02:41:07PM -0800, Chris Marusich wrote:
Toggle quote (49 lines)
> 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
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAlwPY98ACgkQQarn3Mo9
g1FE2A//VSTuYU0scoV8WgG9TYFME+54GV7GTfZ5G0fooJtEljBXi4IljJYmidAH
829ySKNXunSnDaL62NWrPLYFlQAnfxWgzoBcKuIHZoREHi4k3q7qvyw/2ykH3y5t
cBLUc58a/5JcSxa3nLTz0bmy3IUnfRp7L802/Nx4Tm9UO7lytrvm7sHrql9XeGtW
ZYiWuGPChIjSHyN+0EolbSL9oT6F6W/sVoND5699HocV+CO/o7UMj4OQDibXKaN3
lkSGNo3BB5oeh7SKwDpe90E9eaJovbhqjWCRru2TTZvyE1r1tSQuzvOtoUz5g0Gg
yz9iLlx49UorOjIX4dV6Xg5bO1We4zGoyqrpht3bxt/mnSr24V+17+Otbu6gSiyB
6C7rnR2yJ10f6RIrMr86NHf2UoIRYZxh2QJGeQwwKUl6zoUcyACGVX80zVndXNj/
d6y+pEgK9bQ2qQEyE8+5wmOK7+z9erRuJWfZTY3pFbXwB2nYcHEXrBOBX4K5EEpP
KsdmWVxBbZgs9XuUYB4dSc7oJYLCORKfX0nfHD/VpKykAl4FN3z/nexVD2hAVzcB
v7dVUtxlcHe7f4npg49gLOBRraBDoR8Pj3HyCgCY2LQd/TQoc0njsGkGmoIbV7Gf
Z9NrTqNjxmnVILLNg30aiBD2kPUsdCd8vBPbi5thlJVGdFWczAQ=
=MylA
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 13 Dec 2018 14:56
(name . Chris Marusich)(address . cmmarusich@gmail.com)(address . 33691@debbugs.gnu.org)
87k1kd8295.fsf@gnu.org
Hi Chris,

Chris Marusich <cmmarusich@gmail.com> skribis:

Toggle quote (2 lines)
> $ sudo ./pre-inst-env guix system --fallback reconfigure ~/config.scm

[...]

Toggle quote (6 lines)
> 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’.
L
L
Ludovic Courtès wrote on 13 Dec 2018 15:00
control message for bug #33691
(address . control@debbugs.gnu.org)
87imzx8220.fsf@gnu.org
tags 33691 notabug
close 33691
R
R
Rostislav Svoboda wrote on 1 May 2023 06:03
(name . GNU bug tracker automated control server)(address . control@debbugs.gnu.org)
CAEtmmewmd0EAtiY33ZS_hCANoBLbiBgXEP640YNfhbBqV2G=Kg@mail.gmail.com
unarchive 33691
R
R
Rostislav Svoboda wrote on 1 May 2023 06:06
(address . 33691@debbugs.gnu.org)
CAEtmmexEnzQ2fvUhOh+qN5etonuOzHokFqqYeCjRAajW_sEV4w@mail.gmail.com
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
J
J
Josselin Poiret wrote on 1 May 2023 09:07
87a5yo11d3.fsf@jpoiret.xyz
Hi Rostislav,

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

Toggle quote (10 lines)
> 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
-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEOSSM2EHGPMM23K8vUF5AuRYXGooFAmRP49gQHGRldkBqcG9p
cmV0Lnh5egAKCRBQXkC5Fhcaio2QC/9u2MS2NKu/704k8SSJX7ALPvqHInvp/F4F
wXCSiAA4yCbPkCTAAYu9RHRGa5vpSWkvZwmIuEcAz8XbKOYjPie7EOVdkihIGFYr
Qyuvh+nl2p+a0uysujr0r9BlDRDdaBn/Z2DV4JHA7bzGixUiCMN85Mk6VUfSj4aW
0X0whJ7YdDnZwLnkjhZNProbw7rpedc7er5BaluItCVdc2c/fO26qEYRNFjAwtEc
8dJNxw2QQvAcshReEvFv24YBAy5sm7fqIg2W7Xek8OSHON4AhAxyCBwPqdVa87OI
WtU3Pe7/7ifThbAWMAc8CZ3p63Q0UJI1Q2zh0FrXThDMhW/q+3h7vI/zmuAGyAog
VB/KYz2sjWxN6hs5O+tqKVz/j5s3zBj7AxKgtVRvXB65r0ehWF1fq52Vb/v47rWV
qYdndk+Jmr80Jqpr2mFveXaWaGkx3zolWABpztw68P42lCNSImgF9SzOZ8ozP3Ld
3NvhUFKnZtXU4vB8JseClB0KZHF0LSk=
=kgQn
-----END PGP SIGNATURE-----

?
Your comment

This issue is archived.

To comment on this conversation send an email to 33691@patchwise.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 33691
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch