all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* build failed: unexpected EOF reading a line
@ 2017-09-11  4:25 Fredrik Salomonsson
  2017-09-11  7:47 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Fredrik Salomonsson @ 2017-09-11  4:25 UTC (permalink / raw)
  To: help-guix


[-- Attachment #1.1: Type: text/plain, Size: 1435 bytes --]

Hi all,

I'm having issues using guix build. I'm suspecting some misconfiguration on
my end.

Since there are some stuff missing in guix that I use (i3blocks for
example) I thought I could try and create package definitions from them. I
haven't got my GuixSD working yet so I'm using guix running on Arch Linux.

I thought that it might be something wrong with my recipe I was writing. So
I tested to build the GNU Hello package from the manual (Defining Packages
<https://www.gnu.org/software/guix/manual/html_node/Defining-Packages.html#Defining-Packages>).
I copied it into a file called gnu/packages/hello.scm
After that I ran "guix build -L$(pwd) hello".
But I'm getting these errors:

> guix: offload: command not found
> Try `guix --help' for more information.
> guix build: error: build failed: unexpected EOF reading a line
>

Not sure why it complains about missing offload command. I haven't setup it
up but when running "guix offload test" it prints out:

> guix offload: testing 0 build machines defined in
> '/etc/guix/machines.scm'...
>

But that's not what's blocking my, instead it's the EOF error.
My first thought was that I must have missed a newline after the
(define-public hello ...). Turns out that wasn't the case. Any idea what I
have missed? I'm still a complete noob when it comes to guile so I'm not
sure how to debug/trace the error.

I've attached the hello.scm

Thanks.

-- 
s/Fred[re]+i[ck]+/Fredrik/g

[-- Attachment #1.2: Type: text/html, Size: 2256 bytes --]

[-- Attachment #2: hello.scm --]
[-- Type: text/x-scheme, Size: 900 bytes --]

(define-module (gnu packages hello)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (guix licenses)
  #:use-module (gnu packages gawk))

(define-public hello
  (package
    (name "hello")
    (version "2.10")
    (source (origin
              (method url-fetch)
              (uri (string-append "mirror://gnu/hello/hello-" version
                                  ".tar.gz"))
              (sha256
               (base32
                "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i"))))
    (build-system gnu-build-system)
    (arguments '(#:configure-flags '("--enable-silent-rules")))
    (inputs `(("gawk" ,gawk)))
    (synopsis "Hello, GNU world: An example GNU package")
    (description "Guess what GNU Hello prints!")
    (home-page "http://www.gnu.org/software/hello/")
    (license gpl3+)))

;;; hello ends here

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

end of thread, other threads:[~2017-09-13  5:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-11  4:25 build failed: unexpected EOF reading a line Fredrik Salomonsson
2017-09-11  7:47 ` Ludovic Courtès
     [not found]   ` <CABZcOARq30BijDzrJRp1Z3izwaN4b2f5Z5ifSTrQ=0D3SByWfQ@mail.gmail.com>
2017-09-12  7:48     ` Ludovic Courtès
2017-09-13  5:19       ` Fredrik Salomonsson

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.