GNU bug report logs - #54037
Guix commands throws after running `sudo -i guix pull` on foreign distro. Wrong guile version used for regular user.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Severity: important; Reported by: Simen Endsjø <simendsjo@HIDDEN>; dated Thu, 17 Feb 2022 09:12:01 UTC; Maintainer for guix is bug-guix@HIDDEN.
Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Feb 2022 09:11:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 17 04:11:47 2022
Received: from localhost ([127.0.0.1]:50105 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1nKcpH-0001DD-CC
	for submit <at> debbugs.gnu.org; Thu, 17 Feb 2022 04:11:47 -0500
Received: from lists.gnu.org ([209.51.188.17]:43626)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <simendsjo@HIDDEN>) id 1nKcpE-0001D5-SR
 for submit <at> debbugs.gnu.org; Thu, 17 Feb 2022 04:11:45 -0500
Received: from eggs.gnu.org ([209.51.188.92]:58190)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <simendsjo@HIDDEN>)
 id 1nKcpE-00040A-BO
 for bug-guix@HIDDEN; Thu, 17 Feb 2022 04:11:44 -0500
Received: from [2a00:1450:4864:20::136] (port=38839
 helo=mail-lf1-x136.google.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <simendsjo@HIDDEN>)
 id 1nKcpC-0008Ad-6a
 for bug-guix@HIDDEN; Thu, 17 Feb 2022 04:11:43 -0500
Received: by mail-lf1-x136.google.com with SMTP id p22so8707760lfu.5
 for <bug-guix@HIDDEN>; Thu, 17 Feb 2022 01:11:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=user-agent:from:to:subject:date:message-id:mime-version
 :content-transfer-encoding;
 bh=HASgI2jCLMutrRJI3WeczNg9FGHNOetaxKnG4iWa57o=;
 b=PewqFKwZUZrqjOmIlEw3EFmFa3hlcX0bnBNx8eHd962SJlde9XeDyZRgQ+dZLGJvCV
 Zm2euuxjOekCvTkX62rG24mKuFh4FO3iSMinrBHlMxsuZCtpEiNOHBvwIxd5CnzznRK8
 EibpZ65OX9ViLyTi6sj37Ij8VnksL5v+5NvRo+SA3vSSy1jHvXmkaOt6CAueyM5/IIoI
 dlAu5yirL+NCATqY1SSUHXYlGvSOxVcRhfrwkWZ4FUQlce3DjcxNQPgzOZtRhAICkEHN
 mM9m+yB/ek/hZPwZENT1LigFxgxEPsPmTN6hm4L8+DbhMTsS/cM023HgGGFz1x4dF5R5
 MndA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:user-agent:from:to:subject:date:message-id
 :mime-version:content-transfer-encoding;
 bh=HASgI2jCLMutrRJI3WeczNg9FGHNOetaxKnG4iWa57o=;
 b=YO3Qs0XaN8sn2ZdqTNq/eaF1frL0iJtg1OZfq6pxryN00hEGxIT3yHj66dac1TYTBI
 YX7ehEAbrKBzw0Bu5MLDa7fcNyB6+LOFlIoyTQQtl9bDwGHZIX/cz1ZFg2Co4qd/bzD9
 4YvawBljG6gJXEp/8R+UQMLb0kRqPs7+uhWOHC6wc0sWNXec0AGUUkX3lrKCSKJI3UgG
 VxWsRWUqmrpjaRtxHl8L8FkLaYxupXws2gqo7Wqzj0hnxadtuFoyS/gXJVImmr+JL2pg
 3F7BPxHAIsMCRZcbaMEU07+nklVkq3BtmStKl+/3x4ynxl5/14VFdoGhRudqEmkAC2Iw
 cmgg==
X-Gm-Message-State: AOAM532+Slway9px81G0nY+kGtr4NyNVqpiqj3Ypo5tsJA9+O5+VCbPl
 TeK3ZWUY+WBZTYHVUvdGRghXS/pxKi8=
X-Google-Smtp-Source: ABdhPJzQSdf6v7OBe60fPkcn/LCFecvsN6u9D2+m+rfI87AjIibl8Ur8LChOhChzxEFzTKh4rs6aGw==
X-Received: by 2002:a05:6512:3f91:b0:43e:da3e:464b with SMTP id
 x17-20020a0565123f9100b0043eda3e464bmr1404538lfa.673.1645089099448; 
 Thu, 17 Feb 2022 01:11:39 -0800 (PST)
