all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* guix can't find (gnutls)
@ 2017-02-04 14:50 Federico Beffa
  2017-02-04 19:02 ` Alex Kost
  2017-02-05  8:38 ` Alex Vong
  0 siblings, 2 replies; 7+ messages in thread
From: Federico Beffa @ 2017-02-04 14:50 UTC (permalink / raw)
  To: Guix-devel

Hi,

for some reason Guix can't find (gnutls) despite the module being
installed and usable in Guile:

------------------------------------------------------------------------------
$ echo $GUILE_LOAD_PATH
/home/beffa/.guix-profile/share/guile/site/2.0:/usr/local/share/guile/site/2.0:/usr/share/guile/site:/usr/share/guile/site/2.0
$ echo $GUILE_LOAD_COMPILED_PATH
/home/beffa/.guix-profile/lib/guile/2.0/site-ccache:/home/beffa/.guix-profile/share/guile/site/2.0
$ ls /home/beffa/.guix-profile/share/guile/site/2.0
cairo  cairo.scm  gnutls  gnutls.scm  json  json.go  json.scm
minikanren  minikanren.go  minikanren.scm  ssh
$ guix environment --ad-hoc ghc
substitute: warning: failed to install locale: Invalid argument
The following derivations will be built:
   /gnu/store/rgzwdcw04i0x56ywmg3glicvrn8xk7sd-profile.drv
   /gnu/store/rrakjd0ym7q2qcx1kr3xsp7y9kxf4sdv-fonts-dir.drv
   /gnu/store/r48q6lmxwlsxjq30h2mrv1sp30ahx0fw-ghc-package-cache.drv
   /gnu/store/p2ijlnhbbc0sj8v5qcd2vj5fxgm3qaim-ca-certificate-bundle.drv
   /gnu/store/50l8wnbkmw98svirfsjcamxfsdsiyjly-info-dir.drv
The following file will be downloaded:
   /gnu/store/h2zf6y4f52wmh4qa8lckssxzffnxjvrv-ghc-8.0.2
