From: Danny Milosavljevic <dannym@scratchpost.org>
To: <guix-devel@gnu.org>
Subject: Problem bootstrapping Guix - "make update-guix-package" result: no code for module (gcrypt hash)
Date: Thu, 24 Sep 2020 17:47:05 +0200 [thread overview]
Message-ID: <20200924174705.572790b1@scratchpost.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 4037 bytes --]
Hi,
I'm trying to bootstrap current Guix (master) from Guix past (1.1.0 binary
tarball).
The goal is: I want to have only guix-the-package-manager at a specific guix
commit (!) available inside a Docker image.
Because the package "guix" in guix is always behind a little bit, that
means I have to first check out that commit from source code, then use
make update-guix-package in order to update the guix package definition
in gnu/packages/package-management.scm to that commit and then use guix pack
in order to pack guix into a tarball, which I then extract and then copy into
a previously-empty docker image.
Or so I thought.
What I have currently is on https://gitlab.com/daym/guix-on-docker/ .
Especially see Dockerfile.
You can build it on your machine using
$ docker build --build-arg BOOTSTRAP_GUIX_COMMIT_ID=0b21bf6245b36ea21d2eeaf2340a99aa4d5894db .
(or a newer commit--it doesn't matter) and see it fail.
(it will first download https://ftp.gnu.org/gnu/guix/guix-binary-1.1.0.x86_64-linux.tar.xz
and then check out guix anonymously from https://git.savannah.gnu.org/git/guix.git at
the specified commit)
Or you can look at the CI logs on
https://gitlab.com/daym/guix-on-docker/-/pipelines and see it fail there.
The failure is when it does that:
&& ENV="guix environment --pure guix --ad-hoc git guile-readline guile-json guile-zlib guile
-lzlib bash which --" \
&& ${ENV} make update-guix-package \
&& ./pre-inst-env guix pack --verbosity=2 -f tarball --localstatedir -r /tmp/guix.tar.gz --profile-name=current-guix guix \
and it prints the following:
(see https://gitlab.com/daym/guix-on-docker/-/jobs/755694619 )
make[1]: Leaving directory '/master'
accepted connection from pid 17760, user root
git rev-parse HEAD
ff43f128b7c142ae3f758d34137e562e6f7ef0e0
./pre-inst-env "/gnu/store/s08nkx9dzpvn41s4k277p9b27abpcjvp-profile/bin/guile" \
./build-aux/update-guix-package.scm \
"`git rev-parse HEAD`"
accepted connection from pid 17766, user root
source code for commit ff43f128b7c142ae3f758d34137e562e6f7ef0e0: /gnu/store/3bz5q9g2p11pazy4g4vq8x8qp86c7ngh-guix-1.1.0-28.ff43f12-checkout (GC root: guix-1.1.0-28.ff43f12-checkout)
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;; or pass the --no-auto-compile argument to disable.
;;; compiling /master/./build-aux/update-guix-package.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.3/master/build-aux/update-guix-package.scm.go
;;; compiling /master/gnu/packages/package-management.scm
;;; compiled /root/.cache/guile/ccache/3.0-LE-8-4.3/master/gnu/packages/package-management.scm.go
Backtrace:
In ice-9/boot-9.scm:
3223:13 19 (_)
In ice-9/threads.scm:
390:8 18 (_ _)
In ice-9/boot-9.scm:
3507:20 17 (_)
2806:4 16 (save-module-excursion _)
3527:26 15 (_)
In unknown file:
14 (primitive-load-path "guix/store" #<procedure 7f29ec5a9?>)
In guix/store.scm:
23:0 13 (_)
In ice-9/boot-9.scm:
3380:4 12 (define-module* _ #:filename _ #:pure _ #:version _ # _ ?)
3393:24 11 (_)
222:29 10 (map1 (((guix utils)) ((guix config)) ((guix #)) ((?)) ?))
222:29 9 (map1 (((guix config)) ((guix deprecation)) ((guix ?)) ?))
222:29 8 (map1 (((guix deprecation)) ((guix memoization)) ((?)) ?))
222:29 7 (map1 (((guix memoization)) ((guix serialization)) (#) ?))
222:29 6 (map1 (((guix serialization)) ((guix monads)) ((# #)) ?))
222:29 5 (map1 (((guix monads)) ((guix records)) ((guix #)) (#) ?))
222:29 4 (map1 (((guix records)) ((guix base16)) ((guix #)) (#) ?))
222:29 3 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)) # ?))
222:29 2 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) (#) ?))
222:17 1 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #)) # ?))
3300:6 0 (resolve-interface (gcrypt hash) #:select _ #:hide _ # _ ?)
ice-9/boot-9.scm:3300:6: In procedure resolve-interface:
no code for module (gcrypt hash).
What now?
Am I doing it wrong?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next reply other threads:[~2020-09-24 16:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-24 15:47 Danny Milosavljevic [this message]
2020-10-05 12:20 ` Problem bootstrapping Guix - "make update-guix-package" result: no code for module (gcrypt hash) Ludovic Courtès
2020-10-12 8:22 ` Danny Milosavljevic
2020-10-13 13:04 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200924174705.572790b1@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).