Received: from simendsjo-laptop ([84.211.91.241])
 by smtp.gmail.com with ESMTPSA id g20sm1914048lja.50.2022.02.17.01.11.37
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 17 Feb 2022 01:11:38 -0800 (PST)
User-agent: mu4e 1.6.10; emacs 28.0.91
From: Simen =?utf-8?Q?Endsj=C3=B8?= <simendsjo@HIDDEN>
To: bug-guix@HIDDEN
Subject: Guix commands throws after running `sudo -i guix pull` on foreign
 distro. Wrong guile version used for regular user.
Date: Thu, 17 Feb 2022 09:55:55 +0100
Message-ID: <87ley9503r.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::136
 (failed)
Received-SPF: pass client-ip=2a00:1450:4864:20::136;
 envelope-from=simendsjo@HIDDEN; helo=mail-lf1-x136.google.com
X-Spam_score_int: -2
X-Spam_score: -0.3
X-Spam_bar: /
X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 PDS_HP_HELO_NORDNS=0.978, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)


Not sure if this is a bug, or if it's somehow my fault.

I'm using Guix on a foreign distro, and I think I broke my system after
running `$ sudo -i guix pull`.  When running `$ guix pull` I get
lots of warnings like the following

    ;;; WARNING: loading compiled file (.. snip ..) failed:
    ;;; In procedure load-thunk-from-memory: incompatible bytecode version

And commands like `pull` and `update` throws exceptions. I've tried
rebooting my system to no effect.

Both roots and my `realpath $(which guix)` returns
`/gnu/store/rkm49zf7gk3xj94bnscjsr3c1vaam977-guix-command`.
This is a shebang script, calling
`/gnu/store/549xzhnm3q810py1v0jbv0px0prd3a21-guile-wrapper/bin/guile`.

