unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#14968: Building guix on top of Ubuntu 13.04
@ 2013-07-27 14:50 Amirouche Boubekki
  2013-07-29  4:44 ` Nikita Karetnikov
  2013-08-15 11:28 ` Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Amirouche Boubekki @ 2013-07-27 14:50 UTC (permalink / raw)
  To: 14968

I tried to install guix on top of Ubuntu, downloaded guix 0.3 and
installed the required dependecies.

I tried to first run guix pull but failed with an error on /nix/store
with wrong rights, the error provided a command to run which I did.
After that I run again guix pull and try to install zile with the
command guix package -i zile

It fails with the following error:

http://paste.call-cc.org/paste?id=6fdc9664ba6f81cfc0e32d168502945e1d6c95f9

I can't install guile 2.0.9 on ubuntu because of some file clash regarding ffi.

Instead I looked in /nix/store and saw that guile 2.0.9 was installed by guix

so I symlinked it in ~/.guix-profile/bin/

replaced the shebang of /usr/local/bin/guix with  /usr/bin/env guile

Running guix package -i zile still fails with the following error:

http://paste.call-cc.org/paste?id=0372e8cc7d7e2849d1b57a2926e0b359b072fa05

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

* bug#14968: Building guix on top of Ubuntu 13.04
  2013-07-27 14:50 bug#14968: Building guix on top of Ubuntu 13.04 Amirouche Boubekki
