From mboxrd@z Thu Jan 1 00:00:00 1970 From: Katherine Cox-Buday Subject: Re: Getting rid of "source file [...] newer than compiled" messages Date: Fri, 29 Mar 2019 10:21:03 -0500 Message-ID: <87wokh1zc0.fsf@gmail.com> References: <87ef6q3muf.fsf@gmail.com> <87lg0y1xut.fsf@elephly.net> <875zs2313w.fsf@gmail.com> <87imw21jpk.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:48875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h9tJl-0000Ud-C1 for help-guix@gnu.org; Fri, 29 Mar 2019 11:21:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h9tJj-0001WC-CF for help-guix@gnu.org; Fri, 29 Mar 2019 11:21:17 -0400 Received: from mail-it1-x12d.google.com ([2607:f8b0:4864:20::12d]:34808) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h9tJh-0001Mc-CP for help-guix@gnu.org; Fri, 29 Mar 2019 11:21:13 -0400 Received: by mail-it1-x12d.google.com with SMTP id l4so11251324ite.1 for ; Fri, 29 Mar 2019 08:21:06 -0700 (PDT) In-Reply-To: <87imw21jpk.fsf@elephly.net> (Ricardo Wurmus's message of "Fri, 29 Mar 2019 03:46:15 +0100") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Ricardo Wurmus Cc: help-guix@gnu.org Ricardo Wurmus writes: > Katherine Cox-Buday writes: > >> I'm not using Guix from a source checkout. I've issued `guix pull` (both >> under the root account and as my user account) a few times with no >> change. > > Hmm, this should never leave you with an uncompiled Guix. Can you tell > us more about the environment in which this happens? (e.g. the output > of =E2=80=9Cenv=E2=80=9D will be fine.) Here is an example. When I run `guix help` I receive: #+BEGIN_EXAMPLE ;;; note: source file /gnu/store/cd6rjv3qhhghr59wpq4fksfr84d5dsdf-guix-= module-union/share/guile/site/2.2/gcrypt/hash.scm ;;; newer than compiled /gnu/store/cd6rjv3qhhghr59wpq4fksfr84d5ds= df-guix-module-union/lib/guile/2.2/site-ccache/gcrypt/hash.go ;;; note: source file /gnu/store/cd6rjv3qhhghr59wpq4fksfr84d5dsdf-guix-= module-union/share/guile/site/2.2/gcrypt/common.scm ;;; newer than compiled /gnu/store/cd6rjv3qhhghr59wpq4fksfr84d5ds= df-guix-module-union/lib/guile/2.2/site-ccache/gcrypt/common.go ;;; note: source file /gnu/store/cd6rjv3qhhghr59wpq4fksfr84d5dsdf-guix-= module-union/share/guile/site/2.2/gcrypt/package-config.scm ;;; newer than compiled /gnu/store/cd6rjv3qhhghr59wpq4fksfr84d5ds= df-guix-module-union/lib/guile/2.2/site-ccache/gcrypt/package-config.go ;;; note: source file /gnu/store/cd6rjv3qhhghr59wpq4fksfr84d5dsdf-guix-= module-union/share/guile/site/2.2/gcrypt/utils.scm ;;; newer than compiled /gnu/store/cd6rjv3qhhghr59wpq4fksfr84d5ds= df-guix-module-union/lib/guile/2.2/site-ccache/gcrypt/utils.go #+END_EXAMPLE `env` reports: #+BEGIN_EXAMPLE GUIX_LOCPATH=3D/var/services/homes/me/.guix-profile/lib/locale TERM=3Dxterm-256color SHELL=3D/bin/sh SSH_CLIENT=3D[redacted ip] 41856 22 SSH_TTY=3D/dev/pts/9 LC_ALL=3Den_US.utf8 USER=3Dme GUIX_PROFILE=3D/var/services/homes/me/.guix-profile PAGER=3Dmore MAIL=3D/var/mail/me PATH=3D/var/services/homes/me/.guix-profile/bin:/sbin:/bin:/usr/sbin:/u= sr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin PWD=3D/var/services/homes/me LANG=3Den_US.utf8 SHLVL=3D1 HOME=3D/var/services/homes/me TERMINFO=3D/usr/share/terminfo LOGNAME=3Dme SSH_CONNECTION=3D[redacted ip] 41856 [redacted ip] 22 PGDATA=3D/var/services/pgsql XDG_RUNTIME_DIR=3D/var/services/homes/me/.local/run GIT_EXEC_PATH=3D/var/services/homes/me/.guix-profile/bin _=3D/bin/env #+END_EXAMPLE >> `guix` is symlinked from `/usr/local/bin/guix` to >> `/var/guix/profiles/per-user/root/current-guix/bin/guix` which points to >> the latest profile (which is updated when running `guix pull` as root. > > When using =E2=80=9Cguix pull=E2=80=9D it will install into the current u= ser=E2=80=99s > ~/.config/guix/current/. Are you only using Guix as the root user? No, I always use my user account, but root contains the symlinks for the daemon and CLI. The symlink for `/usr/local/bin/guix` is there from installation per step (6) of the manual[1]. I tried running `guix pull` as root because running it under my user account wasn't doing anything. Thank you for troubleshooting this with me. [1] - https://www.gnu.org/software/guix/manual/en/html_node/Binary-Installa= tion.html#Binary-Installation --=20 Katherine