unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* ice-9/eval.scm:142:16: In procedure compile-top-call:
@ 2020-03-08 22:18 Jeremy Korwin-Zmijowski
  2020-03-09 10:02 ` Pierre Neidhardt
  0 siblings, 1 reply; 5+ messages in thread
From: Jeremy Korwin-Zmijowski @ 2020-03-08 22:18 UTC (permalink / raw)
  To: help-guix mailing list

Hey Guixters !

I am still building my dummy package definition. I restarted some steps
back and know I am facing something weird to me :

   $ echo \
   '(use-modules
    (guix packages)
    (guix build-system emacs)
    (guix licenses)
    (guix git-download))
   (package
    (name "")
    (version "")
    (source
     (origin
      (uri (git-reference (url "") (commit "")))
      (method git-fetch)
      (sha256 (base32 ""))))
    (build-system emacs-build-system)
    (synopsis "")
    (description "")
    (license bsd-3)
    (home-page ""))' > /tmp/dummy-package-definition.scm

   $ ./pre-inst-env guix build -f /tmp/dummy-package-definition.scm 
   ice-9/eval.scm:142:16: In procedure compile-top-call:
   error: git-reference: unbound variable
   hint: Did you forget `(use-modules (guix git-download))'?

Do you know why Guix doesn't see my import ?

Jérémy

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ice-9/eval.scm:142:16: In procedure compile-top-call:
  2020-03-08 22:18 ice-9/eval.scm:142:16: In procedure compile-top-call: Jeremy Korwin-Zmijowski
@ 2020-03-09 10:02 ` Pierre Neidhardt
  2020-03-09 10:17   ` Jérémy Korwin-Zmijowski
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre Neidhardt @ 2020-03-09 10:02 UTC (permalink / raw)
  To: Jeremy Korwin-Zmijowski, help-guix mailing list