@ 2013-07-29  4:44 ` Nikita Karetnikov
  2013-07-29  8:31   ` Amirouche Boubekki
  2013-08-15 11:28 ` Ludovic Courtès
  1 sibling, 1 reply; 6+ messages in thread
From: Nikita Karetnikov @ 2013-07-29  4:44 UTC (permalink / raw)
  To: Amirouche Boubekki; +Cc: 14968

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

> I tried to install guix on top of Ubuntu, downloaded guix 0.3 and
> installed the required dependecies.

What version of Guile did you use?

> I tried to first run guix pull but failed with an error on /nix/store
> with wrong rights, the error provided a command to run which I did.
> After that I run again guix pull and try to install zile with the
> command guix package -i zile

Could you specify all commands that you used (after you had fetched the
tarball)?  So I could try to reproduce the problem.

> It fails with the following error:

> http://paste.call-cc.org/paste?id=6fdc9664ba6f81cfc0e32d168502945e1d6c95f9

Please attach logs in the future.  We shouldn't rely on third party
services.

Backtrace:
In guix/packages.scm:
 309: 19 [cache # "x86_64-linux" #<procedure thunk ()>]
 384: 18 [thunk]
In srfi/srfi-1.scm:
 578: 17 [map #<procedure 2701b40 at guix/packages.scm:385:39 (t-215469)> #]
In guix/packages.scm:
 346: 16 [expand-input # # # ...]
 309: 15 [cache # "x86_64-linux" #<procedure thunk ()>]
 384: 14 [thunk]
In srfi/srfi-1.scm:
 578: 13 [map #<procedure 274c000 at guix/packages.scm:385:39 (t-215469)> #]
In guix/packages.scm:
 346: 12 [expand-input # # # ...]
 309: 11 [cache # "x86_64-linux" #<procedure thunk ()>]
 384: 10 [thunk]
In srfi/srfi-1.scm:
 578: 9 [map #<procedure 2762690 at guix/packages.scm:385:39 (t-215469)> #]
In guix/packages.scm:
 361: 8 [expand-input # # # ...]
In guix/download.scm:
 189: 7 [url-fetch # "mirror://gnu/gmp/gmp-5.1.2.tar.xz" sha256 ...]
In guix/packages.scm:
 309: 6 [cache # "x86_64-linux" #<procedure thunk ()>]
 396: 5 [thunk]
In gnu/packages/bootstrap.scm:
 169: 4 [build # "guile-bootstrap-2.0" #f ...]
In guix/store.scm:
 478: 3 [#<procedure 2228440 at guix/store.scm:468:4 (server basename recursive? hash-algo file-name)> # ...]
 461: 2 [add-to-store # "tar" #t ...]
In guix/nar.scm:
 148: 1 [dump "/home/amirouche/.config/guix/latest/gnu/packages/bootstrap/x86_64-linux/tar"]
  79: 0 [write-contents "/home/amirouche/.config/guix/latest/gnu/packages/bootstrap/x86_64-linux/tar" ...]

guix/nar.scm:79:8: In procedure write-contents:
guix/nar.scm:79:8: In procedure module-lookup: Unbound variable: sendfile

> I can't install guile 2.0.9 on ubuntu because of some file clash
> regarding ffi.

Please send a message to bug-guile@gnu.org if you can't find anything
here [1].

> Instead I looked in /nix/store and saw that guile 2.0.9 was installed by guix

> so I symlinked it in ~/.guix-profile/bin/

> replaced the shebang of /usr/local/bin/guix with  /usr/bin/env guile

I think that the above might cause some problems.  Normally, you don't
have to touch the store (i.e., '/nix/store') at all.  Could you specify
the absolute location of that Guile 2.0.9 directory?

> Running guix package -i zile still fails with the following error:

> http://paste.call-cc.org/paste?id=0372e8cc7d7e2849d1b57a2926e0b359b072fa05

;;; note: source file /usr/local/bin/guix
;;;       newer than compiled /home/amirouche/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/bin/guix.go
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /usr/local/bin/guix
;;; compiled /home/amirouche/.cache/guile/ccache/2.0-LE-8-2.0/usr/local/bin/guix.go
Backtrace:
In guix/packages.scm:
  19: 19 [#<procedure 1125940 ()>]
In ice-9/boot-9.scm:
2870: 18 [define-module* (guix packages) #:filename ...]
2845: 17 [resolve-imports (((guix utils)) ((guix records)) ((guix store)) ...)]
2783: 16 [resolve-interface (guix derivations) #:select ...]
2708: 15 [#<procedure 99f2e0 at ice-9/boot-9.scm:2696:4 (name #:optional autoload version #:key ensure)> # ...]
2981: 14 [try-module-autoload (guix derivations) #f]
2320: 13 [save-module-excursion #<procedure 11365d0 at ice-9/boot-9.scm:2982:17 ()>]
3001: 12 [#<procedure 11365d0 at ice-9/boot-9.scm:2982:17 ()>]
In unknown file:
   ?: 11 [primitive-load-path "guix/derivations" ...]
In guix/derivations.scm:
  19: 10 [#<procedure 11815a0 ()>]
In ice-9/boot-9.scm:
2870: 9 [define-module* (guix derivations) #:filename ...]
2845: 8 [resolve-imports (((srfi srfi-1)) ((srfi srfi-9)) ((srfi srfi-26)) ...)]
2783: 7 [resolve-interface (guix hash) #:select ...]
2708: 6 [#<procedure 99f2e0 at ice-9/boot-9.scm:2696:4 (name #:optional autoload version #:key ensure)> # ...]
2981: 5 [try-module-autoload (guix hash) #f]
2320: 4 [save-module-excursion #<procedure 1186b70 at ice-9/boot-9.scm:2982:17 ()>]
3001: 3 [#<procedure 1186b70 at ice-9/boot-9.scm:2982:17 ()>]
In unknown file:
   ?: 2 [primitive-load-path "guix/hash" ...]
In guix/hash.scm:
  48: 1 [#<procedure 1187620 ()>]
In unknown file:
   ?: 0 [dynamic-link "libgcrypt"]

ERROR: In procedure dynamic-link:
ERROR: In procedure dynamic-link: file: "libgcrypt", message: "file not found"

Could you also try to install Guix from Git [2] and report any problems?

Finally, I hope that you'll switch to a free distro [3] instead of
Ubuntu that contains non-free [4] packages.

[1] https://lists.gnu.org/archive/html/bug-guile/
[2] http://git.savannah.gnu.org/cgit/guix.git/tree/HACKING#n13
[3] https://www.gnu.org/distros/free-distros.html
[4] https://www.gnu.org/philosophy/free-sw

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

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

* bug#14968: Building guix on top of Ubuntu 13.04
  2013-07-29  4:44 ` Nikita Karetnikov
