From: fis trivial <ybbs.daans@hotmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: "32439@debbugs.gnu.org" <32439@debbugs.gnu.org>
Subject: bug#32439: guix pull as root generates too many errors.
Date: Mon, 20 Aug 2018 19:29:09 +0000 [thread overview]
Message-ID: <BLUPR16MB05005FCB4B3D65CB9942027292320@BLUPR16MB0500.namprd16.prod.outlook.com> (raw)
In-Reply-To: <87k1olgymw.fsf@gnu.org>
Ludovic Courtès writes:
> Hello,
>
> fis trivial <ybbs.daans@hotmail.com> skribis:
>
>> Leo Famulari writes:
>>
>>> On Tue, Aug 14, 2018 at 07:41:14PM +0000, fis trivial wrote:
>>>> Running guix pull -l as root user generates many warnings and errors. I
>>>> attached the first 1000 lines of stderr logging in this mail.
>>>>
>>>
>>>> ;;; WARNING: loading compiled file /root/.config/guix/current-17-link/lib/guile/2.2/site-ccache/guix/ui.go failed:
>>>> ;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "\x7fELF\x02\x01\x01??\x00\x00\x00\x00\x00\x00\x00\x00"
>>>
>>> I'm not an expert on Guile or the new `guix pull`. However, I think that
>>> `guix pull` takes its Guile from the environment, because `guix pull -l`
>>> doesn't work for me when there is no Guile in PATH.
>>>
>>> Those errors look like a mismatch between Guile versions 2.0 and 2.2.
>>> Which Guile do you have available in the environment where you see that
>>> error?
>>
>> As root user, it's guile@2.0.14. Indeed, installing guile@2.2.4 from Guix fixes
>> the problem. Thanks for your insight. :)
>
> What command did you run to get the errors about? Could you also show:
>
> which guix
> echo $GUILE_LOAD_PATH
> echo $GUILE_LOAD_COMPILED_PATH
>
> ?
>
I tried the following commands after switching back the package profile to
previous state.
$ which guix
/root/.config/guix/current/bin/guix
$ echo $GUILE_LOAD_PATH
/root/.guix-profile/share/guile/site/2.2
$ echo $GUILE_LOAD_COMPILED_PATH
/root/.guix-profile/lib/guile/2.2/site-ccache:/root/.guix-profile/share/guile/site/2.2
But I can't reproduce the bug now since I cleaned up all profiles in pull.
> The new ‘guix pull’ provides a “self-contained Guix” in the sense that
> it brings all its dependencies, including Guile. If you look at the top
> of the ‘guix’ file, you’ll see that it specifies exactly the Guile
> version that it needs:
>
> --8<---------------cut here---------------start------------->8---
> $ head -1 ~/.config/guix/current/bin/guix
> #!/gnu/store/p9wm67w3rfw3hlb9iljgvsfn84mz4w9d-guile-2.2.4/bin/guile --no-auto-compile
> --8<---------------cut here---------------end--------------->8---
>
> Thus, Guile version mismatches like you experienced should normally not
> happen.
>
> Thanks for your report,
> Ludo’.
Thanks.
--
Jiaming
next prev parent reply other threads:[~2018-08-20 19:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-14 19:41 bug#32439: guix pull as root generates too many errors fis trivial
2018-08-14 20:36 ` Leo Famulari
2018-08-14 21:07 ` fis trivial
2018-08-16 21:06 ` Leo Famulari
2018-08-20 9:45 ` Ludovic Courtès
2018-08-20 19:29 ` fis trivial [this message]
2018-08-21 9:49 ` Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BLUPR16MB05005FCB4B3D65CB9942027292320@BLUPR16MB0500.namprd16.prod.outlook.com \
--to=ybbs.daans@hotmail.com \
--cc=32439@debbugs.gnu.org \
--cc=ludo@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 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).