From unknown Wed Jun 18 00:24:32 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#54037 <54037@debbugs.gnu.org> To: bug#54037 <54037@debbugs.gnu.org> Subject: Status: Guix commands throws after running `sudo -i guix pull` on foreign distro. Wrong guile version used for regular user. Reply-To: bug#54037 <54037@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:24:32 +0000 retitle 54037 Guix commands throws after running `sudo -i guix pull` on for= eign distro. Wrong guile version used for regular user. reassign 54037 guix submitter 54037 Simen Endsj=C3=B8 severity 54037 important thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Feb 17 04:11:47 2022 Received: (at submit) by debbugs.gnu.org; 17 Feb 2022 09:11:47 +0000 Received: from localhost ([127.0.0.1]:50105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nKcpH-0001DD-CC for submit@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 ) id 1nKcpE-0001D5-SR for submit@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 ) id 1nKcpE-00040A-BO for bug-guix@gnu.org; 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 ) id 1nKcpC-0008Ad-6a for bug-guix@gnu.org; Thu, 17 Feb 2022 04:11:43 -0500 Received: by mail-lf1-x136.google.com with SMTP id p22so8707760lfu.5 for ; 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 (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?= To: bug-guix@gnu.org 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@gmail.com> 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@gmail.com; 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@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 (_ # =E2= =80=A6) 18 (_ # =E2= =80=A6) In ice-9/eval.scm: 191:27 17 (_ #(#(# #)= =E2=80=A6)) 196:35 16 (_ #(#(#(# =E2=80=A6) #)= #)) 298:34 15 (_ #(#(#(#) =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 (_ #) 293:34 10 (_ #) 293:34 9 (_ #(#(#) "gu=E2=80=A6= " =E2=80=A6)) 619:8 8 (_ #(#(#(#) =E2=80= =A6) #)) 626:19 7 (_ #(#(#(#) =E2=80=A6)= #)) 293:34 6 (_ #(#(#(# =E2= =80=A6) =E2=80=A6) =E2=80=A6)) In ice-9/boot-9.scm: 1747:15 5 (with-exception-handler # =E2=80=A6) In ice-9/eval.scm: 619:8 4 (_ #(#(#(# #)) #)) 626:19 3 (_ #(#(#(# #)) #)) 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 _ _ #) 152:2 15 (with-fluid* _ _ _) 142:2 14 (dynamic-wind # =E2=80=A6) In ice-9/eval.scm: 293:34 13 (_ #(#(#(#(#(# =E2=80= =A6)) =E2=80=A6) =E2=80=A6) =E2=80=A6)) 619:8 12 (_ #(#(#(#= ) =E2=80=A6) =E2=80=A6)) 626:19 11 (_ #(#(#(#) = =E2=80=A6) =E2=80=A6)) In srfi/srfi-1.scm: 460:18 10 (fold # =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 (_ #(#(#) "gu=E2=80=A6= " =E2=80=A6)) 619:8 7 (_ #(#(#(#) =E2=80= =A6) #)) 626:19 6 (_ #(#(#(#) =E2=80=A6)= #)) 293:34 5 (_ #(#(#(# =E2= =80=A6) =E2=80=A6) =E2=80=A6)) In ice-9/boot-9.scm: 1747:15 4 (with-exception-handler # =E2=80=A6) In ice-9/eval.scm: 619:8 3 (_ #(#(#(# #)) #)) 626:19 2 (_ #(#(#(# #)) #)) 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Feb 18 05:17:13 2022 Received: (at control) by debbugs.gnu.org; 18 Feb 2022 10:17:13 +0000 Received: from localhost ([127.0.0.1]:53503 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nL0K9-0005SW-8S for submit@debbugs.gnu.org; Fri, 18 Feb 2022 05:17:13 -0500 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:32150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nL0K8-0005S9-4W for control@debbugs.gnu.org; Fri, 18 Feb 2022 05:17:12 -0500 X-IronPort-AV: E=Sophos;i="5.88,378,1635199200"; d="scan'208";a="6325751" Received: from unknown (HELO ribbon) ([193.50.110.222]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Feb 2022 11:17:07 +0100 Date: Fri, 18 Feb 2022 11:17:07 +0100 Message-Id: <87o834jx7g.fsf@gnu.org> To: control@debbugs.gnu.org From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Subject: control message for bug #54037 MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) severity 54037 important quit From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 19 02:45:24 2022 Received: (at 54037) by debbugs.gnu.org; 19 Feb 2022 07:45:24 +0000 Received: from localhost ([127.0.0.1]:56814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLKQl-0006Wi-Rh for submit@debbugs.gnu.org; Sat, 19 Feb 2022 02:45:23 -0500 Received: from mail-lj1-f177.google.com ([209.85.208.177]:42694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nLKQj-0006WU-Pu for 54037@debbugs.gnu.org; Sat, 19 Feb 2022 02:45:22 -0500 Received: by mail-lj1-f177.google.com with SMTP id c10so7360762ljr.9 for <54037@debbugs.gnu.org>; Fri, 18 Feb 2022 23:45:21 -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; bh=zTOiZptyG0R/oieb0ZcAJQ4h2FCYTOge248XhmHGiJs=; b=b4wBVR1MrZQCKMhfjRKm21Cho/njiJVepw5lVazoDwZRL1TmB+R7f0gop9j4Ixxw/K I5wfyAVLIw+/OPNYrhhy0SkMCfMGZiWecmIuf9gOlaLQrYrSVG1AaL/VGDGtKowLCwvp CZtXAL9KvU397ahqfE2UUnHaa23xGb9tdKvq795R8DUp3Px1eTBHXgILSw3KerSi3bu5 86sGvN9aWGMUrrdiHFROnDwC94R7s50hEDUSC9aw+ygwimmcwSVWKofyiAyrvADB37PO 8AT1CY80uQ0UPN09uBdaXsC89eEUZnY/vX2BVJMBsXrAdd4VaflvTzpITih181VOTcvY mj4w== 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; bh=zTOiZptyG0R/oieb0ZcAJQ4h2FCYTOge248XhmHGiJs=; b=KqbuibUCKJfn6QSml/XTY0DGMIjqZT3C6+wYAoab+ABAgAwM5WtqBoRYNQpldyHQX1 6Aw88AP2qXnotvJpFrR8axDeKt7SOtvZF1KyWbxgFw2AVtO65ZLMaZOPDgQuWVbE7e0E X5g+u533qO+gr7OZ6r7aqXqPrHmAtkFy8WOjICux81ZzGi9ew7oGt7BfCH9Xze45rnXW 3NZm9uQPVKeN/znqmyxO3vNIGZbGO9KMN3GdOmnIJoZ1XIIlPuXdV7OMCRkhWanNgCzp CQG1aAWw5ixnYvtLCVWOg3HrbdZxRAsfHrjGnxY/nN7ZNBrxiQGxqNPqIkIkHuNU7zep xZ5g== X-Gm-Message-State: AOAM5334nmhdIxTCWcoFwXcfkwoW4pXciW5S/KcvpNRfR+A9rlxD5BgU TiXnxBiqxchRyV3bZu5ni/m82JrsCso= X-Google-Smtp-Source: ABdhPJx1dUi3GSXruQaLe6mrGaCWldQz9kytK12/Mq3+bKZb19lBvhZ/LCV6l1vb21uHGHx6T9ICNw== X-Received: by 2002:a2e:b815:0:b0:244:c06c:220d with SMTP id u21-20020a2eb815000000b00244c06c220dmr7685250ljo.138.1645256715286; Fri, 18 Feb 2022 23:45:15 -0800 (PST) Received: from simendsjo-laptop ([84.211.91.241]) by smtp.gmail.com with ESMTPSA id z3sm500785lfd.110.2022.02.18.23.45.14 for <54037@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 23:45:14 -0800 (PST) User-agent: mu4e 1.6.10; emacs 28.0.91 From: Simen =?utf-8?Q?Endsj=C3=B8?= To: 54037@debbugs.gnu.org Subject: LD_LIBRARY_PATH=$LIBRARY_PATH caused wrong libraries to be loaded Date: Sat, 19 Feb 2022 08:42:04 +0100 Message-ID: <877d9rb8qt.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 54037 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) My guess is I wanted to force the foreign distro to load a guix installed library (when compiling something on the foreign distro..? can't remember). Running `$ LD_LIBRARY_PATH= guix pull` works as normal. So this is, as it most often is, an user error. Sorry for the noise.