@ 2013-07-29  8:31   ` Amirouche Boubekki
  0 siblings, 0 replies; 6+ messages in thread
From: Amirouche Boubekki @ 2013-07-29  8:31 UTC (permalink / raw)
  To: Nikita Karetnikov; +Cc: 14968

> Finally, I hope that you'll switch to a free distro [3] instead of
> Ubuntu that contains non-free [4] packages.


I switched to Debian, So I can (re)produce the steps from above.

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

* bug#14968: Building guix on top of Ubuntu 13.04
  2013-07-27 14:50 bug#14968: Building guix on top of Ubuntu 13.04 Amirouche Boubekki
  2013-07-29  4:44 ` Nikita Karetnikov
@ 2013-08-15 11:28 ` Ludovic Courtès
  2013-08-15 14:11   ` Amirouche Boubekki
  1 sibling, 1 reply; 6+ messages in thread
From: Ludovic Courtès @ 2013-08-15 11:28 UTC (permalink / raw)
  To: Amirouche Boubekki; +Cc: 14968

Hi,

Amirouche Boubekki <amirouche.boubekki@gmail.com> skribis:

> I tried to first run guix pull but failed with an error on /nix/store
> with wrong rights, the error provided a command to run which I did.
> After that I run again guix pull and try to install zile with the
> command guix package -i zile
>
> It fails with the following error:
>
> http://paste.call-cc.org/paste?id=6fdc9664ba6f81cfc0e32d168502945e1d6c95f9

That is:

> guix/nar.scm:79:8: In procedure write-contents:
> guix/nar.scm:79:8: In procedure module-lookup: Unbound variable: sendfile

> I can't install guile 2.0.9 on ubuntu because of some file clash regarding ffi.
>
> Instead I looked in /nix/store and saw that guile 2.0.9 was installed by guix
>
> so I symlinked it in ~/.guix-profile/bin/

Don’t ever do that: this directory is managed via the ‘guix package’
command exclusively.

> http://paste.call-cc.org/paste?id=0372e8cc7d7e2849d1b57a2926e0b359b072fa05

This one is:

> ERROR: In procedure dynamic-link:
> ERROR: In procedure dynamic-link: file: "libgcrypt", message: "file not found"

I believe your distro comes with Guile 2.0.5, right?

It’s OK to build Guix 0.3 with this Guile version, and it should work.

What’s not OK is to build it with that version, and then silently switch
to 2.0.9, or vice-versa (for instance because nar.scm checks at
compile-time if the ‘sendfile’ procedure is available, and 2.0.9 has it
whereas 2.0.5 doesn’t.)

So, what I would recommend is to start afresh with Guile 2.0.5:
configure, build, and install Guix (and run ‘make check’.)

From there, you can run ‘guix package -i guile’ to install 2.0.9 in your
profile.  And then, you can re-build Guix with 2.0.9, and run ‘guix pull’.

Can you try that and report back?

HTH,
Ludo’.

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

* bug#14968: Building guix on top of Ubuntu 13.04
  2013-08-15 11:28 ` Ludovic Courtès
@ 2013-08-15 14:11   ` Amirouche Boubekki
  2013-08-15 15:53     ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Amirouche Boubekki @ 2013-08-15 14:11 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 14968

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

>
> Can you try that and report back?
>

Sorry, I can't, I moved to debian sid and everything seems to work as
expected. I hope it will be useful for some else.

Amirouche

[-- Attachment #2: Type: text/html, Size: 421 bytes --]

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

* bug#14968: Building guix on top of Ubuntu 13.04
  2013-08-15 14:11   ` Amirouche Boubekki
@ 2013-08-15 15:53     ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2013-08-15 15:53 UTC (permalink / raw)
  To: Amirouche Boubekki; +Cc: 14968-done

Amirouche Boubekki <amirouche.boubekki@gmail.com> skribis:

>>
>> Can you try that and report back?
>>
>
> Sorry, I can't, I moved to debian sid and everything seems to work as
> expected.

Even better.  :-)

Ludo’.

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

end of thread, other threads:[~2013-08-15 15:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-27 14:50 bug#14968: Building guix on top of Ubuntu 13.04 Amirouche Boubekki
2013-07-29  4:44 ` Nikita Karetnikov
2013-07-29  8:31   ` Amirouche Boubekki
2013-08-15 11:28 ` Ludovic Courtès
2013-08-15 14:11   ` Amirouche Boubekki
2013-08-15 15:53     ` Ludovic Courtès

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