warning: failed to install locale: Invalid argument
Downloading https://mirror.hydra.gnu.org/nar/h2zf6y4f52wmh4qa8lckssxzffnxjvrv-ghc-8.0.2
(1011.3MiB installed)...
;;; Failed to autoload make-session in (gnutls):
;;; ERROR: missing interface for module (gnutls)
Backtrace:
In ice-9/boot-9.scm:
 160: 9 [catch #t #<catch-closure 22e3da0> ...]
In unknown file:
   ?: 8 [apply-smob/1 #<catch-closure 22e3da0>]
In ice-9/boot-9.scm:
  66: 7 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
 432: 6 [eval # #]
In ice-9/boot-9.scm:
2404: 5 [save-module-excursion #<procedure 2303900 at
ice-9/boot-9.scm:4051:3 ()>]
4056: 4 [#<procedure 2303900 at ice-9/boot-9.scm:4051:3 ()>]
1727: 3 [%start-stack load-stack ...]
1732: 2 [#<procedure 2316c00 ()>]
In unknown file:
   ?: 1 [primitive-load "/usr/local/bin/guix"]
In guix/ui.scm:
1228: 0 [run-guix-command substitute "--substitute" ...]

guix/ui.scm:1228:8: In procedure run-guix-command:
guix/ui.scm:1228:8: In procedure module-lookup: Unbound variable: make-session
guix environment: error: build failed: some substitutes for the
outputs of derivation
`/gnu/store/y8ih837wbsxlhsscj8yg37pa6ycarrp8-ghc-8.0.2.drv' failed
(usually happens due to networking issues); try `--fallback' to build
derivation from source
------------------------------------------------------------------------------

I can load the module in Guile without problems:
------------------------------------------------------------------------------
$ guile
GNU Guile 2.0.13
Copyright (C) 1995-2016 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> ,use (gnutls)
scheme@(guile-user)> make-session
$1 = #<procedure make-session (_)>
scheme@(guile-user)>

------------------------------------------------------------------------------

Any suggestion?

Thanks,
Fede

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

* Re: guix can't find (gnutls)
  2017-02-04 14:50 guix can't find (gnutls) Federico Beffa
@ 2017-02-04 19:02 ` Alex Kost
  2017-02-05 10:48   ` Federico Beffa
  2017-02-05  8:38 ` Alex Vong
  1 sibling, 1 reply; 7+ messages in thread
From: Alex Kost @ 2017-02-04 19:02 UTC (permalink / raw)
  To: Federico Beffa; +Cc: Guix-devel

Federico Beffa (2017-02-04 15:50 +0100) wrote:

> Hi,
>
> for some reason Guix can't find (gnutls) despite the module being
> installed and usable in Guile:
[...]
> Any suggestion?

Check that guix-daemon is also started with GUILE_LOAD_[COMPILED_]PATH
environment containing gnutls modules.

-- 
Alex

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

* Re: guix can't find (gnutls)
  2017-02-04 14:50 guix can't find (gnutls) Federico Beffa
  2017-02-04 19:02 ` Alex Kost
@ 2017-02-05  8:38 ` Alex Vong
  2017-02-05 11:10   ` Federico Beffa
  1 sibling, 1 reply; 7+ messages in thread
From: Alex Vong @ 2017-02-05  8:38 UTC (permalink / raw)
  To: Federico Beffa; +Cc: Guix-devel

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

Federico Beffa <beffa@ieee.org> writes:

> Hi,
>
> for some reason Guix can't find (gnutls) despite the module being
> installed and usable in Guile:
>
Are you running guixsd or runnign guix on a foreign distro?

I personally run guix on debian and had the same problem. I solved the
problem by building gnutls from source and installing it into
/usr/local. The problem is debian's gnutls doesn't contain
gnutls-guile.

One might suggests to install guix's gnutls and build guix using it, but
it doesnt't work for me, so I resort to building from source.

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

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

* Re: guix can't find (gnutls)
  2017-02-04 19:02 ` Alex Kost
@ 2017-02-05 10:48   ` Federico Beffa
  2017-02-05 19:23     ` Alex Kost
  0 siblings, 1 reply; 7+ messages in thread
From: Federico Beffa @ 2017-02-05 10:48 UTC (permalink / raw)
  To: Alex Kost; +Cc: Guix-devel

On Sat, Feb 4, 2017 at 8:02 PM, Alex Kost <alezost@gmail.com> wrote:
> Federico Beffa (2017-02-04 15:50 +0100) wrote:
>
>> Hi,
>>
>> for some reason Guix can't find (gnutls) despite the module being
>> installed and usable in Guile:
> [...]
>> Any suggestion?
>
> Check that guix-daemon is also started with GUILE_LOAD_[COMPILED_]PATH
> environment containing gnutls modules.


That's it!

I was test starting the daemon with "sudo guix-daemon
--build-users-group=guixbuild" from a shell with the GUILE_*
environment variables set correctly and things didn't work. Now I
defined those variables in the guix-daemon.system systemd unit and
things do work (I'm on Debian testing). I'm not sure of why the formed
didn't work, but the latter did it.

Thanks,
Fede

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

* Re: guix can't find (gnutls)
  2017-02-05  8:38 ` Alex Vong
@ 2017-02-05 11:10   ` Federico Beffa
  2017-02-09 11:10     ` Alex Vong
  0 siblings, 1 reply; 7+ messages in thread
From: Federico Beffa @ 2017-02-05 11:10 UTC (permalink / raw)
  To: Alex Vong; +Cc: Guix-devel

On Sun, Feb 5, 2017 at 9:38 AM, Alex Vong <alexvong1995@gmail.com> wrote:
> Federico Beffa <beffa@ieee.org> writes:
>
>> Hi,
>>
>> for some reason Guix can't find (gnutls) despite the module being
>> installed and usable in Guile:
>>
> Are you running guixsd or runnign guix on a foreign distro?

I'm on Debian testing.

> I personally run guix on debian and had the same problem. I solved the
> problem by building gnutls from source and installing it into
> /usr/local. The problem is debian's gnutls doesn't contain
> gnutls-guile.
>
> One might suggests to install guix's gnutls and build guix using it, but
> it doesnt't work for me, so I resort to building from source.

I had a similar experience: I installed gnutls manually in /usr/local
and successfully compiled Guix.

However, for various reasons, I then wanted to recompile Guix with
Guix (and remove the manually installed gnutls and Debian Guile) and
that's where I was struggling to make things work. I fixed things as
in my reply to Alex Kost.

Thanks for your reply.
Fede

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

* Re: guix can't find (gnutls)
  2017-02-05 10:48   ` Federico Beffa
@ 2017-02-05 19:23     ` Alex Kost
  0 siblings, 0 replies; 7+ messages in thread
From: Alex Kost @ 2017-02-05 19:23 UTC (permalink / raw)
  To: Federico Beffa; +Cc: Guix-devel

Federico Beffa (2017-02-05 11:48 +0100) wrote:

> On Sat, Feb 4, 2017 at 8:02 PM, Alex Kost <alezost@gmail.com> wrote:
>> Federico Beffa (2017-02-04 15:50 +0100) wrote:
>>
>>> Hi,
>>>
>>> for some reason Guix can't find (gnutls) despite the module being
>>> installed and usable in Guile:
>> [...]
>>> Any suggestion?
>>
>> Check that guix-daemon is also started with GUILE_LOAD_[COMPILED_]PATH
>> environment containing gnutls modules.
>
>
> That's it!
>
> I was test starting the daemon with "sudo guix-daemon
> --build-users-group=guixbuild" from a shell with the GUILE_*
> environment variables set correctly and things didn't work. Now I
> defined those variables in the guix-daemon.system systemd unit and
> things do work (I'm on Debian testing). I'm not sure of why the formed
> didn't work, but the latter did it.

I think that's because when you run "sudo guix-daemon" your environment
was not preserved; if you run "sudo -E guix-daemon", it would work.

-- 
Alex

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

* Re: guix can't find (gnutls)
  2017-02-05 11:10   ` Federico Beffa
@ 2017-02-09 11:10     ` Alex Vong
  0 siblings, 0 replies; 7+ messages in thread
From: Alex Vong @ 2017-02-09 11:10 UTC (permalink / raw)
  To: Federico Beffa; +Cc: Guix-devel

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

Federico Beffa <beffa@ieee.org> writes:

> On Sun, Feb 5, 2017 at 9:38 AM, Alex Vong <alexvong1995@gmail.com> wrote:
>> Federico Beffa <beffa@ieee.org> writes:
>>
>>> Hi,
>>>
>>> for some reason Guix can't find (gnutls) despite the module being
>>> installed and usable in Guile:
>>>
>> Are you running guixsd or runnign guix on a foreign distro?
>
> I'm on Debian testing.
>
>> I personally run guix on debian and had the same problem. I solved the
>> problem by building gnutls from source and installing it into
>> /usr/local. The problem is debian's gnutls doesn't contain
>> gnutls-guile.
>>
>> One might suggests to install guix's gnutls and build guix using it, but
>> it doesnt't work for me, so I resort to building from source.
>
> I had a similar experience: I installed gnutls manually in /usr/local
> and successfully compiled Guix.
>
> However, for various reasons, I then wanted to recompile Guix with
> Guix (and remove the manually installed gnutls and Debian Guile) and
> that's where I was struggling to make things work. I fixed things as
> in my reply to Alex Kost.
>
I would try Alex Kost's method too, installing gnutls manually has the
disadvantage of needing to track security update manually. I adopt that
method only because I don't know a better one. Thanks Alex.

> Thanks for your reply.
> Fede

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

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

end of thread, other threads:[~2017-02-09 11:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-04 14:50 guix can't find (gnutls) Federico Beffa
2017-02-04 19:02 ` Alex Kost
2017-02-05 10:48   ` Federico Beffa
2017-02-05 19:23     ` Alex Kost
2017-02-05  8:38 ` Alex Vong
2017-02-05 11:10   ` Federico Beffa
2017-02-09 11:10     ` Alex Vong

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.