From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#32439: guix pull as root generates too many errors. Date: Mon, 20 Aug 2018 11:45:11 +0200 Message-ID: <87k1olgymw.fsf@gnu.org> References: <20180814203608.GA16340@jasmine.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1frglC-0000p9-MB for bug-guix@gnu.org; Mon, 20 Aug 2018 05:46:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1frgl8-0005O7-MU for bug-guix@gnu.org; Mon, 20 Aug 2018 05:46:06 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:50026) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1frgl8-0005O1-Cv for bug-guix@gnu.org; Mon, 20 Aug 2018 05:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1frgl8-0001Uw-Ad for bug-guix@gnu.org; Mon, 20 Aug 2018 05:46:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (fis trivial's message of "Tue, 14 Aug 2018 21:07:04 +0000") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: fis trivial Cc: "32439@debbugs.gnu.org" <32439@debbugs.gnu.org> Hello, fis trivial 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/l= ib/guile/2.2/site-ccache/guix/ui.go failed: >>> ;;; ERROR: In procedure make_objcode_from_file: bad header on object fi= le: "\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 ? The new =E2=80=98guix pull=E2=80=99 provides a =E2=80=9Cself-contained Guix= =E2=80=9D in the sense that it brings all its dependencies, including Guile. If you look at the top of the =E2=80=98guix=E2=80=99 file, you=E2=80=99ll see that it specifies ex= actly 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-au= to-compile --8<---------------cut here---------------end--------------->8--- Thus, Guile version mismatches like you experienced should normally not happen. Thanks for your report, Ludo=E2=80=99.