From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Chris Vine Newsgroups: gmane.lisp.guile.user Subject: Re: Guile 3.0.7 compile cache messages Date: Wed, 2 Jun 2021 11:30:17 +0100 Message-ID: <20210602113017.ed9cae3bef68ff28e39c9172@gmail.com> References: <87im2xzsrk.fsf@clara> <25606725-6560-ef09-dcf5-2505cda16781@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9604"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Jun 02 12:30:22 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1loO8k-0002Fo-2U for guile-user@m.gmane-mx.org; Wed, 02 Jun 2021 12:30:22 +0200 Original-Received: from localhost ([::1]:55780 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1loO8j-00075c-2l for guile-user@m.gmane-mx.org; Wed, 02 Jun 2021 06:30:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1loO8X-00075H-Fc for guile-user@gnu.org; Wed, 02 Jun 2021 06:30:09 -0400 Original-Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]:39489) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1loO8V-00011t-LP for guile-user@gnu.org; Wed, 02 Jun 2021 06:30:09 -0400 Original-Received: by mail-wm1-x32a.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso3441381wmh.4 for ; Wed, 02 Jun 2021 03:30:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=dVIelAStv95b/X/0zdm+qAM/KyJpbu/J0/K93MflXwE=; b=Q/bqBbJLx2BiTqVBs8HCOSiHkzEyYzCvZdSiaxLUtGMrepBdyNW8xi2qRWPLqOvNaN bZEp5alj5FB1n30DXoPoe94UPNDSNbLE/4jdHLEv4DDXuO9MVuYy1f3hfCK6ACz6mBan s+HzYz8uowmkeoG93mPXF/2/PkvXwHcC4Eh5CwNpjfDrcqlUvX5O2PY7cx9GgV+dznos yxqPBuZVjNZ0XITr78Cgm3AyNM1x0dQNOOSPIFx3zq0KRdiaYSRRFRtYW2mxfFUN8I0E 8bq+DW0Y7sVp4SM9X5TpDg4x5uOG5oyaB3Fg63m5yGvtBG36XDdO8Pv/pyTNJzLG0Z5b PidQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dVIelAStv95b/X/0zdm+qAM/KyJpbu/J0/K93MflXwE=; b=joWOY7eBx9U7wFs8S2krf74xaBxjOQ5hZUUpuOPC5BDpU8ymLgQ73xRMX9kdxc8zgu Y5iQV6aZY/vKKjWnM4ojYkPkcqOnRhBjnUWh4ec/AXORQjKB57dmEC/vmGy8USk9Ww7V k1bFwTcFTPXjaSqos2UsQa7+h6kDvldUyyQSG9kTTTJ9clj/JNP/r1K/tzB5CjMKcg9+ aoxSUjWWY0+i6rYyuFJkf9nR8H/N3bG1/9XkEvm+rZ6+p3gDoXSz8FnhKg6M8lmCyA5S tk5SjdWVc099SonSRm6+sRf+cHTM2Nmm/BzgQF4yeqc/ZUmRf3rYB0GBpirn7gWeF7NC Nrug== X-Gm-Message-State: AOAM533pfTlOU2GyxX7E3z0rkzAAGFMQxVzwnRxtq0lWsLg/bMILOPgR c8hsTp+2QCQvq4M7lR39uAbftYvoxbQ= X-Google-Smtp-Source: ABdhPJxKW/ofaeaFUya2mRHHL3J8IGm+cWL5r/TAMVyZxxwroUEFHIFWZd/woaU9MtoLNutC9DPmtA== X-Received: by 2002:a05:600c:1994:: with SMTP id t20mr31006955wmq.177.1622629805708; Wed, 02 Jun 2021 03:30:05 -0700 (PDT) Original-Received: from bother.homenet ([2.24.141.102]) by smtp.gmail.com with ESMTPSA id a15sm1527819wrs.63.2021.06.02.03.30.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 03:30:05 -0700 (PDT) Original-Received: from bother.homenet (localhost [127.0.0.1]) by bother.homenet (Postfix) with SMTP id 96BC226149A for ; Wed, 2 Jun 2021 11:30:17 +0100 (BST) In-Reply-To: <25606725-6560-ef09-dcf5-2505cda16781@posteo.de> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-unknown-linux-gnu) Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=vine35792468@gmail.com; helo=mail-wm1-x32a.google.com X-Spam_score_int: -24 X-Spam_score: -2.5 X-Spam_bar: -- X-Spam_report: (-2.5 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.613, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17558 Archived-At: On Wed, 2 Jun 2021 08:52:54 +0000 Zelphir Kaltstahl wrote: > On 6/2/21 8:00 AM, Adriano Peluso wrote: > > Il giorno mar, 01/06/2021 alle 08.14 -0400, Olivier Dion via General > > Guile related discussions ha scritto: > >> On Mon, 31 May 2021, Zelphir Kaltstahl > >> wrote: > >>> Hello Guile Users! > >>> > >>> It seems my Guile (version 3.0.7, installed via GNU Guile, updated > >>> today) is > >>> doing something weird, or perhaps something correct but unexpected > >>> with regard > >>> to informing about it finding compile caches. When I run a program > >>> with `guile > >>> -L . main.scm`, it displays the following: > >> I also find it annoying.=A0 I use Guile as a script language for a > >> video game engine in C.=A0 This interferes with the logging system and= it > >> annoys the hell out of me >:-) > > Does this bug help anyone of you ? > > > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D16364 >=20 > To be honest my need is not as urgent as something failing because of the > messages, but rather a visual annoyance, that did not happen before. When= I do > not expect a recompilation, because I did not change any code, then it is > surprising to see the cache messages appearing, even with auto compilation > switched off. For a moment I think: "Huh? Did something change?" and then= "Ah, > it is only those always shown messages.". It did not use to do that. >=20 > I am not sure what changed in my setting or with GNU Guile. My theory is,= that > it is something introduced between 3.0.5 (or 4?) and 3.0.7 perhaps. Or th= at > something was changed in the way that GNU Guix installs GNU Guile and that > affects the caching messages somehow. You reported that when running a program file of yours named 'main.scm' which is in your project's source directory, you get this message: $ guile -L . main.scm=20 ;;; note: source file ./logging.scm ;;; newer than compiled=20 /home/user/.guix-profile/lib/guile/3.0/site-ccache/logging.go ;;; found fresh local cache at=20 /home/user/.cache/guile/ccache/3.0-LE-8-4.5/home/user/dev/guile/lf2-data-fi= les/logging.scm.go ;;; note: source file ./file-reader.scm ;;; newer than compiled=20 /home/user/.guix-profile/lib/guile/3.0/site-ccache/file-reader.go ;;; found fresh local cache at=20 /home/user/.cache/guile/ccache/3.0-LE-8-4.5/home/user/dev/guile/lf2-data-fi= les/file-reader.scm.go 160 On the face of it the warnings look reasonable and I would be surprised if they were something new. You appear to have two module files logging.scm and file-reader.scm in your project's source directory /home/user/dev/guile/lf2-data-files which are newer than pre-compiled .go files for them which you (or guix on your behalf) have installed at some time in the past in guile-3.0's site-ccache, presumably by some kind of 'make install' operation carried out for your project. When you updated logging.scm and file-reader.scm in your project, guile noticed this, recompiled the modules for you automatically and put the generated code in your local cache directory. It now emits helpful warnings in consequence. The question is how did you get into this position? More particulaly, what installed logging.go and file-reader.go in site-ccache (presumably 'make install') and, when logging.scm and file-reader.scm were updated, why didn't you recompile and reinstall your modules? The most immediate solution is to delete your local cache and reinstall your program modules. Alternatively, I suspect from your comments that your normal work methods may be better served by not pre-compiling/ installing the modules at all, and instead rely on their automatic compilation and installation into the local cache by guile on need. Possibly there is a guix issue involved but it looks more straightforward than that. I don't use guix.