[-- Attachment #1: Type: text/plain, Size: 593 bytes --]

Hi!

Actually I don't get this error.  I get

--8<---------------cut here---------------start------------->8---
guix build: error: derivation `/gnu/store/78dk4v22xwzxrvl7wrjl1g67qrf1yd37-git-checkout.drv' has incorrect output `/gnu/store/7ygy97wz9d1zcbz3k2kg1ga9g389bd7b-git-checkout', should be `/gnu/store/mnkrx2xpxnqaizmylyya8ilvmym7w0b7-git-checkout'
--8<---------------cut here---------------end--------------->8---

This is because the URL cannot be empty.
Beyond that, you must specify a name and a version if I'm not mistaken.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ice-9/eval.scm:142:16: In procedure compile-top-call:
  2020-03-09 10:02 ` Pierre Neidhardt
@ 2020-03-09 10:17   ` Jérémy Korwin-Zmijowski
  2020-03-09 12:10     ` Julien Lepiller
  0 siblings, 1 reply; 5+ messages in thread
From: Jérémy Korwin-Zmijowski @ 2020-03-09 10:17 UTC (permalink / raw)
  To: Pierre Neidhardt, help-guix mailing list

Hi Pierre !

Thank you for the feedback of your test. And the insight.

I did it with a recent guix built from sources.
But could be something wrong with my operating procedure...

Jérémy

Le 9 mars 2020 11:02:56 GMT+01:00, Pierre Neidhardt <mail@ambrevar.xyz> a écrit :
>Hi!
>
>Actually I don't get this error.  I get
>
>--8<---------------cut here---------------start------------->8---
>guix build: error: derivation
>`/gnu/store/78dk4v22xwzxrvl7wrjl1g67qrf1yd37-git-checkout.drv' has
>incorrect output
>`/gnu/store/7ygy97wz9d1zcbz3k2kg1ga9g389bd7b-git-checkout', should be
>`/gnu/store/mnkrx2xpxnqaizmylyya8ilvmym7w0b7-git-checkout'
>--8<---------------cut here---------------end--------------->8---
>
>This is because the URL cannot be empty.
>Beyond that, you must specify a name and a version if I'm not mistaken.
>
>-- 
>Pierre Neidhardt
>https://ambrevar.xyz/

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ice-9/eval.scm:142:16: In procedure compile-top-call:
  2020-03-09 10:17   ` Jérémy Korwin-Zmijowski
@ 2020-03-09 12:10     ` Julien Lepiller
  2020-03-10 10:41       ` Jeremy Korwin-Zmijowski
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Lepiller @ 2020-03-09 12:10 UTC (permalink / raw)
  To: help-guix, Jérémy Korwin-Zmijowski, Pierre Neidhardt

Le 9 mars 2020 06:17:24 GMT-04:00, "Jérémy Korwin-Zmijowski" <jeremy@korwin-zmijowski.fr> a écrit :
>Hi Pierre !
>
>Thank you for the feedback of your test. And the insight.
>
>I did it with a recent guix built from sources.
>But could be something wrong with my operating procedure...
>
>Jérémy
>
>Le 9 mars 2020 11:02:56 GMT+01:00, Pierre Neidhardt <mail@ambrevar.xyz>
>a écrit :
>>Hi!
>>
>>Actually I don't get this error.  I get
>>
>>--8<---------------cut here---------------start------------->8---
>>guix build: error: derivation
>>`/gnu/store/78dk4v22xwzxrvl7wrjl1g67qrf1yd37-git-checkout.drv' has
>>incorrect output
>>`/gnu/store/7ygy97wz9d1zcbz3k2kg1ga9g389bd7b-git-checkout', should be
>>`/gnu/store/mnkrx2xpxnqaizmylyya8ilvmym7w0b7-git-checkout'
>>--8<---------------cut here---------------end--------------->8---
>>
>>This is because the URL cannot be empty.
>>Beyond that, you must specify a name and a version if I'm not
>mistaken.
>>
>>-- 
>>Pierre Neidhardt
>>https://ambrevar.xyz/

Hi Jérémy,

I also get the same error as Pierre, and I copied your file precisely, on a recent guix. I don't think specifying a URL will help, but specifying a hash definetely does. To get a valid hash (but not necessarily the one you are looking for), you can use "guix hash <some-file>". This allows the baild process to start here, although it fails to download anything apart from build-system packages, of course.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: ice-9/eval.scm:142:16: In procedure compile-top-call:
  2020-03-09 12:10     ` Julien Lepiller
@ 2020-03-10 10:41       ` Jeremy Korwin-Zmijowski
  0 siblings, 0 replies; 5+ messages in thread
From: Jeremy Korwin-Zmijowski @ 2020-03-10 10:41 UTC (permalink / raw)
  To: Julien Lepiller, help-guix, Pierre Neidhardt

Hello Guixters!

Hope you are doing well. 

Thank you, Pierre and Julien, for your answers.

I am still looking for a convenient (but almost clean) way to work on
my package definition. Maybe I push it too much, I don't know.

I freshly cloned and built Guix from sources this morning. And I still
encounter this strange behavior... Which I don't when I am in a pure
environment...

   $ guix environment --pure guix
   [dev]$ echo '(use-modules (guix packages) (guix build-system emacs)
   (guix licenses) (guix git-download)) (package (name "") (version "")
   (source (origin (uri (git-reference (url "") (commit ""))) (method
   git-fetch) (sha256 (base32 "")))) (build-system emacs-build-system)
   (synopsis "") (description "") (license bsd-3) (home-page ""))' >
   /tmp/dummy-package-definition.scm
   [dev]$ ./pre-inst-env guix build -f /tmp/dummy-package-
   definition.scm
   guix build: error: derivation
   `/gnu/store/fkr651kwnllq46550ml6qjavi015d21d-git-checkout.drv' has
   incorrect output `/gnu/store/7ygy97wz9d1zcbz3k2kg1ga9g389bd7b-git-
   checkout', should be `/gnu/store/0fd9p27axy1jdw7fv29fa8i3sa0vajbl-
   git-checkout'
   [dev]$ ^C
   [dev]$ exit
   $ echo '(use-modules (guix packages) (guix build-system emacs) (guix
   licenses) (guix git-download)) (package (name "") (version "")
   (source (origin (uri (git-reference (url "") (commit ""))) (method
   git-fetch) (sha256 (base32 "")))) (build-system emacs-build-system)
   (synopsis "") (description "") (license bsd-3) (home-page ""))' >
   /tmp/dummy-package-definition.scm
   $ ./pre-inst-env guix build -f /tmp/dummy-package-definition.scm
   ice-9/eval.scm:142:16: In procedure compile-top-call:
   error: git-reference: unbound variable
   hint: Did you forget `(use-modules (guix git-download))'?

Here is the Guix version from source :

   $ ./pre-inst-env guix --version
   guix (GNU Guix) 1.0.1.12434-51f30-dirty
   Copyright (C) 2020 the Guix authors
   License GPLv3+: GNU GPL version 3 or later <
   http://gnu.org/licenses/gpl.html>
   This is free software: you are free to change and redistribute it.
   There is NO WARRANTY, to the extent permitted by law.

And the one on my system :

   $ guix --version
   guix (GNU Guix) 4f236f84a964c5d7071a08407f5b602dcb14c8ad
   Copyright © 2020 les auteurs de Guix
   Licence GPLv3+ : GNU GPL version 3 ou ultérieure <
   http://www.gnu.org/licenses/gpl.fr.html>
   Ceci est un logiciel libre : vous êtes libre de le modifier et de le
   redistribuer.
   Il n'y a AUCUNE GARANTIE, dans les limites permises par la loi.

I am running on Ubuntu 18.04.4 LTS

Is their any reason, any bug in my process ?

Jérémy

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-10 10:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-08 22:18 ice-9/eval.scm:142:16: In procedure compile-top-call: Jeremy Korwin-Zmijowski
2020-03-09 10:02 ` Pierre Neidhardt
2020-03-09 10:17   ` Jérémy Korwin-Zmijowski
2020-03-09 12:10     ` Julien Lepiller
2020-03-10 10:41       ` Jeremy Korwin-Zmijowski

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).