From: Fredrik Salomonsson <plattfot@gmail.com>
To: help-guix <help-guix@gnu.org>
Subject: build failed: unexpected EOF reading a line
Date: Sun, 10 Sep 2017 21:25:21 -0700 [thread overview]
Message-ID: <CABZcOAS0+P+qgv+aUk6bB-8XLfxgJpT10vGTUT2mpoqGctcQcQ@mail.gmail.com> (raw)
[-- 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
next reply other threads:[~2017-09-11 4:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-11 4:25 Fredrik Salomonsson [this message]
2017-09-11 7:47 ` build failed: unexpected EOF reading a line 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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CABZcOAS0+P+qgv+aUk6bB-8XLfxgJpT10vGTUT2mpoqGctcQcQ@mail.gmail.com \
--to=plattfot@gmail.com \
--cc=help-guix@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 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.