From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Pykhalov Subject: bug#32456: Guile failed to call package-derivation without pre-inst-env Date: Mon, 20 Aug 2018 23:42:33 +0300 Message-ID: <876004vkg6.fsf@gmail.com> References: <87lg96qoo0.fsf@gmail.com> <877eklgy5r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32776) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frr10-0001VJ-Es for bug-guix@gnu.org; Mon, 20 Aug 2018 16:43:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frr0w-0006gO-8e for bug-guix@gnu.org; Mon, 20 Aug 2018 16:43:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:50925) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1frr0w-0006g7-2p for bug-guix@gnu.org; Mon, 20 Aug 2018 16:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1frr0v-00035p-Uq for bug-guix@gnu.org; Mon, 20 Aug 2018 16:43:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: 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") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 32456@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Ludovic, Thank you for taking a look. ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Oleg Pykhalov skribis: > >> I have an issue with =E2=80=98package-derivation=E2=80=99 procedure. Wh= en I use Guile >> from my user's profile I get an error but not when I use =E2=80=98pre-in= st-env=E2=80=99. >> >> 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 >> =E2=80=A6 >> 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 `(#> "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. =2D-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=3D$path pr intenv GUILE_LOAD_PATH; env GUILE_LOAD_PATH=3D$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 # # =E2=80=A6) 878:14 18 (cache! # # =E2=80=A6) In unknown file: 17 (_ # # #) In guix/packages.scm: 1202:22 16 (thunk) 1135:25 15 (bag->derivation # #< =E2=80=A6) In srfi/srfi-1.scm: 592:29 14 (map1 (("source" #) = =E2=80=A6)) 592:17 13 (map1 (("make" #) = =E2=80=A6)) In guix/packages.scm: 923:16 12 (expand-input # # =E2=80=A6) 878:14 11 (cache! # # =E2=80=A6) In unknown file: 10 (_ # # #) In guix/packages.scm: 1202:22 9 (thunk) In guix/derivations.scm: 1242:24 8 (build-expression->derivation # =E2=80=A6) 1004:18 7 (imported-files # ((. #) =E2=80= =A6) =E2=80=A6) In srfi/srfi-1.scm: 592:29 6 (map1 (("guix/build/gnu-build-system.scm" . "/home/=E2=80=A6")= =E2=80=A6)) 592:29 5 (map1 (("guix/build/utils.scm" . "/home/natsu/.guix=E2=80=A6")= =E2=80=A6)) 592:29 4 (map1 (("guix/build/gremlin.scm" . "/home/natsu/.gu=E2=80=A6")= =E2=80=A6)) 592:17 3 (map1 (("guix/elf.scm" . "/home/natsu/.guix-profile/s=E2=80=A6= "))) In guix/derivations.scm: 1007:31 2 (_ _) In guix/store.scm: 948:24 1 (_ # "elf.scm" #f "sha256" =E2=80= =A6) 928:31 0 (add-to-store # _ #f "sha=E2=80= =A6" =E2=80=A6) guix/store.scm:928:31: In procedure add-to-store: Throw to key `srfi-34' with args `(#)'. /run/current-system/profile/share/guile/site/2.2 # /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 # # =E2=80=A6) 878:14 18 (cache! # # =E2=80=A6) In unknown file: 17 (_ # # #) In guix/packages.scm: 1202:22 16 (thunk) 1135:25 15 (bag->derivation # #< =E2=80=A6) In srfi/srfi-1.scm: 592:29 14 (map1 (("source" #) = =E2=80=A6)) 592:17 13 (map1 (("make" #) = =E2=80=A6)) In guix/packages.scm: 923:16 12 (expand-input # # =E2=80=A6) 878:14 11 (cache! # # =E2=80=A6) In unknown file: 10 (_ # # #) In guix/packages.scm: 1202:22 9 (thunk) In guix/derivations.scm: 1242:24 8 (build-expression->derivation # =E2=80=A6) 1004:18 7 (imported-files # ((. #) =E2=80= =A6) =E2=80=A6) In srfi/srfi-1.scm: 592:29 6 (map1 (("guix/build/gnu-build-system.scm" . "/home/=E2=80=A6")= =E2=80=A6)) 592:29 5 (map1 (("guix/build/utils.scm" . "/home/natsu/.guix=E2=80=A6")= =E2=80=A6)) 592:29 4 (map1 (("guix/build/gremlin.scm" . "/home/natsu/.gu=E2=80=A6")= =E2=80=A6)) 592:17 3 (map1 (("guix/elf.scm" . "/home/natsu/.guix-profile/s=E2=80=A6= "))) In guix/derivations.scm: 1007:31 2 (_ _) In guix/store.scm: 948:24 1 (_ # "elf.scm" #f "sha256" =E2=80= =A6) 928:31 0 (add-to-store # _ #f "sha=E2=80= =A6" =E2=80=A6) guix/store.scm:928:31: In procedure add-to-store: Throw to key `srfi-34' with args `(#)'. /run/current-system/profile/share/guile/site/2.2 # /gnu/store/bihfrh609gkxb9dp7n96wlpigiv3krfy-hello-2.10 3933960> =2D-8<---------------cut here---------------end--------------->8--- Oleg. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEc+OyAXw1EaDPCmAPckbhHGm3lWkFAlt7J7kACgkQckbhHGm3 lWlgAw//R66cOiVNDqNGDgdicExdGe/ltZgrTeaOahXvPTshWir4SXmOceskS6oy RY62/lnvej8v1QGKh0NM+Icu56G4Zcg8uG84/1JQulVKgHhURUZaXL1sn1L1PmjD 92x1a4Y7iiXarHRqup5rXRBX80mcIQLXK7NGdMrsN9ge0dhDmri3+iB8SWu+ERh0 eDxtjdSzpx8ZGvGrj0S9wTLISoCVkeIOf67atsR/ZU8vjgwU/aPNgH1A7jLkfrXz at0fTkI2y56olnY13Q1zc53eybNvAoOgbvZ7w+3bte64SjQkLzODSk0SLhBuWgQk siBkIpIE3M+wmbGYBnf9moEvEhC7Jnwn17TKBSCoRcgUMjKFJnT8j9y+3JYQhbd7 7NBBacSw0AvrewBh3HaKxfJeYPCDZnG8CuE5DV78ulD36WhgCLCQn0gN9oOkvtWn lejJv2VgoLs1Dgsmib3n7OPFxbznsL2gFFLVC7dmmRyvADloCcUxUS5hmTlN0SOI hhsTd1ZGz+k/X+GoHLyEA/5invJBf52vxYpBtxpiui723ERZfj5hfMZJCxtKp/P3 YWY9lM+1wM3OHYiEZLvwUKPD2KgcPakEkQ4QaOLEribPu3gE9krDRbLK2vCxHZWi kk9zJ2xOdhavJ7ytwowzGKc6sKNT8Eh2Xwq4LpO1tiqezD1t4sA= =rX3/ -----END PGP SIGNATURE----- --=-=-=--