The strange thing is that the wrapper script invokes a different version
of guile for root and my user. Root doesn't have guile installed, while
my user have guile installed. That script uses 3.0.8 for root and 3.0.7
for my user. Discussed this on IRC yesterday, and another user had a
similar setup, but the script retured 3.0.8 for both users.

    # guix describe
    Generation 12	Feb 17 2022 09:50:18	(current)
    guix 755c7c8
        repository URL: https://git.savannah.gnu.org/git/guix.git
        branch: master
        commit: 755c7c80825c150b5a8b38072bcfb78699f2fbf2



    $ guix describe
    # (.. lots of incompatible bytecode warnings ..)
    Generation 11	Feb 16 2022 19:06:25	(current)
    guix 373c77b
        repository URL: https://git.savannah.gnu.org/git/guix.git
        branch: master
        commit: 373c77bf22ad69bdb303742ff5e18ec47de20d4f
    guix-gaming-games 43aa8af
        repository URL: https://gitlab.com/guix-gaming-channels/games.git
        branch: master
        commit: 43aa8af5f2bfbf4400fc46925909da56d4094cb7
    flat ece373b
        repository URL: https://github.com/flatwhatson/guix-channel.git
        branch: master
        commit: ece373bcd1e00ef746fb7b104e56ab610cc4af2a
    nonguix 35533c7
        repository URL: https://gitlab.com/nonguix/nonguix
        branch: master
        commit: 35533c763a81365e14d0b58ad262e8f88c82872c



    $ guix pull
    # (.. lots of incompatible bytecode warnings ..)
    Backtrace:
            19 (_ #<procedure 7f60fbde9700 at ice-9/eval.scm:330:13 ()> =E2=
=80=A6)
            18 (_ #<procedure 7f60fbde9600 at ice-9/eval.scm:330:13 ()> =E2=
=80=A6)
    In ice-9/eval.scm:
    191:27 17 (_ #(#(#<directory (guix store) 7f6137c78000> #<pr=E2=80=A6>)=
 =E2=80=A6))
    196:35 16 (_ #(#(#(#<directory (guix store) 7f6137c78000> =E2=80=A6) #)=
 #))
    298:34 15 (_ #(#(#(#<directory (guix channels) 7f6135e4b460>) =E2=80=A6=
) =E2=80=A6))
    In ice-9/boot-9.scm:
    2835:4 14 (save-module-excursion _)
        152:2 13 (with-fluid* _ _ _)
    In unknown file:
            12 (primitive-load "/gnu/store/8zwkzd3a3m5s8baqbcqq4wac5p6=E2=
=80=A6")
    In ice-9/eval.scm:
    626:19 11 (_ #<directory (build-self) 7f6123411d20>)
    293:34 10 (_ #<directory (build-self) 7f6123411d20>)
    293:34  9 (_ #(#(#<directory (gnu packages) 7f613447dc80>) "gu=E2=80=A6=
" =E2=80=A6))
        619:8  8 (_ #(#(#(#<directory (gnu packages) 7f613447dc80>) =E2=80=
=A6) #))
    626:19  7 (_ #(#(#(#<directory (gnu packages) 7f613447dc80>) =E2=80=A6)=
 #))
    293:34  6 (_ #(#(#(#<directory (guix memoization) 7f6137=E2=80=A6> =E2=
=80=A6) =E2=80=A6) =E2=80=A6))
    In ice-9/boot-9.scm:
    1747:15  5 (with-exception-handler #<procedure 7f60f7680c00 at ic=E2=80=
=A6> =E2=80=A6)
    In ice-9/eval.scm:
        619:8  4 (_ #(#(#(#<directory (gnu packages) 7f613447dc80> #)) #))
    626:19  3 (_ #(#(#(#<directory (gnu packages) 7f613447dc80> #)) #))
    In unknown file:
            2 (load-compiled/vm "/home/simendsjo/.config/guix/current=E2=80=
=A6")
    In ice-9/boot-9.scm:
    1685:16  1 (raise-exception _ #:continuable? _)
    1685:16  0 (raise-exception _ #:continuable? _)

    ice-9/boot-9.scm:1685:16: In procedure raise-exception:
    In procedure load-thunk-from-memory: incompatible bytecode version



    $ guix package -u guile
    # (.. lots of incompatible bytecode warnings ..)
    Backtrace:
    In ice-9/boot-9.scm:
        152:2 19 (with-fluid* _ _ _)
        152:2 18 (with-fluid* _ _ _)
        152:2 17 (with-fluid* _ _ _)
        724:2 16 (call-with-prompt _ _ #<procedure 7f1341be2a20 at ice-9=E2=
=80=A6>)
        152:2 15 (with-fluid* _ _ _)
        142:2 14 (dynamic-wind #<procedure 7f131f5639c0 at ice-9/eval.s=E2=
=80=A6> =E2=80=A6)
    In ice-9/eval.scm:
    293:34 13 (_ #(#(#(#(#(#<directory (guix scripts pac=E2=80=A6> =E2=80=
=A6)) =E2=80=A6) =E2=80=A6) =E2=80=A6))
        619:8 12 (_ #(#(#(#<directory (guix scripts package) 7f13=E2=80=A6>=
) =E2=80=A6) =E2=80=A6))
    626:19 11 (_ #(#(#(#<directory (guix scripts package) 7f13=E2=80=A6>) =
=E2=80=A6) =E2=80=A6))
    In srfi/srfi-1.scm:
    460:18 10 (fold #<procedure 7f131ebd12a0 at ice-9/eval.scm:336:1=E2=80=
=A6> =E2=80=A6)
    In ice-9/eval.scm:
    293:34  9 (_ #(#(#(#(#(#(#(#(#(#(#(=E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=
=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =E2=80=A6) =
=E2=80=A6))
    293:34  8 (_ #(#(#<directory (gnu packages) 7f1343281280>) "gu=E2=80=A6=
" =E2=80=A6))
        619:8  7 (_ #(#(#(#<directory (gnu packages) 7f1343281280>) =E2=80=
=A6) #))
    626:19  6 (_ #(#(#(#<directory (gnu packages) 7f1343281280>) =E2=80=A6)=
 #))
    293:34  5 (_ #(#(#(#<directory (guix memoization) 7f1345=E2=80=A6> =E2=
=80=A6) =E2=80=A6) =E2=80=A6))
    In ice-9/boot-9.scm:
    1747:15  4 (with-exception-handler #<procedure 7f132050b300 at ic=E2=80=
=A6> =E2=80=A6)
    In ice-9/eval.scm:
        619:8  3 (_ #(#(#(#<directory (gnu packages) 7f1343281280> #)) #))
    626:19  2 (_ #(#(#(#<directory (gnu packages) 7f1343281280> #)) #))
    In unknown file:
            1 (load-compiled/vm "/home/simendsjo/.config/guix/current=E2=80=
=A6")
    In ice-9/boot-9.scm:
    1685:16  0 (raise-exception _ #:continuable? _)

    ice-9/boot-9.scm:1685:16: In procedure raise-exception:
    In procedure load-thunk-from-memory: incompatible bytecode version




Acknowledgement sent to Simen Endsjø <simendsjo@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#54037; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 18 Feb 2022 10:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.