From: Oleg Pykhalov <go.wigust@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 32456@debbugs.gnu.org
Subject: bug#32456: Guile failed to call package-derivation without pre-inst-env
Date: Mon, 20 Aug 2018 23:42:33 +0300 [thread overview]
Message-ID: <876004vkg6.fsf@gmail.com> (raw)
In-Reply-To: <877eklgy5r.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 20 Aug 2018 11:55:28 +0200")
[-- Attachment #1: Type: text/plain, Size: 5760 bytes --]
Hello Ludovic,
Thank you for taking a look.
ludo@gnu.org (Ludovic Courtès) writes:
> Oleg Pykhalov <go.wigust@gmail.com> skribis:
>
>> I have an issue with ‘package-derivation’ procedure. When I use Guile
>> from my user's profile I get an error but not when I use ‘pre-inst-env’.
>>
>> The %load-path is differ only in /home/natsu/src/guix when pre-inst-env.
>>
>> guix (GNU Guix) 689aacc12f1d9c0b511e2010185b2e7a80de5201
>>
>> natsu@magnolia ~$ guile
>> GNU Guile 2.2.4
>> …
>> scheme@(guile-user)> (use-modules (guix) (guix ui) (guix store))
>> scheme@(guile-user)> (define c (open-connection))
>> scheme@(guile-user)> (package-derivation c (@@ (gnu packages base) hello))
>> guix/store.scm:928:31: In procedure add-to-store: Throw to key
>> `srfi-34' with args `(#<condition &nix-protocol-error [message:
>> "regular file expected" status: 1] 28703c0>)'.
>> Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue.
>
> It might be that the Guix in $GUILE_LOAD_PATH is broken in some way.
> Can you check which one that is?
Sure, I hope the following output is what you mean. Let me know if you
want another information, please.
--8<---------------cut here---------------start------------->8---
natsu@magnolia ~/src/guix$ for path in $(printenv GUILE_LOAD_PATH | tr ':' '\n'); do echo -e "\n"; env GUILE_LOAD_PATH=$path pr
intenv GUILE_LOAD_PATH; env GUILE_LOAD_PATH=$path guile -c '(use-modules (guix) (guix ui) (guix store)) (format #t "~s~%" (pack
age-derivation (open-connection) (@@ (gnu packages base) hello)))'; done
/home/natsu/.guix-profile/share/guile/site/2.2
Backtrace:
In guix/packages.scm:
923:16 19 (expand-input #<build-daemon 256.97 20fdaf0> #<package…> …)
878:14 18 (cache! #<weak-table 6/113> #<package perl-boot0@5.26.…> …)
In unknown file:
17 (_ #<procedure thunk ()> #<procedure list _> #<undefined>)
In guix/packages.scm:
1202:22 16 (thunk)
1135:25 15 (bag->derivation #<build-daemon 256.97 20fdaf0> #<<bag…> …)
In srfi/srfi-1.scm:
592:29 14 (map1 (("source" #<origin "mirror://cpan/src/5.0/p…>) …))
592:17 13 (map1 (("make" #<package make-boot0@4.2.1 gnu/pack…>) …))
In guix/packages.scm:
923:16 12 (expand-input #<build-daemon 256.97 20fdaf0> #<package…> …)
878:14 11 (cache! #<weak-table 6/113> #<package make-boot0@4.2.1…> …)
In unknown file:
10 (_ #<procedure thunk ()> #<procedure list _> #<undefined>)
In guix/packages.scm:
1202:22 9 (thunk)
In guix/derivations.scm:
1242:24 8 (build-expression->derivation #<build-daemon 256.97 20…> …)
1004:18 7 (imported-files #<build-daemon 256.97 20fdaf0> ((. #) …) …)
In srfi/srfi-1.scm:
592:29 6 (map1 (("guix/build/gnu-build-system.scm" . "/home/…") …))
592:29 5 (map1 (("guix/build/utils.scm" . "/home/natsu/.guix…") …))
592:29 4 (map1 (("guix/build/gremlin.scm" . "/home/natsu/.gu…") …))
592:17 3 (map1 (("guix/elf.scm" . "/home/natsu/.guix-profile/s…")))
In guix/derivations.scm:
1007:31 2 (_ _)
In guix/store.scm:
948:24 1 (_ #<build-daemon 256.97 20fdaf0> "elf.scm" #f "sha256" …)
928:31 0 (add-to-store #<build-daemon 256.97 20fdaf0> _ #f "sha…" …)
guix/store.scm:928:31: In procedure add-to-store:
Throw to key `srfi-34' with args `(#<condition &nix-protocol-error [message: "regular file expected" status: 1] 3539000>)'.
/run/current-system/profile/share/guile/site/2.2
#<derivation /gnu/store/p2hmc4wv59kxvhvxa1dwjjps0g38ikc1-hello-2.10.drv => /gnu/store/bihfrh609gkxb9dp7n96wlpigiv3krfy-hello-2.10 4c6e500>
/home/natsu/.guix-profile/share/guile/site/2.2
Backtrace:
In guix/packages.scm:
923:16 19 (expand-input #<build-daemon 256.97 114a640> #<package…> …)
878:14 18 (cache! #<weak-table 6/113> #<package perl-boot0@5.26.…> …)
In unknown file:
17 (_ #<procedure thunk ()> #<procedure list _> #<undefined>)
In guix/packages.scm:
1202:22 16 (thunk)
1135:25 15 (bag->derivation #<build-daemon 256.97 114a640> #<<bag…> …)
In srfi/srfi-1.scm:
592:29 14 (map1 (("source" #<origin "mirror://cpan/src/5.0/p…>) …))
592:17 13 (map1 (("make" #<package make-boot0@4.2.1 gnu/pack…>) …))
In guix/packages.scm:
923:16 12 (expand-input #<build-daemon 256.97 114a640> #<package…> …)
878:14 11 (cache! #<weak-table 6/113> #<package make-boot0@4.2.1…> …)
In unknown file:
10 (_ #<procedure thunk ()> #<procedure list _> #<undefined>)
In guix/packages.scm:
1202:22 9 (thunk)
In guix/derivations.scm:
1242:24 8 (build-expression->derivation #<build-daemon 256.97 11…> …)
1004:18 7 (imported-files #<build-daemon 256.97 114a640> ((. #) …) …)
In srfi/srfi-1.scm:
592:29 6 (map1 (("guix/build/gnu-build-system.scm" . "/home/…") …))
592:29 5 (map1 (("guix/build/utils.scm" . "/home/natsu/.guix…") …))
592:29 4 (map1 (("guix/build/gremlin.scm" . "/home/natsu/.gu…") …))
592:17 3 (map1 (("guix/elf.scm" . "/home/natsu/.guix-profile/s…")))
In guix/derivations.scm:
1007:31 2 (_ _)
In guix/store.scm:
948:24 1 (_ #<build-daemon 256.97 114a640> "elf.scm" #f "sha256" …)
928:31 0 (add-to-store #<build-daemon 256.97 114a640> _ #f "sha…" …)
guix/store.scm:928:31: In procedure add-to-store:
Throw to key `srfi-34' with args `(#<condition &nix-protocol-error [message: "regular file expected" status: 1] 27ba7e0>)'.
/run/current-system/profile/share/guile/site/2.2
#<derivation /gnu/store/p2hmc4wv59kxvhvxa1dwjjps0g38ikc1-hello-2.10.drv => /gnu/store/bihfrh609gkxb9dp7n96wlpigiv3krfy-hello-2.10 3933960>
--8<---------------cut here---------------end--------------->8---
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2018-08-20 20:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-16 16:09 bug#32456: Guile failed to call package-derivation without pre-inst-env Oleg Pykhalov
2018-08-20 9:55 ` Ludovic Courtès
2018-08-20 20:42 ` Oleg Pykhalov [this message]
2018-08-21 10:05 ` Ludovic Courtès
2018-08-21 21:02 ` Oleg Pykhalov
2018-08-22 13:32 ` Ludovic Courtès
2018-08-22 21:11 ` Oleg Pykhalov
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=876004vkg6.fsf@gmail.com \
--to=go.wigust@gmail.com \
--cc=32456@debbugs.gnu.org \
--cc=ludo@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).