help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to properly use channels? (my 'guix pull' throws error)


From: Hebi Li
Subject: Re: How to properly use channels? (my 'guix pull' throws error)
Date: Tue, 02 Oct 2018 13:10:22 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Thanks, Ludovic.

On Tue, Oct 02 2018, Ludovic Courtès wrote:

> Hello,
>
> Hebi Li <address@hidden> skribis:
>
>> Hi guys,
>
> s/guys/people/ :-)

Oh, cool :)

>> I was trying to use Marius's channel [1] for Chromium. However,
>> following Marius's instruction, when my ~/.config/guix/channels.scm is
>> in place, 'guix pull' throws me this error:
>>
>> guix pull: error: failed to load '/home/hebi/.config/guix/channels.scm':
>> system/base/compile.scm:144:21: In procedure compile-file:
>> failed to create path for auto-compiled file
>> "/home/hebi/.config/guix/channels.scm"
>
> Could it be that ~/.cache/guile/… is read-only or owned by a different
> user?
>
> As a test you could try to “rm -rf ~/.cache/guile”.  This is the place
> where Guile stores object files resulting from auto-compilation.

That is the problem, "~/.cache/guile" is owned by root. I don't know
why, but I think it is not supposed to be root, so maybe we need to fix
it somewhere or mention it in trouble shooting. Anyway removing it
solved the problem and guix pull is able to continue.

Then I encountered another problem. In channels.scm, I was using (branch
"master"), and got this error:

--8<---------------cut here---------------start------------->8---
Updating channel 'guix-chromium' from Git repository at
'https://gitlab.com/mbakke/guix-chromium.git'...
guix pull: error: Git error: cannot locate remote-tracking branch 'master'
--8<---------------cut here---------------end--------------->8---

Changing it to '(branch "origin/master")' solved the problem. I mention
this because I have seen '(branch "master")' in a couple of places, thus
was wondering whether it is supposed to be the correct way.

Next, guix pull is finally able to compile chromium.scm, but
unfortunately failed to finish. This might not be a problem of guix
itself. However the error was "no code for module (gcrypt hash)", so I
think it is related. I have installed both libgcrypt and
guile-gcrypt. The following is the full error message:

--8<---------------cut here---------------start------------->8---
[ 1/ 1] Compiling './chromium/chromium.scm'...
Backtrace:
In ice-9/boot-9.scm:
  2788:17 19 (resolve-interface (guix store) #:select _ #:hide _ # _ ?)
  2714:10 18 (_ (guix store) _ _ #:ensure _)
  2982:16 17 (try-module-autoload _ _)
   2312:4 16 (save-module-excursion #<procedure 982c60 at ice-9/boot?>)
  3002:22 15 (_)
In unknown file:
          14 (primitive-load-path "guix/store" #<procedure 735c20 at?>)
In guix/store.scm:
     20:0 13 (_)
In ice-9/boot-9.scm:
   2862:4 12 (define-module* _ #:filename _ #:pure _ #:version _ # _ ?)
  2875:24 11 (_)
   222:29 10 (map1 (((guix utils)) ((guix config)) ((guix #)) ((?)) ?))
   222:29  9 (map1 (((guix config)) ((guix memoization)) ((guix ?)) ?))
   222:29  8 (map1 (((guix memoization)) ((guix serialization)) (#) ?))
   222:29  7 (map1 (((guix serialization)) ((guix monads)) ((# #)) ?))
   222:29  6 (map1 (((guix monads)) ((guix base16)) ((guix #)) (#) ?))
   222:29  5 (map1 (((guix base16)) ((guix base32)) ((gcrypt #)) # ?))
   222:29  4 (map1 (((guix base32)) ((gcrypt hash)) ((guix #)) (#) ?))
   222:17  3 (map1 (((gcrypt hash)) ((guix profiling)) ((rnrs #)) # ?))
   2791:6  2 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ ?)
In unknown file:
           1 (scm-error misc-error #f "~A ~S" ("no code for modu?" ?) ?)
In ice-9/boot-9.scm:
   752:25  0 (dispatch-exception _ _ _)

ice-9/boot-9.scm:752:25: In procedure dispatch-exception:
no code for module (gcrypt hash)
builder for `/gnu/store/60blzvp2by5j8mkp2xyml42al703cdza-guix-chromium.drv' 
failed with exit code 1                                                         
             
cannot build derivation 
`/gnu/store/vjf98q40yrpgqfp4wjpgk2brjhzlcyn2-guix-chromium.drv': 1 dependencies 
couldn't be built                                                
cannot build derivation 
`/gnu/store/cwnlydihlzn0z42lk00w9wa60vrsa6b3-profile.drv': 1 dependencies 
couldn't be built                                                      
guix pull: error: build failed: build of 
`/gnu/store/cwnlydihlzn0z42lk00w9wa60vrsa6b3-profile.drv' failed                
                                                
address@hidden ~$ guix pull
Updating channel 'guix-chromium' from Git repository at 
'https://gitlab.com/mbakke/guix-chromium.git'...                                
                                 
guix pull: error: Git error: cannot locate remote-tracking branch 'master'
--8<---------------cut here---------------end--------------->8---




-- 
Hebi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]